Skip to content

Commit f2e9894

Browse files
committed
move notebook to create tof lookup table and add comment about how table was created
1 parent ead136d commit f2e9894

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/ess/dream/data.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,15 @@ def simulated_monitor_empty_can() -> str:
185185

186186

187187
def tof_lookup_table_high_flux() -> str:
188-
"""Path to a HDF5 file containing a lookup table for high-flux ToF."""
188+
"""Path to a HDF5 file containing a lookup table for high-flux ToF.
189+
190+
The table was created using the ``tof`` package and the chopper settings for the
191+
DREAM instrument in high-resolution mode.
192+
Note that the phase of the band-control chopper (BCC) was set to 240 degrees to
193+
match that of the simulated data (this has since been found to be non-optimal as it
194+
leads to time overlap between the two frames).
195+
196+
The notebook that was used to create the table can be found at
197+
https://github.com/scipp/essdiffraction/blob/main/tools/dream-make-tof-lookup-table.ipynb
198+
"""
189199
return get_path("DREAM-high-flux-tof-lookup-table.h5")

docs/user-guide/dream/dream-make-tof-lookup-table.ipynb renamed to tools/dream-make-tof-lookup-table.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
"wf[time_of_flight.DistanceResolution] = sc.scalar(0.1, unit=\"m\")\n",
6767
"wf[time_of_flight.TimeResolution] = sc.scalar(250.0, unit='us')\n",
6868
"wf[time_of_flight.LookupTableRelativeErrorThreshold] = 0.02\n",
69-
"# wf[time_of_flight.PulsePeriod] = 1.0 / sc.scalar(14.0, unit=\"Hz\")\n",
70-
"# wf[time_of_flight.PulseStride] = 1\n",
71-
"# wf[time_of_flight.PulseStrideOffset] = None"
69+
"wf[time_of_flight.PulsePeriod] = 1.0 / sc.scalar(14.0, unit=\"Hz\")\n",
70+
"wf[time_of_flight.PulseStride] = 1\n",
71+
"wf[time_of_flight.PulseStrideOffset] = None"
7272
]
7373
},
7474
{

0 commit comments

Comments
 (0)