radis.test.los.test_slabs 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_equilibrium_condition()[source]¶

See issue #370

‘thermal_equilibrium’ is used to recompute some spectral arrays from others, it is important to make sure a line-of-sight doesn’t assume thermal equilibrium wrongly

test_merge_slabs(verbose=True, plot=False, close_plots=True, warnings=True, *args, **kwargs)[source]¶

Merge 10 slabs with 1/10 of concentration, and compare the results. Ensure error is < 0.1%

Note that we won’t have exactly the same results as the broadening is not updated in MergeSlabs

test_serial_slabs_radiance(verbose=True, plot=False, warnings=True, *args, **kwargs)[source]¶

Add some slabs in series under optically thin conditions, ensures that radiance is about the sum of all.

test_serial_slabs_transmittance(verbose=True, plot=False, warnings=True, *args, **kwargs)[source]¶

Add some slabs in series, ensure that overall transmittance decreases Also check that some quantities are propagated (like path length?)