radis.test.tools.test_database moduleΒΆ

Test that SpecDatabase works

test_database_functions(verbose=True, plot=True, close_plots=True, warnings=True, *args, **kwargs)[source]ΒΆ

Test SpecDatabase functions

test_fit_spectrum_plotting(plot=True, close_plots=True, *args, **kwargs)[source]ΒΆ

Test SpecDatabase.fit_spectrum plotting functionality (Issue #377)

test_lazy_loading(verbose=True, *args, **kwargs)[source]ΒΆ

Test lazy loading

test_plot_spec(plot=True, close_plots=True, verbose=True, *args, **kwargs)[source]ΒΆ
test_save_compressed2(verbose=True, *args, **kwargs)[source]ΒΆ

Check if saving a spectrum with compress = 2 does not change something.

test_speclist(*args, **kwargs)[source]ΒΆ

Test SpecList functions

test_store_filelike_warns_on_path_params(verbose=True, *args, **kwargs)[source]ΒΆ

Test that path-related parameters emit warnings with file-like objects.

test_store_roundtrip_via_buffer(verbose=True, *args, **kwargs)[source]ΒΆ

Test that spectrum stored to buffer can be loaded back.

test_store_to_bytesio(verbose=True, *args, **kwargs)[source]ΒΆ

Test storing a spectrum to a BytesIO buffer.

test_store_to_stringio(verbose=True, *args, **kwargs)[source]ΒΆ

Test storing a spectrum to a StringIO buffer.