ess.nmx.mcstas.xml.SampleDesc#
- class ess.nmx.mcstas.xml.SampleDesc(component_type, name, position, rotation_matrix)[source]#
Sample description extracted from McStas instrument xml description.
- __init__(component_type, name, position, rotation_matrix)#
Methods
__init__(component_type, name, position, ...)from_xml(*, tree, simulation_settings)Create sample description from xml component.
position_from_sample(other)Position of
otherrelative to the sample.Attributes
component_typenamepositionrotation_matrix