ess.reduce.nexus.workflow.load_all_nexus_components#
- ess.reduce.nexus.workflow.load_all_nexus_components(location, nx_class)[source]#
Load all NeXus components of one class from one entry a file.
This is equivalent to calling
load_nexus_component()
for every component.- Parameters:
location (
NeXusAllComponentLocationSpec
[TypeVar
(Component
,NXdetector
,NXsample
,NXsource
,NXdisk_chopper
,NXcrystal
,nexus.types.Monitor1
(int
),nexus.types.Monitor2
(int
),nexus.types.Monitor3
(int
),nexus.types.Monitor4
(int
),nexus.types.Monitor5
(int
),nexus.types.Monitor6
(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
))]) – Location spec for the source group.nx_class (
NeXusClass
[TypeVar
(Component
,NXdetector
,NXsample
,NXsource
,NXdisk_chopper
,NXcrystal
,nexus.types.Monitor1
(int
),nexus.types.Monitor2
(int
),nexus.types.Monitor3
(int
),nexus.types.Monitor4
(int
),nexus.types.Monitor5
(int
),nexus.types.Monitor6
(int
),nexus.types.IncidentMonitor
(int
),nexus.types.TransmissionMonitor
(int
))]) – NX_class to identify the components.
- Return type:
AllNeXusComponents
[TypeVar
(Component
,NXdetector
,NXsample
,NXsource
,NXdisk_chopper
,NXcrystal
,nexus.types.Monitor1
(int
),nexus.types.Monitor2
(int
),nexus.types.Monitor3
(int
),nexus.types.Monitor4
(int
),nexus.types.Monitor5
(int
),nexus.types.Monitor6
(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
))]