radis.test.io.test_hitran_cdsd module

Test parsers.

Notes

Runs tests for radis/io so that they can be accessed by pytest (and hopefully the CI test suite)

Examples

Run all tests:

pytest       (in command line, in project folder)

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

pytest -m fast

test_cache_regeneration(verbose=True, warnings=True, **kwargs)[source]

Checks that if a line database is manually updated (last edited time changes), its cache file will be regenerated automatically

test_hitran_names_match(verbose=True, warnings=True, *args, **kwargs)[source]

Compare that HITRAN species defined in radis.api.hitranapi match the nomenclature dictionary : radis.api.hitranapi.trans.

This should be ensured by developers when adding new species.

test_irrelevant_file_loading(*args, **kwargs)[source]

check that irrelevant files (irrelevant wavenumber) are not loaded

test_local_hitemp_file(verbose=True, warnings=True, **kwargs)[source]

Analyse some default files to make sure everything still works.

test_local_hitran_co(verbose=True, warnings=True, **kwargs)[source]

Analyse some default files to make sure everything still works.

test_local_hitran_co2(verbose=True, warnings=True, **kwargs)[source]
test_local_hitran_h2o(verbose=True, warnings=True, **kwargs)[source]