radis.test.lbl.test_loader moduleΒΆ

Created on Mon May 7 17:34:52 2018

@author: erwan

test_custom_abundance(verbose=True, plot=False, *args, **kwargs)[source]ΒΆ

Test calculations with custom abundances

set the terrestrial abundance to False to force computation of linestrength from Einstein coefficients instead of rescaling parameters

get_abundance(), set_abundance()

test_ignore_cached_files()[source]ΒΆ

Previous implementation of RADIS saved the cached h5 files generated while reading the dataset in the same directory from where the data was being read. Using a wildcard input such as path = "cdsd_hitemp_09_frag*" in such case led to the cached files present in directory to also being loaded and treated as the dataset files. This resulted in an error due to the differences in the way data is stored in h5 files versus in dataset files such as par, txt, etc.

Reference: https://github.com/radis/radis/issues/121

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

Implemented in https://github.com/radis/radis/pull/185

  • Test that calculating with cache files outside the spectral range they

are properly ignored

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

Test autoretrieve from a database:

first generate an empty SpecDatabase associated to a :py:class`~radis.lbl.factory.SpectrumFactory`, then calculate a first spectrum, then calculate it again and make sure it is retrieved from the database

test_vaex_and_pandas_dataframe_fetch_databank()[source]ΒΆ

Compares dataframes fetched and manipulated with vaex with that of pandas. Every column of dataframe in vaex format is compared with corresponding column of dataframe in pandas format . Here expected - All columns are same for dataframe in pandas and vaex format - Ensure dataframes are same across all the databanks available in RADIS Added in https://github.com/radis/radis/pull/580

test_vaex_and_pandas_dataframe_load_databank()[source]ΒΆ

Compares dataframes fetched and manipulated with vaex with that of pandas. Every column of dataframe in vaex format is compared with corresponding column of dataframe in pandas format . Added in https://github.com/radis/radis/pull/580