Skip to content

Commit

Permalink
add type hints to DFPTFW
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jan 28, 2022
1 parent a0518c3 commit f7a9ecd
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions atomate/vasp/fireworks/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
sequences of VASP calculations.
"""
import warnings
from typing import Any, Dict, List, Union

from fireworks import Firework
from pymatgen.core import Structure
Expand Down Expand Up @@ -591,20 +592,20 @@ def __init__(
class DFPTFW(Firework):
def __init__(
self,
structure=None,
prev_calc_dir=None,
name="static dielectric",
vasp_cmd=VASP_CMD,
copy_vasp_outputs=True,
lepsilon=True,
db_file=DB_FILE,
parents=None,
user_incar_settings=None,
pass_nm_results=False,
structure: Structure = None,
prev_calc_dir: str = None,
name: str = "static dielectric",
vasp_cmd: str = VASP_CMD,
copy_vasp_outputs: bool = True,
lepsilon: bool = True,
db_file: str = DB_FILE,
parents: Union[Firework, List[Firework]] = None,
user_incar_settings: Dict[str, Any] = None,
pass_nm_results: bool = False,
**kwargs,
):
"""
Static DFPT calculation Firework
Static DFPT calculation Firework
Args:
structure (Structure): Input structure. If copy_vasp_outputs, used only to set the
Expand Down

0 comments on commit f7a9ecd

Please sign in to comment.