ess.reduce.time_of_flight.types.ResampledTofData#
- ess.reduce.time_of_flight.types.ResampledTofData = ess.reduce.time_of_flight.types.ResampledTofData#
Histogrammed detector data with time-of-flight coordinate, that has been resampled.
Histogrammed data that has been converted to tof will typically have unsorted bin edges (due to either wrapping of time_of_flight or wavelength overlap between subframes). We thus resample the data to ensure that the bin edges are sorted. It makes use of the
to_events
helper which generates a number of events in each bin with a uniform distribution. The new events are then histogrammed using a set of sorted bin edges to yield a new histogram with sorted bin edges.WARNING: This function is highly experimental, has limitations and should be used with caution. It is a workaround to the issue that rebinning data with unsorted bin edges is not supported in scipp.