scippneutron.tof.unwrap.time_of_flight_origin_wfm_from_chopper#

scippneutron.tof.unwrap.time_of_flight_origin_wfm_from_chopper(source_chopper, subframe_bounds)#

Compute the time-of-flight origin from a source chopper in the WFM case.

For WFM there is not a single time-of-flight “origin”, but one for each subframe. For each subframe, the time-of-flight origin may be defined as the center of the respective chopper slit opening of the WFM chopper. In some cases there is a pair WFM choppers, in which case the time-of-flight origin may be defined using some combination of the two choppers. This is not supported yet, as we only support a single source chopper input.

Return type:

TimeOfFlightOrigin