radis.test.spectrum.test_compare module

Examples

Run all tests:

pytest      # (in command line, in project folder)

Run only fast tests (i.e: tests that a ‘fast’ label):

pytest -m fast
test_compare_methods(verbose=True, plot=True, close_plots=True, *args, **kwargs)[source]

Just run all Spectrum compare methods to check they work

test_get_distance_normalize()[source]

Test that get_distance supports normalize parameter.

Two spectra with the same shape but different scales should yield ~0 distance when normalized (since shape is identical).

test_get_residual()[source]
test_plot_compare_with_nan(plot=True, verbose=True, close_plots=True, *args, **kwargs)[source]