|
56 | 56 | "metadata": {}, |
57 | 57 | "outputs": [], |
58 | 58 | "source": [ |
59 | | - "wf = dream.DreamGeant4Workflow(\n", |
| 59 | + "workflow = dream.DreamGeant4Workflow(\n", |
60 | 60 | " run_norm=powder.RunNormalization.monitor_histogram,\n", |
61 | 61 | ")" |
62 | 62 | ] |
|
77 | 77 | "metadata": {}, |
78 | 78 | "outputs": [], |
79 | 79 | "source": [ |
80 | | - "wf[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n", |
81 | | - "wf[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n", |
82 | | - "wf[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n", |
83 | | - "wf[CalibrationFilename] = None\n", |
| 80 | + "workflow[Filename[SampleRun]] = dream.data.simulated_diamond_sample()\n", |
| 81 | + "workflow[Filename[VanadiumRun]] = dream.data.simulated_vanadium_sample()\n", |
| 82 | + "workflow[Filename[EmptyCanRun]] = dream.data.simulated_empty_can()\n", |
| 83 | + "workflow[CalibrationFilename] = None\n", |
84 | 84 | "\n", |
85 | | - "wf[MonitorFilename[SampleRun]] = dream.data.simulated_monitor_diamond_sample()\n", |
86 | | - "wf[MonitorFilename[VanadiumRun]] = dream.data.simulated_monitor_vanadium_sample()\n", |
87 | | - "wf[MonitorFilename[EmptyCanRun]] = dream.data.simulated_monitor_empty_can()\n", |
88 | | - "wf[CaveMonitorPosition] = sc.vector([0.0, 0.0, -4220.0], unit=\"mm\")\n", |
| 85 | + "workflow[MonitorFilename[SampleRun]] = dream.data.simulated_monitor_diamond_sample()\n", |
| 86 | + "workflow[MonitorFilename[VanadiumRun]] = dream.data.simulated_monitor_vanadium_sample()\n", |
| 87 | + "workflow[MonitorFilename[EmptyCanRun]] = dream.data.simulated_monitor_empty_can()\n", |
| 88 | + "workflow[CaveMonitorPosition] = sc.vector([0.0, 0.0, -4220.0], unit=\"mm\")\n", |
89 | 89 | "\n", |
90 | | - "wf[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux_BC215\n", |
| 90 | + "workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux_BC215\n", |
91 | 91 | "# Select a detector bank:\n", |
92 | | - "wf[NeXusDetectorName] = \"mantle\"\n", |
| 92 | + "workflow[NeXusDetectorName] = \"mantle\"\n", |
93 | 93 | "# We drop uncertainties where they would otherwise lead to correlations:\n", |
94 | | - "wf[UncertaintyBroadcastMode] = UncertaintyBroadcastMode.drop\n", |
| 94 | + "workflow[UncertaintyBroadcastMode] = UncertaintyBroadcastMode.drop\n", |
95 | 95 | "# Edges for binning in d-spacing:\n", |
96 | | - "wf[DspacingBins] = sc.linspace(\"dspacing\", 0.3, 2.3434, 201, unit=\"angstrom\")\n", |
| 96 | + "workflow[DspacingBins] = sc.linspace(\"dspacing\", 0.3, 2.3434, 201, unit=\"angstrom\")\n", |
97 | 97 | "\n", |
98 | 98 | "# Do not mask any pixels / voxels:\n", |
99 | | - "wf = powder.with_pixel_mask_filenames(wf, [])" |
| 99 | + "workflow = powder.with_pixel_mask_filenames(workflow, [])" |
100 | 100 | ] |
101 | 101 | }, |
102 | 102 | { |
|
121 | 121 | "metadata": {}, |
122 | 122 | "outputs": [], |
123 | 123 | "source": [ |
124 | | - "results = wf.compute([\n", |
| 124 | + "results = workflow.compute([\n", |
125 | 125 | " EmptyCanSubtractedIofDspacing,\n", |
126 | 126 | " ReducedEmptyCanSubtractedTofCIF\n", |
127 | 127 | "])\n", |
|
227 | 227 | "name": "python", |
228 | 228 | "nbconvert_exporter": "python", |
229 | 229 | "pygments_lexer": "ipython3", |
230 | | - "version": "3.12.12" |
| 230 | + "version": "3.11.10" |
231 | 231 | } |
232 | 232 | }, |
233 | 233 | "nbformat": 4, |
|
0 commit comments