ewoksxrdct.tests.test_regrid_data#

Functions

test_compute_bin_edges_centered_multiple_bins()

Edges are offset by half the grid spacing so bins center on grid points.

test_compute_bin_edges_centered_single_bin_raises()

A single-bin grid has no spacing to compute a bin from, so it raises a ValueError.

test_run_averages_points_that_fall_in_same_bin()

When two readings land in the same bin the regridded value is their average, and a bin with no readings is zero rather than NaN.

test_run_drops_points_outside_grid_range()

A motor readback beyond the nominal scan range is excluded from the regridded output instead of raising or corrupting a bin.

test_run_handles_descending_grid_params()

A grid given as (high, low, count) -- e.g. a motor scanning from a high position down to a low one -- must regrid correctly and produce ascending output grids, not silently drop every point.

test_run_handles_integer_intensity_values()

Integer intensity input handled in regrid_histogram.

test_run_passes_through_radial_axis_metadata()

The radial axis name and edge values are forwarded unchanged.