Skip to content

Commit

Permalink
critical hot fix; fixes bug that is pulling 3 as the mass of He
Browse files Browse the repository at this point in the history
  • Loading branch information
natashabatalha committed Jul 8, 2024
1 parent aa02060 commit 12ac513
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 12ac513

Please sign in to comment.