Skip to content

Commit 2685b8c

Browse files
authored
Merge pull request #743 from hackingmaterials/revert-742-run-vasp-custodian
Revert "RunVaspCustodian add optional_param jobs: list[VaspJob]"
2 parents ad1d102 + 5cd4732 commit 2685b8c

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

atomate/vasp/firetasks/run_calc.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,30 +76,28 @@ class RunVaspCustodian(FiretaskBase):
7676
vasp_cmd (str): the name of the full executable for running VASP. Supports env_chk.
7777
7878
Optional params:
79-
jobs (list[VaspJob]): VaspJobs to run.
80-
job_type (str): choose from "normal" (default), "double_relaxation_run" (two consecutive
79+
job_type: (str) - choose from "normal" (default), "double_relaxation_run" (two consecutive
8180
jobs), "full_opt_run" (multiple optimizations), and "neb"
8281
handler_group: (str | list[ErrorHandler]) - group of handlers to use. See handler_groups dict in the code or
8382
the groups and complete list of handlers in each group. Alternatively, you can
8483
specify a list of ErrorHandler objects.
8584
max_force_threshold: (float) - if >0, adds MaxForceErrorHandler. Not recommended for
8685
nscf runs.
87-
scratch_dir (str): if specified, uses this directory as the root scratch dir.
86+
scratch_dir: (str) - if specified, uses this directory as the root scratch dir.
8887
Supports env_chk.
8988
gzip_output: (bool) - gzip output (default=T)
9089
max_errors: (int) - maximum # of errors to fix before giving up (default=5)
9190
ediffg: (float) shortcut for setting EDIFFG in special custodian jobs
9291
auto_npar: (bool) - use auto_npar (default=F). Recommended set to T
9392
for single-node jobs only. Supports env_chk.
94-
gamma_vasp_cmd (str): cmd for Gamma-optimized VASP compilation.
93+
gamma_vasp_cmd: (str) - cmd for Gamma-optimized VASP compilation.
9594
Supports env_chk.
9695
wall_time (int): Total wall time in seconds. Activates WalltimeHandler if set.
9796
half_kpts_first_relax (bool): Use half the k-points for the first relaxation
9897
"""
9998

10099
required_params = ["vasp_cmd"]
101100
optional_params = [
102-
"jobs",
103101
"job_type",
104102
"handler_group",
105103
"max_force_threshold",
@@ -166,8 +164,7 @@ def run_task(self, fw_spec):
166164
vasp_cmd = shlex.split(vasp_cmd)
167165

168166
# initialize variables
169-
jobs = self.get("jobs", [])
170-
job_type = self.get("job_type", "normal" if jobs == [] else None)
167+
job_type = self.get("job_type", "normal")
171168
scratch_dir = env_chk(self.get("scratch_dir"), fw_spec)
172169
gzip_output = self.get("gzip_output", True)
173170
max_errors = self.get("max_errors", CUSTODIAN_MAX_ERRORS)

atomate/vasp/fireworks/core.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
sequences of VASP calculations.
44
"""
55
import warnings
6-
from typing import Any, Dict, List, Union
76

87
from fireworks import Firework
98
from pymatgen.core import Structure
@@ -584,20 +583,20 @@ def __init__(
584583
class DFPTFW(Firework):
585584
def __init__(
586585
self,
587-
structure: Structure = None,
588-
prev_calc_dir: str = None,
589-
name: str = "static dielectric",
590-
vasp_cmd: str = VASP_CMD,
591-
copy_vasp_outputs: bool = True,
592-
lepsilon: bool = True,
593-
db_file: str = DB_FILE,
594-
parents: Union[Firework, List[Firework]] = None,
595-
user_incar_settings: Dict[str, Any] = None,
596-
pass_nm_results: bool = False,
586+
structure=None,
587+
prev_calc_dir=None,
588+
name="static dielectric",
589+
vasp_cmd=VASP_CMD,
590+
copy_vasp_outputs=True,
591+
lepsilon=True,
592+
db_file=DB_FILE,
593+
parents=None,
594+
user_incar_settings=None,
595+
pass_nm_results=False,
597596
**kwargs,
598597
):
599598
"""
600-
Static DFPT calculation Firework
599+
Static DFPT calculation Firework
601600
602601
Args:
603602
structure (Structure): Input structure. If copy_vasp_outputs, used only to set the

0 commit comments

Comments
 (0)