Skip to content

Commit

Permalink
fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed Mar 24, 2021
1 parent b60548a commit 76ae6a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions emmet-core/emmet/core/electrode.py
Expand Up @@ -65,11 +65,11 @@ class InsertionVoltagePairDoc(VoltagePairDoc):
Features specific to insertion electrode
"""

formula_charge: float = Field(
formula_charge: str = Field(
None, description="The chemical formula of the charged material."
)

formula_discharge: float = Field(
formula_discharge: str = Field(
None, description="The chemical formula of the discharged material."
)

Expand Down Expand Up @@ -186,7 +186,7 @@ def from_entries(
elements = sorted(
host_structure.composition.elements + working_ion_entry.composition.elements
)
chemsys = "-".join(elements)
chemsys = "-".join(sorted(map(str, elements)))
return cls(
battery_id=battery_id,
host_structure=host_structure.as_dict(),
Expand Down

0 comments on commit 76ae6a9

Please sign in to comment.