Skip to content

Commit 55b858d

Browse files
authored
Merge pull request #151 from scipp/variadic-scope
Variadic scope
2 parents a70795e + 32d9b6b commit 55b858d

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
"numpy",
3838
"plopp>=25.03.0",
3939
"pythreejs",
40-
"sciline>=24.06.0",
40+
"sciline>=25.04.1",
4141
"scipp>=24.09.1",
4242
"scippneutron>=25.02.0",
4343
"scippnexus>=23.12.0",

requirements/base.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# --- END OF CUSTOM SECTION ---
44
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
55
dask
6-
essreduce>=25.04.0
6+
essreduce>=25.02.4
77
graphviz
88
numpy
99
plopp>=25.03.0
1010
pythreejs
11-
sciline>=24.06.0
11+
sciline>=25.04.1
1212
scipp>=24.09.1
1313
scippneutron>=25.02.0
1414
scippnexus>=23.12.0

requirements/base.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SHA1:b690e6a12ac4cde710521c39719a0c2f61f44602
1+
# SHA1:4c637dd9c91e42089ff8f729de2279bb8611bf83
22
#
33
# This file is autogenerated by pip-compile-multi
44
# To update, run:
@@ -29,7 +29,7 @@ dnspython==2.7.0
2929
# via email-validator
3030
email-validator==2.2.0
3131
# via scippneutron
32-
essreduce==25.4.0
32+
essreduce==25.4.1
3333
# via -r base.in
3434
exceptiongroup==1.2.2
3535
# via ipython

requirements/docs.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ accessible-pygments==0.0.5
1010
# via pydata-sphinx-theme
1111
alabaster==1.0.0
1212
# via sphinx
13-
appnope==0.1.4
14-
# via ipykernel
1513
attrs==25.3.0
1614
# via
1715
# jsonschema

src/ess/powder/types.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class MonitorFilename(sciline.Scope[RunType, Path], Path):
164164

165165

166166
class WavelengthMonitor(
167-
sciline.ScopeTwoParams[RunType, MonitorType, sc.DataArray], sc.DataArray
167+
sciline.Scope[RunType, MonitorType, sc.DataArray], sc.DataArray
168168
):
169169
"""Monitor histogram in wavelength."""
170170

@@ -216,15 +216,11 @@ class DetectorLtotal(sciline.Scope[RunType, sc.Variable], sc.Variable):
216216
"""Total path length of neutrons from source to detector (L1 + L2)."""
217217

218218

219-
class MonitorLtotal(
220-
sciline.ScopeTwoParams[RunType, MonitorType, sc.Variable], sc.Variable
221-
):
219+
class MonitorLtotal(sciline.Scope[RunType, MonitorType, sc.Variable], sc.Variable):
222220
"""Total path length of neutrons from source to monitor."""
223221

224222

225-
class TofMonitorData(
226-
sciline.ScopeTwoParams[RunType, MonitorType, sc.DataArray], sc.DataArray
227-
):
223+
class TofMonitorData(sciline.Scope[RunType, MonitorType, sc.DataArray], sc.DataArray):
228224
"""Monitor data with time-of-flight coordinate."""
229225

230226

0 commit comments

Comments
 (0)