File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 55
66import scipp as sc
77
8- from ess .reduce import nexus
9-
108from ..reflectometry .load import load_nx
119from ..reflectometry .types import (
1210 DetectorRotation ,
@@ -51,7 +49,7 @@ def wrapped(*args, **kwargs):
5149def load_detector (
5250 file_path : Filename [RunType ], detector_name : NeXusDetectorName [RunType ]
5351) -> LoadedNeXusDetector [RunType ]:
54- return nexus . load_detector ( file_path = file_path , detector_name = detector_name )
52+ return next ( load_nx ( file_path , f"NXentry/NXinstrument/ { detector_name } " ) )
5553
5654
5755@ignore_amor_warnings
@@ -66,7 +64,7 @@ def load_events(
6664 dtype = "int32" ,
6765 )
6866 data = (
69- nexus . extract_detector_data ( detector )
67+ detector [ 'data' ]
7068 .bins .constituents ["data" ]
7169 .group (detector_numbers )
7270 .fold (
You can’t perform that action at this time.
0 commit comments