File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -232,15 +232,15 @@ def convert_to_dspacing(
232232 data : WavelengthDetector [RunType ],
233233 graph : ElasticCoordTransformGraph [RunType ],
234234 calibration : CalibrationData ,
235- ) -> CorrectedDetector [ RunType ] :
235+ ) -> sc . DataArray | sc . Dataset :
236236 if calibration is None :
237237 out = data .transform_coords (["dspacing" ], graph = graph , keep_intermediate = False )
238238 else :
239239 out = to_dspacing_with_calibration (data , calibration = calibration )
240240 for key in ("wavelength" , "two_theta" ):
241241 if key in out .coords .keys ():
242242 out .coords .set_aligned (key , False )
243- return CorrectedDetector [ RunType ]( out )
243+ return out
244244
245245
246246def _convert_reduced_to_tof_impl (
Original file line number Diff line number Diff line change 1111import scipp as sc
1212
1313from .types import (
14- CorrectedDetector ,
1514 MaskedDetectorIDs ,
1615 PixelMaskFilename ,
1716 RunType ,
@@ -68,7 +67,7 @@ def apply_masks(
6867 )
6968 out .masks [dim ] = mask (coord )
7069
71- return CorrectedDetector [ RunType ]( out )
70+ return out
7271
7372
7473providers = (read_pixel_masks ,)
You can’t perform that action at this time.
0 commit comments