Skip to content

Commit

Permalink
pre-commit /linting
Browse files Browse the repository at this point in the history
  • Loading branch information
esoteric-ephemera committed May 20, 2024
1 parent db76679 commit 5f6c8f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pymatgen/io/vasp/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2799,8 +2799,8 @@ def write_input(
self,
output_dir: PathLike = ".",
make_dir_if_not_present: bool = True,
cif_name : str | None = None,
zip_name : str | None = None,
cif_name: str | None = None,
zip_name: str | None = None,
) -> None:
"""
Write VASP inputs to a directory.
Expand Down
7 changes: 3 additions & 4 deletions pymatgen/io/vasp/sets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
from __future__ import annotations

import abc
import os
import shutil
import warnings
from copy import deepcopy
Expand Down Expand Up @@ -358,7 +357,7 @@ def write_input(
same name as the InputSet (e.g., MPStaticSet.zip).
"""
vasp_input = self.get_input_set(potcar_spec=potcar_spec)

cif_name = None
if include_cif:
struct = vasp_input["POSCAR"].structure
Expand All @@ -367,8 +366,8 @@ def write_input(
vasp_input.write_input(
output_dir,
make_dir_if_not_present=make_dir_if_not_present,
cif_name = cif_name,
zip_name = f"{type(self).__name__}.zip" if zip_output else None
cif_name=cif_name,
zip_name=f"{type(self).__name__}.zip" if zip_output else None,
)

for key, val in self.files_to_transfer.items():
Expand Down

0 comments on commit 5f6c8f9

Please sign in to comment.