File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import sciline
17
17
18
- from ess .reduce .nexus .types import DetectorBankSizes
18
+ from ess .powder .types import BunkerMonitor , CaveMonitor
19
+ from ess .reduce .nexus .types import DetectorBankSizes , NeXusName
19
20
from ess .reduce .nexus .workflow import GenericNeXusWorkflow
20
21
21
22
DETECTOR_BANK_SIZES = {
@@ -51,4 +52,6 @@ def LoadNeXusWorkflow() -> sciline.Pipeline:
51
52
"""
52
53
wf = GenericNeXusWorkflow ()
53
54
wf [DetectorBankSizes ] = DETECTOR_BANK_SIZES
55
+ wf [NeXusName [BunkerMonitor ]] = "monitor_bunker"
56
+ wf [NeXusName [CaveMonitor ]] = "monitor_cave"
54
57
return wf
Original file line number Diff line number Diff line change 21
21
# 1 TypeVars used to parametrize the generic parts of the workflow
22
22
23
23
BackgroundRun = reduce_t .BackgroundRun
24
+ BunkerMonitor = reduce_t .Monitor2
24
25
CalibratedDetector = reduce_t .CalibratedDetector
25
26
CalibratedMonitor = reduce_t .CalibratedMonitor
26
27
DetectorData = reduce_t .DetectorData
40
41
DetectorBankSizes = reduce_t .DetectorBankSizes
41
42
42
43
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 )
44
+ MonitorType = TypeVar ("MonitorType" , CaveMonitor , BunkerMonitor )
46
45
47
46
48
47
# 2 Workflow parameters
You can’t perform that action at this time.
0 commit comments