Skip to content

Commit 0996d00

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7a3be6e commit 0996d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymatgen/analysis/defects/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def defect_structure(self) -> Structure:
716716
self.site.specie.symbol,
717717
)
718718
inter_states = self.site.specie.oxidation_states
719-
inter_oxi = max(inter_states + (0,), key=abs)
719+
inter_oxi = max((*inter_states, 0), key=abs)
720720
int_specie = Species(self.site.specie.symbol, inter_oxi)
721721
struct.insert(
722722
0,

0 commit comments

Comments
 (0)