Table of Contents
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. |
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.
Note
To run these usage examples please first download the usage data, and add these to your path. In MantidPlot this is done using Manage User Directories.
Example
peaks = LoadIsawPeaks('TOPAZ_1204.peaks')
print "Number of peaks entries", peaks.getNumberPeaks()
Output:
Number of peaks entries 36
Categories: Algorithms | Crystal\DataHandling | DataHandling\Isaw