atomict 1.2.27__tar.gz → 1.2.28__tar.gz
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-1.2.27 → atomict-1.2.28}/PKG-INFO +1 -1
- atomict-1.2.28/atomict/__version__.py +1 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/infra/distwork/task.py +2 -1
- {atomict-1.2.27 → atomict-1.2.28}/atomict.egg-info/PKG-INFO +1 -1
- {atomict-1.2.27 → atomict-1.2.28}/atomict.egg-info/SOURCES.txt +0 -1
- atomict-1.2.27/atomict/__version__.py +0 -1
- atomict-1.2.27/atomict/simulation/phonon.py +0 -98
- {atomict-1.2.27 → atomict-1.2.28}/LICENSE +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/README.md +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/api.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/ase/atatoms.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/auth.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/ai_assist.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/common.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/convert.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/exploration/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/exploration/soec.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/exploration/sqs.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/helpers.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/k8s.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/login.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/organization.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/project.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/simulation/fhiaims.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/simulation/kpoint.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/simulation/qe.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/task.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/token.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/traj.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/upload.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/user.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/commands/workspace.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/core/client.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/core/config.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/core/utils.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/cli/main.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/env.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/exceptions.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/infra/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/infra/distwork/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/infra/distwork/environment.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/infra/logging.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/atoms.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/cif.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/fhiaims.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/formats/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/formats/atraj.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/formats/tess.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/formats/traj.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/trajectory.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/io/utils.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/ml/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/ml/model.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/project/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/project/link.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/project/note.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/project/project.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/project/tags.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/project/workbench.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/reality/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/reality/oqmd.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/reality/slabs.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/cantera.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/counterfactual.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/defect.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/ea.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/fhi_aims.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/impact.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/kpoint.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/md.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/mlrelax.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/models.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/qe.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/sh.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/sqs.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/simulation/utils.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/user/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/user/files.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/user/workspace.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/utils/fhiaims/__init__.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/utils/fhiaims/geometry.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/utils/tenacity.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict/utils/traj.py +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict.egg-info/dependency_links.txt +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict.egg-info/entry_points.txt +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict.egg-info/requires.txt +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/atomict.egg-info/top_level.txt +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/pyproject.toml +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/requirements.txt +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/setup.cfg +0 -0
- {atomict-1.2.27 → atomict-1.2.28}/tests/test_loki_handler_close.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atomict
|
|
3
|
-
Version: 1.2.
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.2.28"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: atomict
|
|
3
|
-
Version: 1.2.
|
|
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 +0,0 @@
|
|
|
1
|
-
__version__ = "1.2.27"
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|