File tree Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Expand file tree Collapse file tree 5 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ requires-python = ">=3.10"
31
31
# Make sure to list one dependency per line.
32
32
dependencies = [
33
33
" dask" ,
34
- " essreduce>=24.11.3 " ,
34
+ " essreduce>=24.12.0 " ,
35
35
" graphviz" ,
36
36
" numpy" ,
37
37
" plopp" ,
Original file line number Diff line number Diff line change 3
3
# --- END OF CUSTOM SECTION ---
4
4
# The following was generated by 'tox -e deps', DO NOT EDIT MANUALLY!
5
5
dask
6
- essreduce>=24.11.3
6
+ essreduce>=24.12.0
7
7
graphviz
8
8
numpy
9
9
plopp
Original file line number Diff line number Diff line change 1
- # SHA1:6b89155439eb051cb7a3ca3e31678c9fa96a6f5a
1
+ # SHA1:1c545a5dfb8b66d23509534f3ddf41f94ead839c
2
2
#
3
3
# This file is autogenerated by pip-compile-multi
4
4
# To update, run:
Original file line number Diff line number Diff line change 22
22
NeXusDetectorName ,
23
23
Position ,
24
24
RunType ,
25
+ SampleRun ,
26
+ VanadiumRun ,
25
27
)
26
28
from ess .reduce .nexus .types import CalibratedBeamline
27
29
from ess .reduce .nexus .workflow import GenericNeXusWorkflow
@@ -271,7 +273,9 @@ def LoadGeant4Workflow() -> sciline.Pipeline:
271
273
"""
272
274
Workflow for loading NeXus data.
273
275
"""
274
- wf = GenericNeXusWorkflow ()
276
+ wf = GenericNeXusWorkflow (
277
+ run_types = [SampleRun , VanadiumRun ], monitor_types = [CaveMonitor ]
278
+ )
275
279
wf .insert (extract_geant4_detector )
276
280
wf .insert (load_geant4_csv )
277
281
wf .insert (load_mcstas_monitor )
Original file line number Diff line number Diff line change 30
30
CaveMonitor = reduce_t .Monitor1
31
31
MonitorData = reduce_t .MonitorData
32
32
MonitorPositionOffset = reduce_t .MonitorPositionOffset
33
- MonitorType = reduce_t .MonitorType
34
33
NeXusDetectorName = reduce_t .NeXusDetectorName
35
34
NeXusMonitorName = reduce_t .NeXusName
36
35
NeXusComponent = reduce_t .NeXusComponent
37
- RunType = reduce_t .RunType
38
36
SampleRun = reduce_t .SampleRun
39
37
Position = reduce_t .Position
40
38
VanadiumRun = reduce_t .VanadiumRun
41
39
42
40
DetectorBankSizes = reduce_t .DetectorBankSizes
43
41
42
+ RunType = TypeVar ("RunType" , SampleRun , VanadiumRun )
43
+ # Include Monitor2 because a single constraint is not allowed.
44
+ # We will eventually have more than one...
45
+ MonitorType = TypeVar ("MonitorType" , CaveMonitor , reduce_t .Monitor2 )
46
+
44
47
45
48
# 2 Workflow parameters
46
49
You can’t perform that action at this time.
0 commit comments