ess.nmx.mcstas.xml.McStasInstrument#
- class ess.nmx.mcstas.xml.McStasInstrument(simulation_settings, detectors, source, sample)[source]#
- __init__(simulation_settings, detectors, source, sample)#
Methods
__init__(simulation_settings, detectors, ...)detector_metadata(*det_names)Extract detector metadata from the McStas instrument description.
Extract experiment metadata from the McStas instrument description.
from_xml(tree)Create McStas instrument from xml.
pixel_ids(*det_names)Pixel IDs for the detectors.
Attributes
simulation_settingsdetectorssourcesample- detector_metadata(*det_names)[source]#
Extract detector metadata from the McStas instrument description.
If multiple detector is requested, all metadata will be concatenated along the ‘panel’ dimension.