est.tests.test_io#

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

Functions

saveChannel(tmpdir, channel)

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

saveSpectra(tmpdir, spectra)

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

testDimensionsChannelYX(tmpdir)

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

testDimensionsXYEnergy(tmpdir)

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