ewoksxas.converters.tests.test_larch#
Tests for the Larch group converters.
Functions
Test that matching 1D x and y produce a single group. |
|
Test that a 1D x is shared across all rows of a 2D y. |
|
Test that matching 2D x and y are paired row by row. |
|
Test that energy values already in eV are left unchanged. |
|
Test that energy values in keV are detected and converted to eV. |
|
Test that a descending energy array in keV is correctly detected. |
|
Test that an energy array of length 1 doesn't raise a warning/error. |
|
Test extracting several attributes from multiple groups at once. |
|
Test extracting one attribute from multiple groups. |
|
Test extracting attributes from a list with just one group. |
|
Test that a bare string is accepted as the attributes argument. |
|
Test that an unknown mode raises ValueError. |
|
Test that extra kwargs are forwarded to every group. |
|
Test that mode 'energy' writes energy and mu attributes. |
|
Test that mode 'r' writes r and chir attributes. |
|
Test that a non-NumPy x raises TypeError. |
|
Test that a non-NumPy y raises TypeError. |
|
Test that mismatched 1D shapes raise ValueError. |
|
Test that a 1D x incompatible with the 2D y columns raises ValueError. |
|
Test that mismatched 2D shapes raise ValueError. |