ess.reduce.nexus.workflow.GenericNeXusWorkflow#
- ess.reduce.nexus.workflow.GenericNeXusWorkflow(*, run_types=None, monitor_types=None)[source]#
Generic workflow for loading detector and monitor data from a NeXus file.
It is possible to limit which run types and monitor types are supported by the returned workflow. This is useful to reduce the size of the workflow and make it easier to inspect. Make sure to add all required run types and monitor types when using this feature.
Attention
Filtering by run type and monitor type does not work with nested type vars. E.g., if you have a type like
Outer[Inner[RunType]]
, this type and its provider will be removed.- Parameters:
run_types (
Optional
[Iterable
[type
]], default:None
) – List of run types to include in the workflow. If not provided, all run types are included. Must be a possible value ofess.reduce.nexus.types.RunType
.monitor_types (
Optional
[Iterable
[type
]], default:None
) – List of monitor types to include in the workflow. If not provided, all monitor types are included. Must be a possible value ofess.reduce.nexus.types.MonitorType
.
- Returns:
Pipeline
– The workflow.