Skip to content

Commit

Permalink
Enable predecorated structures for SmactStructures
Browse files Browse the repository at this point in the history
  • Loading branch information
AntObi committed Aug 23, 2023
1 parent 949c83b commit c68cb0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion smact/structure_prediction/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,12 @@ def from_py_struct(
)
struct = oxi_transform.apply_transformation(structure)
print("Oxidation states assigned based on ICSD statistics")
elif determine_oxi == "predecorated":
struct = structure

Check warning on line 278 in smact/structure_prediction/structure.py

View check run for this annotation

Codecov / codecov/patch

smact/structure_prediction/structure.py#L277-L278

Added lines #L277 - L278 were not covered by tests

else:
raise ValueError(
f"Argument for 'determine_oxi', <{determine_oxi}> is not valid. Choose either 'BV','comp_ICSD' or 'both'."
f"Argument for 'determine_oxi', <{determine_oxi}> is not valid. Choose either 'BV','comp_ICSD','both' or 'predecorated'."
)

sites, species = SmactStructure.__parse_py_sites(struct)
Expand Down

0 comments on commit c68cb0d

Please sign in to comment.