Skip to content

Commit cec00e2

Browse files
committed
update notebook that creates the tof lut
1 parent cd93bfd commit cec00e2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tools/dream-make-tof-lookup-table.ipynb

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,12 @@
5454
"metadata": {},
5555
"outputs": [],
5656
"source": [
57-
"wf = sl.Pipeline(\n",
58-
" time_of_flight.providers(), params=time_of_flight.default_parameters()\n",
59-
")\n",
57+
"wf = time_of_flight.TofLookupTableWorkflow()\n",
6058
"\n",
6159
"wf[time_of_flight.LtotalRange] = sc.scalar(60.0, unit=\"m\"), sc.scalar(80.0, unit=\"m\")\n",
62-
"wf[time_of_flight.SimulationResults] = time_of_flight.simulate_beamline(\n",
63-
" choppers=disk_choppers, neutrons=5_000_000, source_position=sc.vector([0, 0, 0], unit='m'),\n",
64-
")\n",
65-
"\n",
60+
"wf[time_of_flight.NumberOfSimulatedNeutrons] = 5_000_000\n",
61+
"wf[time_of_flight.SourcePosition] = sc.vector([0, 0, 0], unit='m')\n",
62+
"wf[time_of_flight.DiskChoppers] = disk_choppers\n",
6663
"wf[time_of_flight.DistanceResolution] = sc.scalar(0.1, unit=\"m\")\n",
6764
"wf[time_of_flight.TimeResolution] = sc.scalar(250.0, unit='us')\n",
6865
"wf[time_of_flight.LookupTableRelativeErrorThreshold] = 0.02\n",

0 commit comments

Comments
 (0)