ewoksxas.tasks.tests.test_xftf#

Tests for the Xftf task, focused on the array-size alignment path.

Like autobk, xftf can emit R-space arrays of differing length when inputs differ. These tests stub larch.xafs.xftf to force ragged output and check the task aligns it onto one grid (no-op when lengths already match).

Functions

make_stub_xftf(monkeypatch)

Factory: stub xftf so successive groups get r arrays of given lengths.

test_interpolation_aligns_ragged_without_nan(...)

test_matched_lengths_are_not_resampled(...)

Equal-length spectra bypass alignment and stack byte-identically.

test_rebinning_aligns_ragged_with_nan_gaps(...)