|
20 | 20 | from ess.reduce.time_of_flight import types as tof_t |
21 | 21 | from ess.reduce.uncertainty import UncertaintyBroadcastMode as _UncertaintyBroadcastMode |
22 | 22 |
|
23 | | -# 1 TypeVars used to parametrize the generic parts of the workflow |
24 | | - |
25 | | -BackgroundRun = reduce_t.BackgroundRun |
26 | | -BunkerMonitor = reduce_t.Monitor2 |
27 | 23 | CalibratedBeamline = reduce_t.CalibratedBeamline |
28 | 24 | CalibratedDetector = reduce_t.CalibratedDetector |
29 | | -CalibratedBeamline = reduce_t.CalibratedBeamline |
30 | 25 | CalibratedMonitor = reduce_t.CalibratedMonitor |
31 | 26 | DetectorData = reduce_t.DetectorData |
32 | 27 | DetectorPositionOffset = reduce_t.DetectorPositionOffset |
33 | | -EmptyBeamRun = reduce_t.EmptyBeamRun |
34 | 28 | Filename = reduce_t.Filename |
35 | | -CaveMonitor = reduce_t.Monitor1 |
36 | 29 | MonitorData = reduce_t.MonitorData |
37 | 30 | MonitorPositionOffset = reduce_t.MonitorPositionOffset |
38 | 31 | NeXusDetectorName = reduce_t.NeXusDetectorName |
39 | 32 | NeXusMonitorName = reduce_t.NeXusName |
40 | 33 | NeXusComponent = reduce_t.NeXusComponent |
41 | | -SampleRun = reduce_t.SampleRun |
42 | 34 | Position = reduce_t.Position |
43 | | -VanadiumRun = reduce_t.VanadiumRun |
44 | 35 |
|
45 | 36 | DetectorBankSizes = reduce_t.DetectorBankSizes |
46 | 37 |
|
|
58 | 49 | TimeOfFlightLookupTableFilename = tof_t.TimeOfFlightLookupTableFilename |
59 | 50 | SimulationResults = tof_t.SimulationResults |
60 | 51 |
|
61 | | -RunType = TypeVar("RunType", SampleRun, VanadiumRun, BackgroundRun) |
62 | | -MonitorType = TypeVar("MonitorType", CaveMonitor, BunkerMonitor) |
| 52 | +SampleRun = reduce_t.SampleRun |
| 53 | +VanadiumRun = reduce_t.VanadiumRun |
| 54 | +EmptyCanRun = NewType("EmptyCanRun", int) |
| 55 | + |
| 56 | +CaveMonitor = reduce_t.CaveMonitor |
| 57 | +BunkerMonitor = NewType("BunkerMonitor", int) |
63 | 58 |
|
| 59 | +RunType = TypeVar("RunType", SampleRun, VanadiumRun, EmptyCanRun) |
| 60 | +MonitorType = TypeVar("MonitorType", CaveMonitor, BunkerMonitor) |
64 | 61 |
|
65 | | -# 2 Workflow parameters |
66 | 62 |
|
67 | 63 | CalibrationFilename = NewType("CalibrationFilename", str | None) |
68 | 64 | """Filename of the instrument calibration file.""" |
69 | 65 |
|
70 | | - |
71 | 66 | DspacingBins = NewType("DspacingBins", sc.Variable) |
72 | 67 | """Bin edges for d-spacing.""" |
73 | 68 |
|
74 | | - |
75 | 69 | OutFilename = NewType("OutFilename", str) |
76 | 70 | """Filename of the output.""" |
77 | 71 |
|
|
0 commit comments