Skip to content

Commit

Permalink
Normalizing dataframe after merging
Browse files Browse the repository at this point in the history
  • Loading branch information
satwik-kambham committed Oct 31, 2022
1 parent 10674b4 commit 3268459
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tardis/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ def __init__(
isotope_mass_fraction = self.raw_isotope_abundance.decay(13).add(
raw_abundance, fill_value=0
)
norm_factor = isotope_mass_fraction.sum(axis=0)
isotope_mass_fraction /= norm_factor

atomic_mass = None
if elemental_mass is not None:
Expand Down

0 comments on commit 3268459

Please sign in to comment.