Skip to content

Commit 7099049

Browse files
committed
remove deprecated atomate.vasp.powerups.add_tags
1 parent 884c984 commit 7099049

File tree

6 files changed

+6
-16
lines changed

6 files changed

+6
-16
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
path: coverage_reports/
3333

3434
workflows:
35+
version: 2
3536
build_and_test:
3637
jobs:
3738
- test

atomate/vasp/powerups.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
)
88
from atomate.common.powerups import add_namefile as common_add_namefile
99
from atomate.common.powerups import add_priority as common_add_priority
10-
from atomate.common.powerups import add_tags as common_add_tags
1110
from atomate.common.powerups import preserve_fworker as common_preserve_fworker
1211
from atomate.common.powerups import (
1312
set_execution_options as common_set_execution_options,
@@ -673,11 +672,6 @@ def add_additional_fields_to_taskdocs(
673672
)
674673

675674

676-
@deprecated(replacement=common_add_tags)
677-
def add_tags(original_wf, tags_list):
678-
return common_add_tags(original_wf, tags_list)
679-
680-
681675
def add_common_powerups(wf, c=None):
682676
"""
683677
Apply the common powerups such as add_namefile, use_scratch_dir etc. from

atomate/vasp/tests/test_vasp_powerups.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
from pymatgen.io.vasp.sets import MPRelaxSet
55
from pymatgen.util.testing import PymatgenTest
66

7-
from atomate.common.powerups import powerup_by_kwargs
7+
from atomate.common.powerups import add_tags, powerup_by_kwargs
88
from atomate.utils.utils import get_fws_and_tasks
99
from atomate.vasp.powerups import (
1010
add_modify_incar,
1111
add_modify_kpoints,
1212
add_modify_potcar,
1313
add_priority,
1414
add_small_gap_multiply,
15-
add_tags,
1615
add_trackers,
1716
add_wf_metadata,
1817
clean_up_files,

atomate/vasp/workflows/base/approx_neb.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@
1313
)
1414
from fireworks import Workflow
1515

16-
from atomate.common.powerups import powerup_by_kwargs
16+
from atomate.common.powerups import add_tags, powerup_by_kwargs
1717
from atomate.vasp.config import DB_FILE, VASP_CMD
1818
from atomate.vasp.fireworks.approx_neb import EndPointFW, HostFW
1919
from atomate.vasp.fireworks.approx_neb_dynamic import EvaluatePathFW
20-
from atomate.vasp.powerups import (
21-
add_additional_fields_to_taskdocs,
22-
add_tags,
23-
use_custodian,
24-
)
20+
from atomate.vasp.powerups import add_additional_fields_to_taskdocs, use_custodian
2521

2622
__author__ = "Ann Rutt"
2723
__email__ = "[email protected]"

atomate/vasp/workflows/base/ferroelectric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
from fireworks import Firework, Workflow
66

7+
from atomate.common.powerups import add_tags
78
from atomate.utils.utils import get_a_unique_id, get_logger
89
from atomate.vasp.firetasks.parse_outputs import PolarizationToDb
910
from atomate.vasp.fireworks.core import HSEBSFW, OptimizeFW
1011
from atomate.vasp.fireworks.polarization import LcalcpolFW
11-
from atomate.vasp.powerups import add_tags
1212

1313
__author__ = "Tess Smidt"
1414
__email__ = "[email protected]"

atomate/vasp/workflows/base/magnetism.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from pymatgen.core import Lattice, Structure
1313
from pymatgen.io.vasp.sets import MPRelaxSet
1414

15+
from atomate.common.powerups import add_tags
1516
from atomate.utils.utils import get_logger
1617
from atomate.vasp.config import ADD_WF_METADATA, DB_FILE, VASP_CMD
1718
from atomate.vasp.firetasks.parse_outputs import (
@@ -22,7 +23,6 @@
2223
from atomate.vasp.powerups import (
2324
add_additional_fields_to_taskdocs,
2425
add_common_powerups,
25-
add_tags,
2626
add_wf_metadata,
2727
)
2828
from atomate.vasp.workflows.base.core import get_wf

0 commit comments

Comments
 (0)