ess.reduce.nexus.types.NeXusTransformation#
- class ess.reduce.nexus.types.NeXusTransformation(value)[source]#
- __init__(value)#
Methods
__init__
(value)from_chain
(chain)Convert a transformation chain to a single transformation.
Attributes
value
- static from_chain(chain)[source]#
Convert a transformation chain to a single transformation.
As transformation chains may be time-dependent, this method will need to select a specific time point to convert to a single transformation. This may include averaging as well as threshold checks. This is not implemented yet and we therefore currently raise an error if the transformation chain does not compute to a scalar.
- Return type:
NeXusTransformation
[TypeVar
(Component
,NXdetector
,NXsample
,NXsource
,nexus.types.Monitor1
(int
),nexus.types.Monitor2
(int
),nexus.types.Monitor3
(int
),nexus.types.Monitor4
(int
),nexus.types.Monitor5
(int
),nexus.types.IncidentMonitor
(int
),nexus.types.TransmissionMonitor
(int
)),TypeVar
(RunType
,nexus.types.BackgroundRun
(int
),nexus.types.EmptyBeamRun
(int
),nexus.types.SampleRun
(int
),TransmissionRun
[nexus.types.SampleRun
(int
)],TransmissionRun
[nexus.types.BackgroundRun
(int
)],nexus.types.VanadiumRun
(int
))]