Skip to content

Commit 9ce3c39

Browse files
committed
revert changes wf -> workflow
1 parent b6a3720 commit 9ce3c39

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

docs/user-guide/dream/dream-powder-reduction.ipynb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"metadata": {},
5757
"outputs": [],
5858
"source": [
59-
"wf = dream.DreamGeant4Workflow(\n",
59+
"workflow = dream.DreamGeant4Workflow(\n",
6060
" run_norm=powder.RunNormalization.monitor_histogram,\n",
6161
")"
6262
]
@@ -77,26 +77,26 @@
7777
"metadata": {},
7878
"outputs": [],
7979
"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",
8484
"\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",
8989
"\n",
90-
"wf[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux_BC215\n",
90+
"workflow[dream.InstrumentConfiguration] = dream.InstrumentConfiguration.high_flux_BC215\n",
9191
"# Select a detector bank:\n",
92-
"wf[NeXusDetectorName] = \"mantle\"\n",
92+
"workflow[NeXusDetectorName] = \"mantle\"\n",
9393
"# We drop uncertainties where they would otherwise lead to correlations:\n",
94-
"wf[UncertaintyBroadcastMode] = UncertaintyBroadcastMode.drop\n",
94+
"workflow[UncertaintyBroadcastMode] = UncertaintyBroadcastMode.drop\n",
9595
"# 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",
9797
"\n",
9898
"# Do not mask any pixels / voxels:\n",
99-
"wf = powder.with_pixel_mask_filenames(wf, [])"
99+
"workflow = powder.with_pixel_mask_filenames(workflow, [])"
100100
]
101101
},
102102
{
@@ -121,7 +121,7 @@
121121
"metadata": {},
122122
"outputs": [],
123123
"source": [
124-
"results = wf.compute([\n",
124+
"results = workflow.compute([\n",
125125
" EmptyCanSubtractedIofDspacing,\n",
126126
" ReducedEmptyCanSubtractedTofCIF\n",
127127
"])\n",
@@ -227,7 +227,7 @@
227227
"name": "python",
228228
"nbconvert_exporter": "python",
229229
"pygments_lexer": "ipython3",
230-
"version": "3.12.12"
230+
"version": "3.11.10"
231231
}
232232
},
233233
"nbformat": 4,

0 commit comments

Comments
 (0)