atomict 1.2.11__py3-none-any.whl → 1.2.13__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.
atomict/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.11"
1
+ __version__ = "1.2.13"
@@ -20,6 +20,26 @@ from atomict.user.files import download_file
20
20
  from atomict.user.workspace import download_workspace
21
21
 
22
22
 
23
+ def fetch_source_geometry(sim: dict, workbench_dir: str) -> Atoms:
24
+ if sim["source_geometry"]:
25
+
26
+ extension = sim["source_geometry"]["orig_name"].split(".")[-1]
27
+
28
+ download_file(sim["source_geometry"]["uuid"], workbench_dir + f"/geometry.{extension}")
29
+
30
+ if extension == "atraj":
31
+ atoms, _ = load_msgpack_trajectory(workbench_dir + f"/geometry.{extension}")
32
+ else:
33
+ atoms = read(workbench_dir + f"/geometry.{extension}")
34
+
35
+ if isinstance(atoms, list):
36
+ return atoms[-1]
37
+ else:
38
+ return atoms
39
+ else:
40
+ raise ValueError("No input geometry found")
41
+
42
+
23
43
  def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
24
44
 
25
45
  """
@@ -87,16 +107,16 @@ def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
87
107
 
88
108
  extension = sim["starting_structure_userupload"]["orig_name"].split(".")[-1]
89
109
 
90
- download_file(sim["starting_structure_userupload"]["uuid"], workbench_dir + f"/relaxed.{extension}")
110
+ download_file(sim["starting_structure_userupload"]["uuid"], workbench_dir + f"/geometry.{extension}")
91
111
 
92
112
  if extension == "atraj":
93
- atoms, _ = load_msgpack_trajectory(workbench_dir + f"/relaxed.{extension}")
113
+ atoms, _ = load_msgpack_trajectory(workbench_dir + f"/geometry.{extension}")
94
114
  else:
95
- atoms = read(workbench_dir + f"/relaxed.{extension}")
115
+ atoms = read(workbench_dir + f"/geometry.{extension}")
96
116
 
97
117
  if isinstance(atoms, list):
98
118
  return atoms[-1]
99
119
  else:
100
120
  return atoms
101
121
  else:
102
- raise ValueError("No relaxed structure simulation found")
122
+ raise ValueError("No input geometry found")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomict
3
- Version: 1.2.11
3
+ Version: 1.2.13
4
4
  Summary: The client application for the https://atomictessellator.com/
5
5
  Author-email: Steven Anderson <steven@atomictessellator.com>, Alain Richardt <alain@atomictessellator.com>
6
6
  License: MIT
@@ -1,5 +1,5 @@
1
1
  atomict/__init__.py,sha256=nMXg9GFsk8gCcyBnh1MAeUPvo4Zcuv3sdwGHZrxfpPE,36
2
- atomict/__version__.py,sha256=aBWZsCYiXXcSUsUJr3tOTQWsH7ZDqJzyMYdQbOd5Qtc,23
2
+ atomict/__version__.py,sha256=rQSlPcfj4yT4krIq6epTVQyBzIX4etVOgfupVkM-RnU,23
3
3
  atomict/api.py,sha256=1aI2qPMm6V9VY4PLR8LBMm2WwVCBB9pAL7sEowvjhtc,6706
4
4
  atomict/auth.py,sha256=yMEaxaSg44tSDxr4x-bjwjjn9zIsqw_bVoKd01Zd9LU,987
5
5
  atomict/env.py,sha256=RqK5SUfCDJ6aMGtCPhNmSrwsNZSjlGaDQYYk41oeBDc,2115
@@ -71,7 +71,7 @@ atomict/simulation/models.py,sha256=2gBPyRo5I6TJetc8iqu7W6gF3eJr9D-zqffonooaJxs,
71
71
  atomict/simulation/phonon.py,sha256=_roteuXyV8KmlwGW1jnidSY6xu_3ReNhLtYGL0OdS8Q,2950
72
72
  atomict/simulation/qe.py,sha256=p46YiHj_HIiqxrQGs-SBuGoWk5zUiHahXIRcyjdEq3c,1702
73
73
  atomict/simulation/sqs.py,sha256=1neQRVUy21R_UVusML6ocz6RVwxGUVh81CMr2TljGbw,1132
74
- atomict/simulation/utils.py,sha256=Y80zRtQg3cIWsepLEcwZTSmg9KjKBgTODClbCD88dOY,3775
74
+ atomict/simulation/utils.py,sha256=NQU04VgoLJGh7hL8VDSdfqylRGVeLFINWiXOKAqmiKU,4412
75
75
  atomict/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
76
  atomict/user/files.py,sha256=8xGPkISOIiFYsYr26k8OqGE3G7q096zdtV6uy6YTtVU,875
77
77
  atomict/user/workspace.py,sha256=qH-iF8kLj7Zpj646NFF_G3d4_P22jQjw5une-ZBiBak,3923
@@ -79,9 +79,9 @@ atomict/utils/tenacity.py,sha256=phc6YPEk7idqiFFeHeK-ngiAaqVOZFYp8S7dX1k-YXc,998
79
79
  atomict/utils/traj.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
80
  atomict/utils/fhiaims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
81
  atomict/utils/fhiaims/geometry.py,sha256=3Ap6gO7UsLFXBl9Ohv8Vmfpvwu0fohpzgdxOFGg6Tmc,2281
82
- atomict-1.2.11.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
83
- atomict-1.2.11.dist-info/METADATA,sha256=lq-2iE5JLz2t3xn9OSpr2NUH33Wjl3mpu0F8Q1ldqQk,3270
84
- atomict-1.2.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
85
- atomict-1.2.11.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
86
- atomict-1.2.11.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
87
- atomict-1.2.11.dist-info/RECORD,,
82
+ atomict-1.2.13.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
83
+ atomict-1.2.13.dist-info/METADATA,sha256=z8xG9DD85w6q2KvnyMhEaY9C5zSPlERWtMa8teF9K4c,3270
84
+ atomict-1.2.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
85
+ atomict-1.2.13.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
86
+ atomict-1.2.13.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
87
+ atomict-1.2.13.dist-info/RECORD,,