Skip to content

Commit

Permalink
Adding SPIN to list of optional parameters to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmerman committed Oct 29, 2024
1 parent 82c2707 commit 9fd4e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparc/sparc_parsers/ion.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _write_ion(
]:
val = block.get(key, None)
# print(key, val)
if (key not in ["RELAX", "COORD", "COORD_FRAC"]) and (val is None):
if (key not in ["RELAX", "COORD", "COORD_FRAC", "SPIN"]) and (val is None):
raise ValueError(f"Key {key} is not provided! Abort writing ion file")
# TODO: change the API version
if val is None:
Expand Down

0 comments on commit 9fd4e47

Please sign in to comment.