radis.test.spectrum.test_rescale moduleΒΆ
SummaryΒΆ
Test Spectrum rescaling methods
- test_astropy_units(verbose=True, warnings=True, *args, **kwargs)[source]ΒΆ
This test is to assert the use of astropy units in rescale function, by comparing the absorbance of a spectrum rescaled with astropy units (in this test we use u.km) with the absorbance of original spectrum
- test_compression(verbose=True, warnings=True, *args, **kwargs)[source]ΒΆ
Test that redundant quantities are properly inferred from already known spectral quantities
- test_get_recompute(verbose=True, *args, **kwargs)[source]ΒΆ
Make sure
get_recompute()
works as expectedHere, we check which quantities are needed to recompute radiance_noslit
- test_recompute_equilibrium(verbose=True, warnings=True, plot=True, *args, **kwargs)[source]ΒΆ
Test that spectral quantities recomputed under equilibrium assumption yields the same output as with non equilibrium routines when Tvib = Trot
- test_rescale_vs_direct_computation(verbose=True, *args, **kwargs)[source]ΒΆ
Compare spectral arrays initially computed with recomputed spectral arrays
Notes
Use verbose=2 to get DEBUG_MODE output