scippneutron.tof.unwrap.unwrapped_time_of_arrival_minus_frame_start_time#
- scippneutron.tof.unwrap.unwrapped_time_of_arrival_minus_frame_start_time(toa, start_time)[source]#
Compute the time of arrival of the neutron at the detector, unwrapped at the pulse period, minus the start time of the frame. We subtract the start time of the frame so that we can use a modulo operation to wrap the time of arrival at the frame period in the case of pulse-skipping.
- Parameters:
toa (
tof.unwrap.UnwrappedTimeOfArrival
(scipp.Variable
)) – Time of arrival of the neutron at the detector, unwrapped at the pulse period.start_time (
tof.unwrap.FrameAtDetectorStartTime
(scipp.Variable
)) – Time of the start of the frame at the detector.
- Return type:
tof.unwrap.UnwrappedTimeOfArrivalMinusStartTime
(scipp.Variable
)