Skip to content

Commit

Permalink
from_string -> from_str
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmathis committed Oct 4, 2024
1 parent e5cba26 commit d4a8fb0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pymatgen/analysis/alloys/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,13 +467,13 @@ def _get_oxi_state_info(

if (anions_a or cations_a) and (anions_b or cations_b):

ions_a = [Species.from_string(sp) for sp in anions_a] + [
Species.from_string(sp) for sp in cations_a
ions_a = [Species.from_str(sp) for sp in anions_a] + [
Species.from_str(sp) for sp in cations_a
]
elements_a = [str(sp.element) for sp in ions_a]

ions_b = [Species.from_string(sp) for sp in anions_b] + [
Species.from_string(sp) for sp in cations_b
ions_b = [Species.from_str(sp) for sp in anions_b] + [
Species.from_str(sp) for sp in cations_b
]
elements_b = [str(sp.element) for sp in ions_b]

Expand Down

0 comments on commit d4a8fb0

Please sign in to comment.