Table of Contents
Name | Direction | Type | Default | Description |
---|---|---|---|---|
Filename | Input | string | Mandatory | File path of the Data file to load. Allowed extensions: [‘.nxs’, ‘.hdf’, ‘.hd5’] |
OutputWorkspace | Output | MatrixWorkspace | Mandatory | The name to use for the output workspace |
Loads an MLZ NeXus file into a Workspace2D with the given name.
This algorithm masks detectors using a mask defined in the input Nexus file.
It also fills the SampleLogs of the Outputworkspace with data such as the monitor counts and the channel width.
To date this algorithm only supports: TOFTOF.
Example - Load TOFTOF Nexus file:
ws = LoadMLZ(Filename='TOFTOFTestdata.nxs')
print "Name of the instrument: ", ws.getInstrument().getName()
print "Number of spectra: ", ws.getNumberHistograms()
Output:
Name of the instrument: TOFTOF
Number of spectra: 1006
Categories: Algorithms | DataHandling\Nexus