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

LoadMLZ v1

Summary

Loads a nexus file from MLZ facility.

Properties

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

Description

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.

Usage

Example - Load TOFTOF Nexus file:

ws = LoadMLZ(Filename='TOFTOFTestdata.nxs')

print("Name of the instrument:  {}".format(ws.getInstrument().getName()))
print("Number of spectra:  {}".format(ws.getNumberHistograms()))

Output:

Name of the instrument:  TOFTOF
Number of spectra:  1006

Categories: AlgorithmIndex | DataHandling\Nexus

Source

C++ header: LoadMLZ.h

C++ source: LoadMLZ.cpp