Skip to content

Commit 32d9b6b

Browse files
committed
Use variadic Scope
1 parent 048ca62 commit 32d9b6b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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)