ess.nmx.mcstas.xml.SourceDesc#

class ess.nmx.mcstas.xml.SourceDesc(component_type, name, position)[source]#

Source description extracted from McStas instrument xml description.

__init__(component_type, name, position)#

Methods

__init__(component_type, name, position)

from_xml(*, tree, simulation_settings)

Create source description from xml component.

Attributes

component_type

name

position

classmethod from_xml(*, tree, simulation_settings)[source]#

Create source description from xml component.

Return type:

SourceDesc