ess.freia.mcstas.load_mcstas#

ess.freia.mcstas.load_mcstas(filename, detector_name='Multiblade', *, pulse_period=None)[source]#

Load weighted detector events and pixel geometry.

Only the selected component is read. The expected output is the mantid banana event list, including p, t, id and pixel geometry. Empty detector pixels are retained, and weighted-event variances are p**2. Arrival times are split into event_time_zero and event_time_offset using pulse_period, which defaults to the ESS period of 1/14 s. If present, L is kept as wavelength_from_mcstas in angstroms.

Return type:

DataArray