Skip to content

Commit 8aced2a

Browse files
committed
Fix type alias names
1 parent 977e559 commit 8aced2a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/ess/dream/io/cif.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
IofTof,
1515
ReducedEmptyCanSubtractedTofCIF,
1616
ReducedTofCIF,
17-
ReducerSoftwares,
17+
ReducerSoftware,
1818
Source,
1919
)
2020

@@ -25,7 +25,7 @@ def prepare_reduced_tof_cif(
2525
authors: CIFAuthors,
2626
beamline: Beamline,
2727
source: Source,
28-
reducers: ReducerSoftwares,
28+
reducers: ReducerSoftware,
2929
calibration: OutputCalibrationData,
3030
) -> ReducedTofCIF:
3131
"""Construct a CIF builder with reduced data in d-spacing.

src/ess/dream/workflow.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
MonitorType,
2525
PixelMaskFilename,
2626
Position,
27-
ReducerSoftwares,
27+
ReducerSoftware,
2828
ResampledMonitorTofData,
2929
RunType,
3030
SampleRun,
@@ -93,12 +93,12 @@ def default_parameters() -> dict:
9393
TwoThetaMask: None,
9494
CaveMonitorPosition: sc.vector([0.0, 0.0, -4220.0], unit='mm'),
9595
CIFAuthors: CIFAuthors([]),
96-
ReducerSoftwares: _collect_reducer_software(),
96+
ReducerSoftware: _collect_reducer_software(),
9797
}
9898

9999

100-
def _collect_reducer_software() -> ReducerSoftwares:
101-
return ReducerSoftwares(
100+
def _collect_reducer_software() -> ReducerSoftware:
101+
return ReducerSoftware(
102102
[
103103
Software.from_package_metadata('essdiffraction'),
104104
Software.from_package_metadata('scippneutron'),

src/ess/powder/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"""Filename of the instrument calibration file."""
6969

7070

71-
DspacingBins = NewType("DSpacingBins", sc.Variable)
71+
DspacingBins = NewType("DspacingBins", sc.Variable)
7272
"""Bin edges for d-spacing."""
7373

7474

@@ -216,7 +216,7 @@ class RawDataAndMetadata(sciline.Scope[RunType, sc.DataGroup], sc.DataGroup):
216216
Beamline = reduce_t.Beamline
217217
"""Beamline metadata."""
218218

219-
ReducerSoftwares = NewType('ReducerSoftware', list[Software])
219+
ReducerSoftware = NewType('ReducerSoftware', list[Software])
220220
"""Pieces of software used to reduce the data."""
221221

222222
Source = reduce_t.Source

tests/dream/io/cif_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import ess.dream.io.cif
1212
from ess.powder.calibration import OutputCalibrationData
13-
from ess.powder.types import Beamline, CIFAuthors, IofTof, ReducerSoftwares, Software
13+
from ess.powder.types import Beamline, CIFAuthors, IofTof, ReducerSoftware, Software
1414

1515

1616
@pytest.fixture
@@ -54,7 +54,7 @@ def test_save_reduced_tof(ioftof: IofTof, cal: OutputCalibrationData) -> None:
5454
site="ESS",
5555
),
5656
source=ESS_SOURCE,
57-
reducers=ReducerSoftwares(
57+
reducers=ReducerSoftware(
5858
[
5959
Software.from_package_metadata('ess.diffraction'),
6060
Software.from_package_metadata('ess.dream'),

0 commit comments

Comments
 (0)