Skip to content

Commit

Permalink
Merge pull request #207 from natashabatalha/dev
Browse files Browse the repository at this point in the history
Critical hot fix for correct He mass
  • Loading branch information
natashabatalha authored Jul 8, 2024
2 parents b2b4521 + a82531e commit bbc2b67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion picaso/atmsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ def get_weights(self, molecule):
el, num = sep
#default isotope
if iso_num=='main':
iso_num = list(ele[el].isotopes.keys())[0]
#select the main isotope off according to that with the highest relative abundance
main_iso = np.argmax([ele[el].isotopes[i].abundance for i in ele[el].isotopes.keys()])
iso_num = list(ele[el].isotopes.keys())[main_iso]
totmass += ele[el].isotopes[iso_num].mass*float(num)

weights[i]=totmass
Expand Down

0 comments on commit bbc2b67

Please sign in to comment.