Skip to content

Commit

Permalink
fix dream notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
nvaytet committed Jan 30, 2025
1 parent e214f05 commit 3c7e826
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/user-guide/dream/dream-data-reduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
"metadata": {},
"outputs": [],
"source": [
"tof_wf = time_of_flight.tof_workflow(\n",
"tof_wf = time_of_flight.TofWorkflow(\n",
" simulated_neutrons=time_of_flight.simulate_beamline(\n",
" choppers=disk_choppers,\n",
" neutrons=5_000_000,\n",
Expand All @@ -218,10 +218,10 @@
")\n",
"\n",
"# Save expensive steps from being re-computed many times\n",
"tof_wf = time_of_flight.cache_results(tof_wf)\n",
"tof_wf.cache_results()\n",
"\n",
"# Insert the sub-workflow into the main reduction\n",
"workflow[TofWorkflow] = TofWorkflow(tof_wf)"
"workflow[TofWorkflow] = tof_wf"
]
},
{
Expand Down Expand Up @@ -449,7 +449,7 @@
"workflow = powder.with_pixel_mask_filenames(workflow, [])\n",
"\n",
"# Insert tof sub-workflow\n",
"workflow[TofWorkflow] = TofWorkflow(tof_wf)"
"workflow[TofWorkflow] = tof_wf"
]
},
{
Expand Down

0 comments on commit 3c7e826

Please sign in to comment.