atomict 1.2.8__py3-none-any.whl → 1.2.10__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.8"
1
+ __version__ = "1.2.10"
atomict/cli/main.py CHANGED
@@ -128,7 +128,7 @@ def convert(input_file, output_file, strict_map_keys):
128
128
  elif input_ext in traj_msgpack_formats:
129
129
  atoms, _ = load_msgpack_trajectory(input_file, strict_map_key=strict_map_keys)
130
130
  else:
131
- atoms = read(input_file)
131
+ atoms = read(input_file, index=":")
132
132
  except UnknownFileTypeError:
133
133
  console.print(f"[red]Error: Unknown file type for input file '{input_file}'[/red]")
134
134
  console.print(f"[yellow]The file extension '{input_ext}' is not recognized.[/yellow]")
@@ -0,0 +1,39 @@
1
+ from atomict.api import get, post
2
+
3
+
4
+ def get_impact_simulation(id: str, **params):
5
+ """
6
+ Get Impact Simulation
7
+
8
+ Args:
9
+ id: str - The ID of the Impact Simulation
10
+ **params: Additional GET parameters to pass to the API
11
+ """
12
+ # Build query string from parameters
13
+ query_string = '&'.join(f"{k}={v}" for k, v in params.items())
14
+ base_url = f"api/impact-simulation/{id}/"
15
+
16
+ # Add query string if we have parameters
17
+ url = f"{base_url}?{query_string}" if query_string else base_url
18
+
19
+ result = get(url)
20
+ return result
21
+
22
+
23
+ def associate_user_upload_with_impact_simulation(user_upload_id: str, impact_simulation_id: str):
24
+ """
25
+ Associate a user upload with an Impact Simulation
26
+ """
27
+ result = post(
28
+ "api/impact-simulation-file/",
29
+ payload={"user_upload_id": user_upload_id, "impact_simulation_id": impact_simulation_id},
30
+ )
31
+ return result
32
+
33
+
34
+ def get_impact_simulation_files(impact_simulation_id: str):
35
+ """
36
+ Get the files associated with an Impact Simulation
37
+ """
38
+ result = get(f"api/impact-simulation-file/?impact_simulation__id={impact_simulation_id}")
39
+ return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomict
3
- Version: 1.2.8
3
+ Version: 1.2.10
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
@@ -24,7 +24,7 @@ Requires-Dist: click~=8.0
24
24
  Requires-Dist: rich~=13.0
25
25
  Requires-Dist: deepdiff
26
26
  Provides-Extra: utils
27
- Requires-Dist: ase==3.23.0; extra == "utils"
27
+ Requires-Dist: ase>=3.23.0; extra == "utils"
28
28
  Requires-Dist: spglib==2.5.0; extra == "utils"
29
29
  Requires-Dist: pymatgen==2025.3.10; extra == "utils"
30
30
  Requires-Dist: msgpack==1.1.0; extra == "utils"
@@ -1,12 +1,12 @@
1
1
  atomict/__init__.py,sha256=nMXg9GFsk8gCcyBnh1MAeUPvo4Zcuv3sdwGHZrxfpPE,36
2
- atomict/__version__.py,sha256=CfVXm0wwlKPW0khOcwhWw61TpgtZiLijCePsAIOK3aU,22
2
+ atomict/__version__.py,sha256=GI4rgymQsPWdk2_d96NgmZBRuFM6yOZB-kysnrjBjVo,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
6
6
  atomict/exceptions.py,sha256=-PT-Bw-2SoPAME0ELXCXRBsU7tBOAbHTscnvnGRto-4,146
7
7
  atomict/ase/atatoms.py,sha256=LGGopVFR1jLJCSCASnpmOSeCl7TSmWXr6Nf6GqIMsSo,26852
8
8
  atomict/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- atomict/cli/main.py,sha256=pMG0KtS3cFPbTpzmtei75ShOV_HmcH3ebghmgs-f60s,9703
9
+ atomict/cli/main.py,sha256=M8T_cJUAwha4tnBWRRwIr3iiG2hBLyJAk-uewu3sy5A,9714
10
10
  atomict/cli/commands/adsorbate.py,sha256=fdu6m5Kx2fkQXA--BsvU5QWcq0-PKFi7bGaLJZnnqag,5836
11
11
  atomict/cli/commands/ai_assist.py,sha256=IgZyoeL5mdwkcwxKWD7y0Enjus-wSlrYee-keyacOOY,3449
12
12
  atomict/cli/commands/catalysis.py,sha256=raBRBttv3R2ZQvZBnyIlnBXJyZbpISL_5_WWXHg3X_s,5502
@@ -62,6 +62,7 @@ atomict/simulation/counterfactual.py,sha256=8-Kf4wGxPvImDr0j2grmBLLwFQ4JpjhBBxIk
62
62
  atomict/simulation/defect.py,sha256=uvYLR_Ng0PFV9A_EE_EgB2SK8jqUpJtvuwLKL02Am3c,691
63
63
  atomict/simulation/ea.py,sha256=bYvYnw59F7QCuV-airnX0Wu8fqZHKlsdywgoK7pwNso,3610
64
64
  atomict/simulation/fhi_aims.py,sha256=w-tiPvPWWubolcZxaM2QLxOoSYmKIYVx8ohLZavhzig,1887
65
+ atomict/simulation/impact.py,sha256=b5RL--cFeg6gPtxN5xwX_M4LkvYn_lRLi1OWz-uimPA,1161
65
66
  atomict/simulation/kpoint.py,sha256=8Dc1F9xqubK1HBCQa7GeRtIhs28302sRnuUK0Rns9Q4,1739
66
67
  atomict/simulation/mattergen.py,sha256=ybzJy0nwIAZhG8IIuhlmi-_J6lLyci3aVo35h2ni_w0,488
67
68
  atomict/simulation/md.py,sha256=C32Sh2sv9PQ1lyGaWYFmG5evKk3Jqw0wel2ml4uPnJw,770
@@ -78,9 +79,9 @@ atomict/utils/tenacity.py,sha256=phc6YPEk7idqiFFeHeK-ngiAaqVOZFYp8S7dX1k-YXc,998
78
79
  atomict/utils/traj.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
79
80
  atomict/utils/fhiaims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
80
81
  atomict/utils/fhiaims/geometry.py,sha256=3Ap6gO7UsLFXBl9Ohv8Vmfpvwu0fohpzgdxOFGg6Tmc,2281
81
- atomict-1.2.8.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
82
- atomict-1.2.8.dist-info/METADATA,sha256=S_2EfXMgbpxnb7ukspHKyTsWNDq3bX-NK-tHXNIXa_A,3269
83
- atomict-1.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- atomict-1.2.8.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
85
- atomict-1.2.8.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
86
- atomict-1.2.8.dist-info/RECORD,,
82
+ atomict-1.2.10.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
83
+ atomict-1.2.10.dist-info/METADATA,sha256=mheuhAXd-9vZnSmB43-GorihpZdzBamhnw7HecQwPi4,3270
84
+ atomict-1.2.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
85
+ atomict-1.2.10.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
86
+ atomict-1.2.10.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
87
+ atomict-1.2.10.dist-info/RECORD,,