Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 22, 2022
1 parent 580ab5b commit 2994213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chemistry_tools/formulae/formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def most_probable_isotopic_composition(
if not elements_with_isotopes or (element_name in elements_with_isotopes):
# Take the two most abundant isotopes.
first_iso, second_iso = sorted(
[(i[0], i[1][1]) for i in isotope_data[element_name].items() if i[0]],
((i[0], i[1][1]) for i in isotope_data[element_name].items() if i[0]),
key=lambda x: -x[1]
)[:2]

Expand Down

0 comments on commit 2994213

Please sign in to comment.