est.tests.test_io#

Tests for reading spectra with different dimensions organisation (X, Y, Channels), (Channels, Y, X), (Y, Channels, X)

Functions

saveChannel(tmp_path, channel)

Save the energy to the spectra file defined in setup and return the associated silx url

saveSpectra(tmp_path, spectra)

Save the spectra to the spectra file defined in setup and return the associated silx url

testDimensionsChannelYX(tmp_path)

Test that spectra stored as Energy, Y, X can be read

testDimensionsXYEnergy(tmp_path)

Test that spectra stored as X, Y Energy can be read