atomict 1.2.27__py3-none-any.whl → 1.2.28__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.27"
1
+ __version__ = "1.2.28"
@@ -42,8 +42,9 @@ def update_task_status(
42
42
  *,
43
43
  api_root: str = None,
44
44
  token: str = None,
45
+ **kwargs,
45
46
  ):
46
- payload = {}
47
+ payload = dict(kwargs)
47
48
 
48
49
  if status:
49
50
  payload["status"] = status.value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomict
3
- Version: 1.2.27
3
+ Version: 1.2.28
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=JKArgvnX6ljUI_WxYnXTejXGdjsA4KJ3Cy2xBcK4vh4,23
2
+ atomict/__version__.py,sha256=sZoYrdh97RjbwC1rg-3mt6kqvjxTxWL7ejhDDrG6mVM,23
3
3
  atomict/api.py,sha256=pYPKSxNgqyS36sqDR7bEtBf2SWwofDRXrLV8Cc2sebc,7129
4
4
  atomict/auth.py,sha256=yMEaxaSg44tSDxr4x-bjwjjn9zIsqw_bVoKd01Zd9LU,987
5
5
  atomict/env.py,sha256=RqK5SUfCDJ6aMGtCPhNmSrwsNZSjlGaDQYYk41oeBDc,2115
@@ -34,7 +34,7 @@ atomict/infra/__init__.py,sha256=qp1HP0h6G9LW0QOe_9JBgoE_Q_OJpA10dMNQXz40Ct0,89
34
34
  atomict/infra/logging.py,sha256=0UBaEO9sbxhGSl_jrxzF1c2Q0N5OYB2rP-CMo2E5iMs,8102
35
35
  atomict/infra/distwork/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  atomict/infra/distwork/environment.py,sha256=joydS9wA2pgWafXh_Wqgg95InaxhsusohaeWc9IOgwA,909
37
- atomict/infra/distwork/task.py,sha256=DIvLWmT_erH_p3hYiR4mke-1Ii2v5pQ6P4oBdr4GSuA,1515
37
+ atomict/infra/distwork/task.py,sha256=Tby-3Rr6IVxRQr7MgIyal9-R7z2Kbwde_WxE_ENgzP4,1539
38
38
  atomict/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  atomict/io/atoms.py,sha256=kdMnto7eyiY2zmoOvLlzbuTGUCIp4ViQGwLmf2m9fGU,13144
40
40
  atomict/io/cif.py,sha256=s4ThgriM_yyqKUZ8_RIPHm7lz7U5-hX8Jv96JNU2QVo,5793
@@ -67,7 +67,6 @@ atomict/simulation/kpoint.py,sha256=iwNPIOKRdm6W10UOFSGjQetVP1ZuFBY59xo4da7ajoE,
67
67
  atomict/simulation/md.py,sha256=C32Sh2sv9PQ1lyGaWYFmG5evKk3Jqw0wel2ml4uPnJw,770
68
68
  atomict/simulation/mlrelax.py,sha256=sLODM31FQCQXJ1ezvekzIdnjHcN7YxNrgTgRak4IQYE,3249
69
69
  atomict/simulation/models.py,sha256=RSVLldNurx7F-ijlrLuVyljMS06bsZCBFMXNcdzdOuU,115
70
- atomict/simulation/phonon.py,sha256=UG6v-mpfF-STw0DK-620v26Rpc2EzAx4K-8KykzHtm8,3080
71
70
  atomict/simulation/qe.py,sha256=p46YiHj_HIiqxrQGs-SBuGoWk5zUiHahXIRcyjdEq3c,1702
72
71
  atomict/simulation/sh.py,sha256=YymnH9q8aD_THiielicTKgPGcRunsAcoV5bZKu__L0w,609
73
72
  atomict/simulation/sqs.py,sha256=1neQRVUy21R_UVusML6ocz6RVwxGUVh81CMr2TljGbw,1132
@@ -79,9 +78,9 @@ atomict/utils/tenacity.py,sha256=phc6YPEk7idqiFFeHeK-ngiAaqVOZFYp8S7dX1k-YXc,998
79
78
  atomict/utils/traj.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
79
  atomict/utils/fhiaims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
80
  atomict/utils/fhiaims/geometry.py,sha256=Dr8g-xTqiH5tTFncn1wZmSnbetvvDylgxL3LldtdFD0,2022
82
- atomict-1.2.27.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
83
- atomict-1.2.27.dist-info/METADATA,sha256=oAc_PHTlYy8mOvDPU6PSE0DhhMUZ1kDRyIUYQZmAhXQ,2938
84
- atomict-1.2.27.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
85
- atomict-1.2.27.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
86
- atomict-1.2.27.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
87
- atomict-1.2.27.dist-info/RECORD,,
81
+ atomict-1.2.28.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
82
+ atomict-1.2.28.dist-info/METADATA,sha256=C4LnsAy8zsZUqeKTG-xUVWgIHg3vgD19hbEbhnXCUwE,2938
83
+ atomict-1.2.28.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
84
+ atomict-1.2.28.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
85
+ atomict-1.2.28.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
86
+ atomict-1.2.28.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.1)
2
+ Generator: setuptools (83.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,98 +0,0 @@
1
- from atomict.api import get, post
2
- from atomict.simulation.models import MODEL_ORB_D3_V2, MODEL_MATTERSIM_1_0_0_5M, MODEL_ORB_V3_CONSERVATIVE, MODEL_ESEN_30M_OAM
3
-
4
-
5
- def get_phonon_run(id: str, **params):
6
- """
7
- Get Phonon Run
8
-
9
- A Phonon Run is a collection of Phonon Simulations.
10
-
11
- Args:
12
- id: str - The ID of the Phonon Run
13
- **params: Additional GET parameters to pass to the API
14
- """
15
- # Build query string from parameters
16
- query_string = '&'.join(f"{k}={v}" for k, v in params.items())
17
- base_url = f"api/phonon-run/{id}/"
18
-
19
- # Add query string if we have parameters
20
- url = f"{base_url}?{query_string}" if query_string else base_url
21
-
22
- result = get(url)
23
- return result
24
-
25
-
26
- def get_phonon_sim_run(id: str, **params):
27
- """
28
- Get Phonon Simulation Run
29
-
30
- Args:
31
- id: str - The ID of the Phonon Simulation Run
32
- **params: Additional GET parameters to pass to the API
33
- """
34
- # Build query string from parameters
35
- query_string = '&'.join(f"{k}={v}" for k, v in params.items())
36
- base_url = f"api/phonon-run-simulation/{id}/"
37
-
38
- # Add query string if we have parameters
39
- url = f"{base_url}?{query_string}" if query_string else base_url
40
-
41
- result = get(url)
42
- return result
43
-
44
-
45
- def associate_user_upload_with_phonon_sim_run(user_upload_id: str, phonon_run_id: str):
46
- """
47
- Associate a user upload with a Phonon Simulation Run
48
- """
49
- result = post(
50
- "api/phonon-run-simulation-file/",
51
- payload={"user_upload_id": user_upload_id, "phono3py_run_simulation_id": phonon_run_id},
52
- )
53
- return result
54
-
55
-
56
- def create_phonon_run(project_id: str, source_geometry_id: str, action: str, name: str = None, description: str = None, model: int = MODEL_ORB_D3_V2, extra_simulation_kwargs: dict = None):
57
- """
58
- Create a Phonon Run
59
-
60
- Args:
61
- project_id: str - The ID of the Project
62
- source_geometry_id: str - The ID of the Source Geometry
63
- action: str - The action to perform
64
- name: str - The name of the Phonon Run
65
- """
66
-
67
- if action not in ["LAUNCH", "DRAFT"]:
68
- raise ValueError(f"Invalid action: {action} (must be 'LAUNCH' or 'DRAFT')")
69
-
70
- # Validate model is one of the supported constants
71
- valid_models = [
72
- MODEL_ORB_D3_V2,
73
- MODEL_MATTERSIM_1_0_0_5M,
74
- MODEL_ORB_V3_CONSERVATIVE,
75
- MODEL_ESEN_30M_OAM,
76
- ]
77
- if model not in valid_models:
78
- raise ValueError(f"Invalid model: {model}")
79
-
80
- payload = {
81
- "project_id": project_id,
82
- "source_geometry_id": source_geometry_id,
83
- "action": action,
84
- "name": name,
85
- "description": description,
86
- "model": model,
87
- "extra_simulation_kwargs": extra_simulation_kwargs,
88
- }
89
- result = post("api/phonon-run/", payload=payload)
90
- return result
91
-
92
-
93
- def get_phonon_sim_run_files(phonon_sim_run_id: str):
94
- """
95
- Get the files associated with a Phonon Simulation Run
96
- """
97
- result = get(f"api/phonon-run-simulation-file/?phono3py_run_simulation__id={phonon_sim_run_id}")
98
- return result