Skip to content

Commit

Permalink
Fix for isotope abundance parsing (#2003)
Browse files Browse the repository at this point in the history
* Really hacky fix for the 'raw' isotope abundance parsing, someone should fix this properly

* Second attempt at fixing this, pretty hacky again getting the model attributtes in the plasma but at least it runs
  • Loading branch information
Rodot- authored May 4, 2022
1 parent fb853fa commit c07ec8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tardis/plasma/standard_plasmas.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,10 @@ def assemble_plasma(config, model, atom_data=None):

if not model.raw_isotope_abundance.empty:
plasma_modules += isotope_properties
kwargs.update(isotope_abundance=model.raw_isotope_abundance)
isotope_abundance = model.raw_isotope_abundance.loc[
:, model.v_boundary_inner_index : model.v_boundary_outer_index - 1
]
kwargs.update(isotope_abundance=isotope_abundance)

kwargs["helium_treatment"] = config.plasma.helium_treatment

Expand Down

0 comments on commit c07ec8e

Please sign in to comment.