scippneutron.tof.unwrap.time_of_flight_from_lookup#
- scippneutron.tof.unwrap.time_of_flight_from_lookup(toa, toa_to_tof)[source]#
Compute the time-of-flight from the time-of-arrival. Lookup tables to convert time-of-arrival to time-of-flight are created internally.
- Parameters:
toa (
tof.unwrap.TimeOfArrivalMinusStartTimeModuloPeriod
(scipp.Variable
)) – Time of arrival of the neutron at the detector, unwrapped at the pulse period, minus the start time of the frame, modulo the frame period.toa_to_tof (
TimeOfArrivalToTimeOfFlight
) – Conversion from-time-of arrival to time-of-flight.
- Return type: