emmet-builders 0.83.6__py3-none-any.whl → 0.83.6rc0__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.

@@ -6,14 +6,9 @@ from typing import Dict, Iterable, Iterator, List, Optional, Union
6
6
  from maggma.builders import Builder
7
7
  from maggma.stores import Store
8
8
  from maggma.utils import grouper
9
- from pymatgen.analysis.elasticity.strain import Deformation
10
- from pymatgen.core.structure import Structure
11
- from pymatgen.transformations.standard_transformations import (
12
- DeformStructureTransformation,
13
- )
14
9
 
15
10
  from emmet.builders.settings import EmmetBuildSettings
16
- from emmet.core.utils import group_structures, jsanitize
11
+ from emmet.core.utils import group_structures, jsanitize, undeform_structure
17
12
  from emmet.core.vasp.calc_types import TaskType
18
13
  from emmet.core.vasp.material import MaterialsDoc
19
14
  from emmet.core.vasp.task_valid import TaskDocument
@@ -343,29 +338,3 @@ class MaterialsBuilder(Builder):
343
338
  for group in grouped_structures:
344
339
  grouped_tasks = [filtered_tasks[struct.index] for struct in group] # type: ignore
345
340
  yield grouped_tasks
346
-
347
-
348
- def undeform_structure(structure: Structure, transformations: Dict) -> Structure:
349
- """
350
- Get the undeformed structure by applying the transformations in a reverse order.
351
-
352
- Args:
353
- structure: deformed structure
354
- transformation: transformation that deforms the structure
355
-
356
- Returns:
357
- undeformed structure
358
- """
359
-
360
- for transformation in reversed(transformations.get("history", [])):
361
- if transformation["@class"] == "DeformStructureTransformation":
362
- deform = Deformation(transformation["deformation"])
363
- dst = DeformStructureTransformation(deform.inv)
364
- structure = dst.apply_transformation(structure)
365
- else:
366
- raise RuntimeError(
367
- "Expect transformation to be `DeformStructureTransformation`; "
368
- f"got {transformation['@class']}"
369
- )
370
-
371
- return structure
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emmet-builders
3
- Version: 0.83.6
3
+ Version: 0.83.6rc0
4
4
  Summary: Builders for the Emmet Library
5
5
  Home-page: https://github.com/materialsproject/emmet
6
6
  Author: The Materials Project
@@ -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=gQ_T-CXt64Ty_MHc92T-e6jcssjQBUfNLeu3YgHdT38,13632
46
+ emmet/builders/vasp/materials.py,sha256=WVNNvY47tn5iyIXiAwt6JFE1oITjZ5mVYUYRR2_cEcE,12561
47
47
  emmet/builders/vasp/task_validator.py,sha256=otj94MwCDRedE0FaSoeuxUrXdMB56TpSK4hDTL_I5g8,2927
48
- emmet_builders-0.83.6.dist-info/METADATA,sha256=jeLo_nl6E6Zv4Ye9zE73b-qVvyyR-jiMC5ULe8QGhuY,1992
49
- emmet_builders-0.83.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
50
- emmet_builders-0.83.6.dist-info/top_level.txt,sha256=6GcpbmWPeFhNCTfDFilb8GQ4T1UQu4z9c5jpobjwE-Q,6
51
- emmet_builders-0.83.6.dist-info/RECORD,,
48
+ emmet_builders-0.83.6rc0.dist-info/METADATA,sha256=A0jGv7bTV8FFS7InZr86rllpr_u0AtjiiW0iSs4F92E,1995
49
+ emmet_builders-0.83.6rc0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
50
+ emmet_builders-0.83.6rc0.dist-info/top_level.txt,sha256=6GcpbmWPeFhNCTfDFilb8GQ4T1UQu4z9c5jpobjwE-Q,6
51
+ emmet_builders-0.83.6rc0.dist-info/RECORD,,