ess.reduce.nexus.workflow.to_transformation#
- ess.reduce.nexus.workflow.to_transformation(chain, interval, time_filter=<function reject_time_dependent_transform>)[source]#
Convert a transformation chain into a single transformation matrix.
If one or more transformations in the chain are time-dependent, the time interval is used to select a specific time point. If the interval is not a single time point,
time_filteris applied to the transformation. By default, this will raise an exception. Provide a different filter to customize how time-dependence is handled.- Parameters:
chain (
NeXusTransformationChain[TypeVar(Component),TypeVar(RunType)]) – Transformation chain.interval (
TimeInterval[TypeVar(RunType)]) – Time interval to select from the transformation chain.time_filter (
TransformationTimeFilter[TypeVar(Component),TypeVar(RunType)], default:<function reject_time_dependent_transform at 0x7f8b8a6bd800>) – Callable to apply to time-dependent transformations. Defaults to raising aValueError.
- Return type:
NeXusTransformation[TypeVar(Component),TypeVar(RunType)]