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 May 16, 2022
1 parent 2ca81b5 commit 68a6e3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion chemistry_tools/formulae/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
# |

# stdlib
from typing import cast, Dict, List, Optional, Type, TypeVar
from typing import Dict, List, Optional, Type, TypeVar, cast

# 3rd party
from cawdrey import frozendict # nodep
Expand Down

0 comments on commit 68a6e3a

Please sign in to comment.