\(\renewcommand\AA{\unicode{x212B}}\)

LoadIsawPeaks v1

../_images/LoadIsawPeaks-v1_dlg.png

LoadIsawPeaks dialog.

Summary

Load an ISAW-style .peaks file into a PeaksWorkspace.

Properties

Name Direction Type Default Description
Filename Input string Mandatory Path to an ISAW-style .peaks filename. Allowed extensions: [‘.peaks’, ‘.integrate’]
OutputWorkspace Output Workspace Mandatory Name of the output workspace.

Description

Reads an ISAW-style .peaks or .integrate file into a PeaksWorkspace. Any detector calibration information is ignored.

NOTE: The instrument used is determined by reading the ‘Instrument:’ and ‘Date:’ tags at the start of the file.If the date is not present, the latest Instrument Definition File is used.

Usage

Note

To run these usage examples please first download the usage data, and add these to your path. In Mantid this is done using Manage User Directories.

Example

peaks = LoadIsawPeaks('TOPAZ_1204.peaks')
print("Number of peaks entries {}".format(peaks.getNumberPeaks()))

Output:

Number of peaks entries 36

Categories: AlgorithmIndex | Crystal\DataHandling | DataHandling\Isaw

Source

C++ header: LoadIsawPeaks.h (last modified: 2021-03-31)

C++ source: LoadIsawPeaks.cpp (last modified: 2021-05-24)