Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSOC24: First Objectives and Proposal Code, Velocity Packet Tracker Visualization. #2570

Closed
wants to merge 17 commits into from
Closed
4 changes: 4 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,7 @@ Kim Lingemann <[email protected]> kimsina <[email protected]>
Kim Lingemann <[email protected]> kim <[email protected]>

Sumit Gupta <[email protected]>

Gudur Krishna Chaitanya <[email protected]>
Gudur Krishna Chaitanya <[email protected]> KC210404 <[email protected]>
Gudur Krishna Chaitanya <[email protected]> KC210404 <[email protected]>
6 changes: 3 additions & 3 deletions tardis/io/model_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from astropy import units as u
from numpy import recfromtxt
from radioactivedecay import Nuclide
from radioactivedecay.utils import Z_DICT, elem_to_Z
from radioactivedecay.utils import Z_DICT, elem_to_Z, NuclideStrError

from tardis.io.configuration.config_reader import ConfigurationNameSpace
from tardis.montecarlo.base import MonteCarloTransportSolver
Expand Down Expand Up @@ -169,7 +169,7 @@ def read_uniform_abundances(abundances_section, no_of_shells):
)

for element_symbol_string in abundances_section:
if element_symbol_string == "type":
if element_symbol_string == "type" or element_symbol_string == "model_isotope_time_0":
continue
try:
if element_symbol_string in Z_DICT.values():
Expand All @@ -185,7 +185,7 @@ def read_uniform_abundances(abundances_section, no_of_shells):
abundances_section[element_symbol_string]
)

except RuntimeError as err:
except NuclideStrError as err:
raise RuntimeError(
f"Abundances are not defined properly in config file : {err.args}"
)
Expand Down
Loading