tardis.io.model.parse_composition_configuration module¶
- tardis.io.model.parse_composition_configuration.parse_composition_from_config(atom_data, config, time_explosion, geometry)[source]¶
Parse the composition data from a CSVY model.
- Parameters:
- atom_dataobject
The atom data used for parsing.
- configobject
The configuration data.
- time_explosionfloat
The time of the explosion.
- geometryobject
The geometry of the model.
- Returns:
- Composition
The parsed composition
- array
Electron densities.
- tardis.io.model.parse_composition_configuration.parse_composition_from_csvy(atom_data, csvy_model_config, csvy_model_data, time_explosion, geometry)[source]¶
Parse the composition data from a CSVY model.
- Parameters:
- atom_dataobject
The atom data used for parsing.
- csvy_model_configobject
The configuration data of the CSVY model.
- csvy_model_dataobject
The data of the CSVY model.
- time_explosionfloat
The time of the explosion.
- geometryobject
The geometry of the model.
- Returns:
- Compositionobject
The parsed composition
- Raises:
- None.
Notes
This function parses the composition data from a CSVY model. It calls the ‘parse_density_csvy’ function to parse the density data, and the ‘parse_mass_fraction_csvy’ function to parse the mass fraction and isotope mass fraction data. The parsed data is returned as a Composition object.