ess.reduce.nexus.workflow.to_multi_transformation#
- ess.reduce.nexus.workflow.to_multi_transformation(chains, interval, time_filter=<function reject_time_dependent_transform>)[source]#
Convert each 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:
chains (
NeXusMultiTransformationChain[TypeVar(Component),TypeVar(RunType)]) – Transformation chains.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 0x7f96291882c0>) – Callable to apply to time-dependent transformations. Defaults to raising aValueError.
- Return type:
NeXusMultiTransformation[TypeVar(Component),TypeVar(RunType)]