Skip to content

Commit f6fed94

Browse files
committed
remove deprecated atomate.vasp.powerups.add_namefile
1 parent 52c98f3 commit f6fed94

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

atomate/vasp/powerups.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from atomate.common.powerups import (
66
add_additional_fields_to_taskdocs as common_add_additional_fields_to_taskdocs,
77
)
8-
from atomate.common.powerups import add_namefile as common_add_namefile
8+
from atomate.common.powerups import add_namefile
99
from atomate.common.powerups import add_priority as common_add_priority
1010
from atomate.common.powerups import preserve_fworker as common_preserve_fworker
1111
from atomate.common.powerups import (
@@ -196,11 +196,6 @@ def use_fake_vasp(
196196
return original_wf
197197

198198

199-
@deprecated(replacement=common_add_namefile)
200-
def add_namefile(original_wf, use_slug=True):
201-
return common_add_namefile(original_wf, use_slug=use_slug)
202-
203-
204199
def add_trackers(original_wf, tracked_files=None, nlines=25):
205200
"""
206201
Every FireWork that runs VASP also tracks the OUTCAR, OSZICAR, etc using FWS
@@ -687,7 +682,7 @@ def add_common_powerups(wf, c=None):
687682
c = c or {}
688683

689684
if c.get("ADD_NAMEFILE", ADD_NAMEFILE):
690-
wf = common_add_namefile(wf)
685+
wf = add_namefile(wf)
691686

692687
if c.get("SCRATCH_DIR", SCRATCH_DIR):
693688
wf = use_scratch_dir(wf, c.get("SCRATCH_DIR", SCRATCH_DIR))

atomate/vasp/workflows/tests/test_vasp_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
from pymatgen.util.testing import PymatgenTest
1818
from pymongo import DESCENDING
1919

20+
from atomate.common.powerups import add_namefile
2021
from atomate.utils.testing import AtomateTest
2122
from atomate.vasp.database import VaspCalcDb
2223
from atomate.vasp.firetasks.parse_outputs import VaspDrone
2324
from atomate.vasp.powerups import (
2425
add_bandgap_check,
25-
add_namefile,
2626
add_trackers,
2727
use_custodian,
2828
use_fake_vasp,

0 commit comments

Comments
 (0)