emmet-builders 0.83.6rc0__py3-none-any.whl → 0.83.6rc3__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.
- emmet/builders/vasp/materials.py +10 -6
- emmet/builders/vasp/task_validator.py +3 -3
- {emmet_builders-0.83.6rc0.dist-info → emmet_builders-0.83.6rc3.dist-info}/METADATA +1 -1
- {emmet_builders-0.83.6rc0.dist-info → emmet_builders-0.83.6rc3.dist-info}/RECORD +6 -6
- {emmet_builders-0.83.6rc0.dist-info → emmet_builders-0.83.6rc3.dist-info}/WHEEL +0 -0
- {emmet_builders-0.83.6rc0.dist-info → emmet_builders-0.83.6rc3.dist-info}/top_level.txt +0 -0
emmet/builders/vasp/materials.py
CHANGED
|
@@ -11,7 +11,7 @@ from emmet.builders.settings import EmmetBuildSettings
|
|
|
11
11
|
from emmet.core.utils import group_structures, jsanitize, undeform_structure
|
|
12
12
|
from emmet.core.vasp.calc_types import TaskType
|
|
13
13
|
from emmet.core.vasp.material import MaterialsDoc
|
|
14
|
-
from emmet.core.
|
|
14
|
+
from emmet.core.tasks import TaskDoc
|
|
15
15
|
|
|
16
16
|
__author__ = "Shyam Dwaraknath <shyamd@lbl.gov>"
|
|
17
17
|
|
|
@@ -176,7 +176,7 @@ class MaterialsBuilder(Builder):
|
|
|
176
176
|
invalid_ids = set()
|
|
177
177
|
|
|
178
178
|
projected_fields = [
|
|
179
|
-
"last_updated",
|
|
179
|
+
# "last_updated",
|
|
180
180
|
"completed_at",
|
|
181
181
|
"task_id",
|
|
182
182
|
"formula_pretty",
|
|
@@ -190,9 +190,11 @@ class MaterialsBuilder(Builder):
|
|
|
190
190
|
"input.structure",
|
|
191
191
|
# needed for entry from task_doc
|
|
192
192
|
"output.energy",
|
|
193
|
+
"calcs_reversed.output.energy",
|
|
193
194
|
"input.is_hubbard",
|
|
194
195
|
"input.hubbards",
|
|
195
|
-
"input.potcar_spec",
|
|
196
|
+
"calcs_reversed.input.potcar_spec",
|
|
197
|
+
"calcs_reversed.output.structure",
|
|
196
198
|
# needed for transform deformation structure back for grouping
|
|
197
199
|
"transformations",
|
|
198
200
|
# misc info for materials doc
|
|
@@ -222,7 +224,9 @@ class MaterialsBuilder(Builder):
|
|
|
222
224
|
were processed
|
|
223
225
|
"""
|
|
224
226
|
|
|
225
|
-
tasks = [
|
|
227
|
+
tasks = [
|
|
228
|
+
TaskDoc(**task) for task in items
|
|
229
|
+
] # [TaskDoc(**task) for task in items]
|
|
226
230
|
formula = tasks[0].formula_pretty
|
|
227
231
|
task_ids = [task.task_id for task in tasks]
|
|
228
232
|
|
|
@@ -290,8 +294,8 @@ class MaterialsBuilder(Builder):
|
|
|
290
294
|
self.logger.info("No items to update")
|
|
291
295
|
|
|
292
296
|
def filter_and_group_tasks(
|
|
293
|
-
self, tasks: List[
|
|
294
|
-
) -> Iterator[List[
|
|
297
|
+
self, tasks: List[TaskDoc], task_transformations: List[Union[Dict, None]]
|
|
298
|
+
) -> Iterator[List[TaskDoc]]:
|
|
295
299
|
"""
|
|
296
300
|
Groups tasks by structure matching
|
|
297
301
|
"""
|
|
@@ -5,8 +5,8 @@ from maggma.core import Store
|
|
|
5
5
|
|
|
6
6
|
from emmet.builders.settings import EmmetBuildSettings
|
|
7
7
|
from emmet.builders.utils import get_potcar_stats
|
|
8
|
+
from emmet.core.tasks import TaskDoc
|
|
8
9
|
from emmet.core.vasp.calc_types.enums import CalcType
|
|
9
|
-
from emmet.core.vasp.task_valid import TaskDocument
|
|
10
10
|
from emmet.core.vasp.validation import DeprecationMessage, ValidationDoc
|
|
11
11
|
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ class TaskValidator(MapBuilder):
|
|
|
39
39
|
# Set up potcar cache if appropriate
|
|
40
40
|
if self.settings.VASP_VALIDATE_POTCAR_STATS:
|
|
41
41
|
if not self.potcar_stats:
|
|
42
|
-
self.potcar_stats = get_potcar_stats()
|
|
42
|
+
self.potcar_stats = get_potcar_stats(strict=False)
|
|
43
43
|
else:
|
|
44
44
|
self.potcar_stats = None
|
|
45
45
|
|
|
@@ -65,7 +65,7 @@ class TaskValidator(MapBuilder):
|
|
|
65
65
|
Args:
|
|
66
66
|
item (dict): a (projection of a) task doc
|
|
67
67
|
"""
|
|
68
|
-
task_doc =
|
|
68
|
+
task_doc = TaskDoc(**item)
|
|
69
69
|
validation_doc = ValidationDoc.from_task_doc(
|
|
70
70
|
task_doc=task_doc,
|
|
71
71
|
kpts_tolerance=self.settings.VASP_KPTS_TOLERANCE,
|
|
@@ -43,9 +43,9 @@ emmet/builders/molecules/vibration.py,sha256=9LNeKh8BHck-ooW4XzAZAFeio2u6bDwdsUV
|
|
|
43
43
|
emmet/builders/qchem/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
44
|
emmet/builders/qchem/molecules.py,sha256=CZyVQzjfb-_gAS997BFbd9xkKwvwPWrquNH0Aoy6oY8,26217
|
|
45
45
|
emmet/builders/vasp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
|
-
emmet/builders/vasp/materials.py,sha256=
|
|
47
|
-
emmet/builders/vasp/task_validator.py,sha256=
|
|
48
|
-
emmet_builders-0.83.
|
|
49
|
-
emmet_builders-0.83.
|
|
50
|
-
emmet_builders-0.83.
|
|
51
|
-
emmet_builders-0.83.
|
|
46
|
+
emmet/builders/vasp/materials.py,sha256=5bjP-W5-gmSjDzmcHdF7bviwgk4ywUceCL4FcF9Ya9c,12700
|
|
47
|
+
emmet/builders/vasp/task_validator.py,sha256=ZSXqvYablV_p46d0YlvA4BUvP7Xf8Vn2aDOMDPXX9Cg,2919
|
|
48
|
+
emmet_builders-0.83.6rc3.dist-info/METADATA,sha256=amQ6ljsZhplefXWurOCNvbcvQvp8eYb-iGh3oNu7dwM,1995
|
|
49
|
+
emmet_builders-0.83.6rc3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
50
|
+
emmet_builders-0.83.6rc3.dist-info/top_level.txt,sha256=6GcpbmWPeFhNCTfDFilb8GQ4T1UQu4z9c5jpobjwE-Q,6
|
|
51
|
+
emmet_builders-0.83.6rc3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|