emmet-builders 0.85.1__py3-none-any.whl → 0.86.0rc0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of emmet-builders might be problematic. Click here for more details.

@@ -4,8 +4,8 @@ from maggma.core import Store
4
4
  from emmet.builders.settings import EmmetBuildSettings
5
5
  from emmet.builders.utils import get_potcar_stats
6
6
  from emmet.core.tasks import TaskDoc
7
+ from emmet.core.types.enums import DeprecationMessage
7
8
  from emmet.core.vasp.calc_types.enums import CalcType
8
- from emmet.core.vasp.validation import DeprecationMessage
9
9
  from emmet.core.vasp.validation_legacy import ValidationDoc
10
10
 
11
11
 
@@ -75,12 +75,15 @@ class TaskValidator(MapBuilder):
75
75
  potcar_stats=self.potcar_stats,
76
76
  )
77
77
 
78
- bad_tags = list(
79
- set(task_doc.tags or []).intersection(self.settings.DEPRECATED_TAGS)
80
- )
81
- if len(bad_tags) > 0:
82
- validation_doc.warnings.append(f"Manual Deprecation by tags: {bad_tags}")
83
- validation_doc.valid = False
84
- validation_doc.reasons.append(DeprecationMessage.MANUAL)
78
+ if task_doc.tags:
79
+ bad_tags = list(
80
+ set(task_doc.tags).intersection(self.settings.DEPRECATED_TAGS)
81
+ )
82
+ if len(bad_tags) > 0:
83
+ validation_doc.warnings.append(
84
+ f"Manual Deprecation by tags: {bad_tags}"
85
+ )
86
+ validation_doc.valid = False
87
+ validation_doc.reasons.append(DeprecationMessage.MANUAL)
85
88
 
86
89
  return validation_doc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: emmet-builders
3
- Version: 0.85.1
3
+ Version: 0.86.0rc0
4
4
  Summary: Builders for the Emmet Library
5
5
  Author-email: The Materials Project <feedback@materialsproject.org>
6
6
  License: Modified BSD
@@ -34,8 +34,8 @@ emmet/builders/mobility/migration_graph.py,sha256=BxVh3homd9GEniB33_dJ1e2wmRvMni
34
34
  emmet/builders/vasp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  emmet/builders/vasp/materials.py,sha256=pcSUF78RBaKL3FdyDB6QSjrL0apUi3PT0A8Sj6Bc5Ks,13302
36
36
  emmet/builders/vasp/mp_potcar_stats.json.gz,sha256=x3bn4gSMj1U_3bR2qKIaBtbJlYT-EJgoUIMFTA9bvaU,338957
37
- emmet/builders/vasp/task_validator.py,sha256=9iYQJfxHf0FmuueBhor_0bsIkbOv6-yK77K7FTZAnRo,2951
38
- emmet_builders-0.85.1.dist-info/METADATA,sha256=GDafQpVYKs-51RiY1tvHHVF5CNA-_XH4yjTwlhCO9Ps,1588
39
- emmet_builders-0.85.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
- emmet_builders-0.85.1.dist-info/top_level.txt,sha256=6GcpbmWPeFhNCTfDFilb8GQ4T1UQu4z9c5jpobjwE-Q,6
41
- emmet_builders-0.85.1.dist-info/RECORD,,
37
+ emmet/builders/vasp/task_validator.py,sha256=LCj-LBuNzt2vJQ8G6WJvBtiM7_Kxrh3Uhvq97viVoIA,3033
38
+ emmet_builders-0.86.0rc0.dist-info/METADATA,sha256=E5D3DZVgAMJInIdmNqwPFiMdXfp7XrTWarkPw1dT1kg,1591
39
+ emmet_builders-0.86.0rc0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
+ emmet_builders-0.86.0rc0.dist-info/top_level.txt,sha256=6GcpbmWPeFhNCTfDFilb8GQ4T1UQu4z9c5jpobjwE-Q,6
41
+ emmet_builders-0.86.0rc0.dist-info/RECORD,,