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 Feb 28, 2023
1 parent c3fd98c commit 1da9dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/core/ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_reduced_formula_and_factor(self, iupac_ordering: bool = False, hydrates:
d = {k: int(round(v)) for k, v in comp.get_el_amt_dict().items()}
(formula, factor) = reduce_formula(d, iupac_ordering=iupac_ordering)

if "HO" in formula and self.composition['H'] == self.composition['O']:
if "HO" in formula and self.composition["H"] == self.composition["O"]:
formula = formula.replace("HO", "OH")

if nH2O > 0:
Expand Down

0 comments on commit 1da9dda

Please sign in to comment.