tardis.io.model.readers.csvy module

tardis.io.model.readers.csvy.load_csv_from_csvy(fname)[source]
Parameters:
fnamestring

Path to csvy file

Returns:
datapandas.dataframe

csv data from csvy file

tardis.io.model.readers.csvy.load_csvy(fname)[source]
Parameters:
fnamestring

Path to csvy file

Returns:
yaml_dictdictionary

YAML part of the csvy file

datapandas.DataFrame

csv data from csvy file

tardis.io.model.readers.csvy.load_yaml_from_csvy(fname)[source]
Parameters:
fnamestring

Path to csvy file

Returns:
yaml_dictdictionary

YAML part of the csvy file

tardis.io.model.readers.csvy.parse_csv_mass_fractions(csvy_data)[source]

A parser for the csv data part of a csvy model file. This function filters out columns that are not mass fractions.

Parameters:
csvy_datapandas.DataFrame
Returns:
indexnp.ndarray
mass_fractionspandas.DataFrame
isotope_mass_fractionpandas.MultiIndex