Skip to content

Commit

Permalink
Small fix for missing mkdir command in VASP file writing (when POTC…
Browse files Browse the repository at this point in the history
…ARs not available)
  • Loading branch information
kavanase committed Jun 5, 2024
1 parent ff209d3 commit ecc044e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doped/vasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ def write_input(
if not str(e).startswith("NELECT") or not potcar_spec:
raise e

os.makedirs(output_path, exist_ok=True)
with zopen(os.path.join(output_path, "POTCAR.spec"), "wt") as pot_spec_file:
pot_spec_file.write("\n".join(self.potcar_symbols))

Expand Down

0 comments on commit ecc044e

Please sign in to comment.