Skip to content

Commit f12a9e3

Browse files
committed
fix: remove domain return types
1 parent 19464c6 commit f12a9e3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/ess/powder/conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

246246
def _convert_reduced_to_tof_impl(

src/ess/powder/masking.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import scipp as sc
1212

1313
from .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

7473
providers = (read_pixel_masks,)

0 commit comments

Comments
 (0)