atomict 1.2.24__py3-none-any.whl → 1.2.27__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.
@@ -16,29 +16,43 @@ from atomict.user.files import download_file
16
16
  from atomict.user.workspace import download_workspace
17
17
 
18
18
 
19
- def fetch_source_geometry(sim: dict, workbench_dir: str) -> Atoms:
20
- if sim.get("source_geometry"):
19
+ def _read_geometry_file(filepath: str, extension: str) -> Atoms:
20
+ if extension == "atraj":
21
+ atoms, _ = read_atraj(filepath)
22
+ elif extension == "tess":
23
+ atoms, _ = read_tess(filepath)
24
+ else:
25
+ atoms = read(filepath)
26
+
27
+ if isinstance(atoms, list):
28
+ return atoms[-1]
29
+ return atoms
21
30
 
31
+
32
+ def fetch_source_geometry(sim: dict, workbench_dir: str, *, api_root: str = None, token: str = None) -> Atoms:
33
+ if sim.get("source_geometry"):
22
34
  extension = sim["source_geometry"]["orig_name"].split(".")[-1]
35
+ filepath = workbench_dir + f"/geometry.{extension}"
36
+ download_file(sim["source_geometry"]["id"], filepath, api_root=api_root, token=token)
37
+ return _read_geometry_file(filepath, extension)
38
+ else:
39
+ raise ValueError("No associated input geometry found (simulation.source_geometry)")
23
40
 
24
- download_file(sim["source_geometry"]["id"], workbench_dir + f"/geometry.{extension}")
25
-
26
- if extension == "atraj":
27
- atoms, _ = read_atraj(workbench_dir + f"/geometry.{extension}")
28
- elif extension == "tess":
29
- atoms, _ = read_tess(workbench_dir + f"/geometry.{extension}")
30
- else:
31
- atoms = read(workbench_dir + f"/geometry.{extension}")
32
41
 
33
- if isinstance(atoms, list):
34
- return atoms[-1]
35
- else:
36
- return atoms
42
+ def get_source_geometry(sim: dict, workbench_dir: str, *, api_root: str = None, token: str = None) -> Atoms:
43
+ """Return the source geometry, reading from disk if already present."""
44
+ if sim.get("source_geometry"):
45
+ extension = sim["source_geometry"]["orig_name"].split(".")[-1]
46
+ filepath = workbench_dir + f"/geometry.{extension}"
47
+ if os.path.exists(filepath):
48
+ logging.info(f"Source geometry already on disk, skipping download: {filepath}")
49
+ return _read_geometry_file(filepath, extension)
50
+ return fetch_source_geometry(sim, workbench_dir, api_root=api_root, token=token)
37
51
  else:
38
- raise ValueError("No input geometry found")
52
+ raise ValueError("No associated input geometry found (simulation.source_geometry)")
39
53
 
40
54
 
41
- def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
55
+ def fetch_relaxed_geometry(sim: dict, workbench_dir: str, *, api_root: str = None, token: str = None) -> Atoms:
42
56
 
43
57
  """
44
58
  Fetch the relaxed geometry from the simulation
@@ -48,9 +62,9 @@ def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
48
62
  """
49
63
 
50
64
  if sim.get("starting_structure"):
51
- previous_simulation = fhi_get_simulation(sim["starting_structure"]["id"], include_ht=True)
65
+ previous_simulation = fhi_get_simulation(sim["starting_structure"]["id"], include_ht=True, api_root=api_root, token=token)
52
66
  logging.info(f"Previous simulation: {previous_simulation['id']}")
53
- files = fhi_get_simulation_files(previous_simulation["id"])
67
+ files = fhi_get_simulation_files(previous_simulation["id"], api_root=api_root, token=token)
54
68
 
55
69
  total_size = 0
56
70
  for file in files["results"]:
@@ -62,7 +76,7 @@ def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
62
76
 
63
77
  prev_sim_dir = os.path.join(workbench_dir, "previous_simulation")
64
78
  os.makedirs(prev_sim_dir, exist_ok=True)
65
- download_workspace(files["results"], prev_sim_dir)
79
+ download_workspace(files["results"], prev_sim_dir, api_root=api_root, token=token)
66
80
  atoms = read_aims_output(
67
81
  os.path.join(prev_sim_dir, f"{previous_simulation['id']}.out")
68
82
  )
@@ -71,9 +85,9 @@ def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
71
85
 
72
86
  elif sim.get("starting_structure_mlrelax"):
73
87
 
74
- previous_mlrelax = get_mlrelax(sim["starting_structure_mlrelax"]["id"], include_ht=True)
88
+ previous_mlrelax = get_mlrelax(sim["starting_structure_mlrelax"]["id"], include_ht=True, api_root=api_root, token=token)
75
89
  logging.info(f"Previous MLRelaxation: {previous_mlrelax['id']}")
76
- files = get_mlrelax_files(previous_mlrelax["id"])
90
+ files = get_mlrelax_files(previous_mlrelax["id"], api_root=api_root, token=token)
77
91
 
78
92
  total_size = 0
79
93
  for file in files["results"]:
@@ -85,27 +99,21 @@ def fetch_relaxed_geometry(sim: dict, workbench_dir: str) -> Atoms:
85
99
 
86
100
  mlrelax_dir = os.path.join(workbench_dir, "previous_mlrelax")
87
101
  os.makedirs(mlrelax_dir, exist_ok=True)
88
- download_workspace(files["results"], mlrelax_dir)
102
+ download_workspace(files["results"], mlrelax_dir, api_root=api_root, token=token)
89
103
 
90
- traj_file = os.path.join(mlrelax_dir, "relax.traj")
91
- atraj_file = os.path.join(mlrelax_dir, "relax.atraj")
104
+ for ext in ("atraj", "tess", "traj"):
105
+ candidate = os.path.join(mlrelax_dir, f"relax.{ext}")
106
+ if os.path.exists(candidate):
107
+ return _read_geometry_file(candidate, ext)
92
108
 
93
- if os.path.exists(atraj_file):
94
- atoms, _ = read_atraj(atraj_file)
95
- else:
96
- atoms = read(traj_file)
97
-
98
- if isinstance(atoms, list):
99
- return atoms[-1]
100
- else:
101
- return atoms
109
+ raise FileNotFoundError(f"No relaxation output found in {mlrelax_dir}")
102
110
 
103
111
  elif sim.get("starting_structure_userupload"):
104
112
  logging.info(f"Previous UserUpload: {sim['starting_structure_userupload']['id']}")
105
113
 
106
114
  extension = sim["starting_structure_userupload"]["orig_name"].split(".")[-1]
107
115
 
108
- download_file(sim["starting_structure_userupload"]["id"], workbench_dir + f"/geometry.{extension}")
116
+ download_file(sim["starting_structure_userupload"]["id"], workbench_dir + f"/geometry.{extension}", api_root=api_root, token=token)
109
117
 
110
118
  if extension == "atraj":
111
119
  atoms, _ = read_atraj(workbench_dir + f"/geometry.{extension}")
atomict/user/files.py CHANGED
@@ -3,8 +3,14 @@ import os
3
3
  from atomict.api import get, post
4
4
 
5
5
 
6
- def upload_single_file(full_path: str, file_name: str = None, project_id: str = None):
7
-
6
+ def upload_single_file(
7
+ full_path: str,
8
+ file_name: str = None,
9
+ project_id: str = None,
10
+ *,
11
+ api_root: str = None,
12
+ token: str = None,
13
+ ):
8
14
  payload = {}
9
15
 
10
16
  if file_name:
@@ -16,12 +22,12 @@ def upload_single_file(full_path: str, file_name: str = None, project_id: str =
16
22
  payload['project_id'] = project_id
17
23
 
18
24
  with open(full_path, "rb") as f:
19
- result = post("user/file_upload/", files={file_name: f}, payload=payload)
25
+ result = post("user/file_upload/", files={file_name: f}, payload=payload, api_root=api_root, token=token)
20
26
  return result
21
27
 
22
28
 
23
- def download_file(user_upload_id: str, destination_path: str):
24
- content = get(f"user/file_upload_get/{user_upload_id}/")
29
+ def download_file(user_upload_id: str, destination_path: str, *, api_root: str = None, token: str = None):
30
+ content = get(f"user/file_upload_get/{user_upload_id}/", api_root=api_root, token=token)
25
31
 
26
32
  # Write the content to the destination path
27
33
  # if there's a directory path in the destination path, create the directory
atomict/user/workspace.py CHANGED
@@ -22,12 +22,14 @@ def clear_workspace(sim, base_path: str = "./workspace"):
22
22
  shutil.rmtree(target_dir)
23
23
 
24
24
 
25
- def download_workspace(workspace_files, target_directory: str):
25
+ def download_workspace(workspace_files, target_directory: str, *, api_root: str = None, token: str = None):
26
26
  """Download a workspace to a target directory
27
27
 
28
28
  Args:
29
29
  workspace_files list of UserUpload objects: List of files to download
30
30
  target_directory (str): The directory to download the files to
31
+ api_root (str): Optional API root URL (defaults to AT_SERVER env var)
32
+ token (str): Optional API token (defaults to AT_TOKEN env var)
31
33
  """
32
34
 
33
35
  os.makedirs(target_directory, exist_ok=True)
@@ -39,10 +41,23 @@ def download_workspace(workspace_files, target_directory: str):
39
41
  f"Downloading file {display_name(sim_file['user_upload'])} ({human_filesize(sim_file['user_upload']['size'])})"
40
42
  )
41
43
 
42
- download_file(
43
- sim_file["user_upload"]["id"],
44
- f"{target_directory}/{sim_file['user_upload']['users_name']}",
45
- )
44
+ destination_path = f"{target_directory}/{sim_file['user_upload']['users_name']}"
45
+
46
+ if sim_file['user_upload']['size'] == 0:
47
+ # Make intermediate dirs
48
+ destination_dir = os.path.dirname(destination_path)
49
+ if destination_dir:
50
+ os.makedirs(destination_dir, exist_ok=True)
51
+
52
+ with open(destination_path, "w") as f:
53
+ pass # Will create a 0 byte file
54
+ else:
55
+ download_file(
56
+ sim_file["user_upload"]["id"],
57
+ destination_path,
58
+ api_root=api_root,
59
+ token=token,
60
+ )
46
61
 
47
62
  finished_bytes += sim_file["user_upload"]["size"]
48
63
  logging.info(
@@ -51,7 +66,13 @@ def download_workspace(workspace_files, target_directory: str):
51
66
 
52
67
 
53
68
  def upload_workspace(
54
- sim, associate_function, workspace_folder: str, starting_percent: int = 80
69
+ sim,
70
+ associate_function,
71
+ workspace_folder: str,
72
+ starting_percent: int = 80,
73
+ *,
74
+ api_root: str = None,
75
+ token: str = None,
55
76
  ):
56
77
  """
57
78
  Uploads a workspace folder to the Atomic platform, and associates the uploaded files with the given simulation.
@@ -61,6 +82,8 @@ def upload_workspace(
61
82
  associate_function: The function to associate the uploaded files with the simulation (e.g. associate_user_upload_with_qe_simulation)
62
83
  workspace_folder: The folder to upload
63
84
  starting_percent: The starting percentage to use when updating the task status
85
+ api_root (str): Optional API root URL (defaults to AT_SERVER env var)
86
+ token (str): Optional API token (defaults to AT_TOKEN env var)
64
87
  """
65
88
 
66
89
  simulation_id = sim["id"]
@@ -85,7 +108,7 @@ def upload_workspace(
85
108
  file_size = os.path.getsize(file_path)
86
109
 
87
110
  try:
88
- result = upload_single_file(file_path, inner_workspace)
111
+ result = upload_single_file(file_path, inner_workspace, api_root=api_root, token=token)
89
112
  if result["status"] != "OK":
90
113
  logging.error(f"Failed to upload {inner_workspace}")
91
114
  logging.error(result)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atomict
3
- Version: 1.2.24
3
+ Version: 1.2.27
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,43 +1,45 @@
1
1
  atomict/__init__.py,sha256=nMXg9GFsk8gCcyBnh1MAeUPvo4Zcuv3sdwGHZrxfpPE,36
2
- atomict/__version__.py,sha256=rRcFnLqwG22zZ399qswskAE5L_if50hEsd_TKzGcrZ4,23
3
- atomict/api.py,sha256=1aI2qPMm6V9VY4PLR8LBMm2WwVCBB9pAL7sEowvjhtc,6706
2
+ atomict/__version__.py,sha256=JKArgvnX6ljUI_WxYnXTejXGdjsA4KJ3Cy2xBcK4vh4,23
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
6
6
  atomict/exceptions.py,sha256=-PT-Bw-2SoPAME0ELXCXRBsU7tBOAbHTscnvnGRto-4,146
7
7
  atomict/ase/atatoms.py,sha256=I0RnhHMi_tkl22lcuJKlyXv26rSdzXYeqkzTsCBFgrE,27737
8
8
  atomict/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- atomict/cli/main.py,sha256=mRGjZBWHW-8Z-LXpwshaJGAB72tjCwFNNKjn9jXaqVk,3518
9
+ atomict/cli/main.py,sha256=sP0e864YSn3e0fiUXpREfBrlaYbRTzyxxlzOZAebvm4,3605
10
10
  atomict/cli/commands/ai_assist.py,sha256=IgZyoeL5mdwkcwxKWD7y0Enjus-wSlrYee-keyacOOY,3449
11
11
  atomict/cli/commands/common.py,sha256=NG8hiLxUGtk-fW5uVs30nKqVciireghoczT7YsGoR1w,1630
12
12
  atomict/cli/commands/convert.py,sha256=5cRtaYLnYK9Yc3462ydMCk7GLGld1RCkVEohIF-CJs8,4608
13
13
  atomict/cli/commands/helpers.py,sha256=VcfJ9g_5CQpVVr-Ptbz4Ah-kq7z5WEJxVCvJkREFjUQ,2039
14
- atomict/cli/commands/k8s.py,sha256=aPll70iXe5Kd4-4ZWPVDiTzwvC9r74_EOgnPBpZVojk,6712
14
+ atomict/cli/commands/k8s.py,sha256=YBIGQpGXwlKVOPjiYfOk7GHf4jC-6EoEJcaT3pu1km4,6733
15
15
  atomict/cli/commands/login.py,sha256=6BsyRsNLAtr2bMwYr1e5IAKqjuHI6edClCCBdJ_rZF8,1171
16
16
  atomict/cli/commands/organization.py,sha256=EIDpiue815jNi4mDyLCbHUGudNlB0RBPwWgrdBt5DCo,2106
17
- atomict/cli/commands/project.py,sha256=kbqTE7tUEkjE3Hm64WrHDw_sqd1jMnGOH4PIQPJfmEM,28540
18
- atomict/cli/commands/task.py,sha256=eRZlClY4W57gKz6WiYKf9M1ZdLag37o3YxUrgOCCfsA,5453
17
+ atomict/cli/commands/project.py,sha256=eiidnM_n_wJG-PqFdL3IkcRyEmP-l6xTOhXG_vp8kGE,28487
18
+ atomict/cli/commands/task.py,sha256=nXb2C4OUxMf9L9NC4KJ5a1gKbHuiHk4T0wS5JGzBQlE,5556
19
19
  atomict/cli/commands/token.py,sha256=yTyH0J2xStO2cly9iifMHd8QTvHVPHL0owe4r6XUJ5s,560
20
20
  atomict/cli/commands/traj.py,sha256=SIgBYKKIFJ-_C37abefEO2Qzoql4GFYuIGgPmCykoj0,1675
21
21
  atomict/cli/commands/upload.py,sha256=U7OW4mrYeqfoMHXPIBNTHDTOvx_-rGiY82Sj72y8N-Q,2823
22
22
  atomict/cli/commands/user.py,sha256=7jja2At19hrMoTaRx7PrAZRS0C48BJjIN9WEmzN7Xxc,6486
23
+ atomict/cli/commands/workspace.py,sha256=tAchOx4ycIwHsV-9uIAXdIyCz0Umdf5mBO38fy7jO28,4169
23
24
  atomict/cli/commands/exploration/__init__.py,sha256=LTuDJsRPL62w-YYXx-X_GgsuD2Dovj74h-G5tTw5DaE,169
24
- atomict/cli/commands/exploration/soec.py,sha256=ZkKJKHz97OaswLS0hptyEquQyyATkfb8T6EI3ngkg68,18888
25
- atomict/cli/commands/exploration/sqs.py,sha256=AVyiU25SvOv1I-lYfCqgnnaEmCiFNDggsP1GLcmliS8,14593
26
- atomict/cli/commands/simulation/fhiaims.py,sha256=iUddj5W98gflQOkLo7FD8y7kpdtaLZQFw8LEYVha6f0,9180
27
- atomict/cli/commands/simulation/kpoint.py,sha256=dnmJSfhXLLOpftFnNGPFPTVfNq_93LiOxG8EeFeIN5c,12391
25
+ atomict/cli/commands/exploration/soec.py,sha256=c2BrqemlFdSEPjOsB9Z3UHDOO4JNcIsLbK5YfAbATQo,19597
26
+ atomict/cli/commands/exploration/sqs.py,sha256=t1UDfD4fZE7EIn4E7fItA7xWBs1QcdIaDp4g-VUkz98,14529
27
+ atomict/cli/commands/simulation/fhiaims.py,sha256=7w4jI4N5v4ChPw5qC_kMk_pIRd8ZEwEOC8Q19sJA-us,8416
28
+ atomict/cli/commands/simulation/kpoint.py,sha256=C3TNOP8Pm_PI0j1obA5V2xCk_xvkrR5Zpfuk9ZbBcHs,12555
29
+ atomict/cli/commands/simulation/qe.py,sha256=0HuuCIF1zRaN63IHJ2IDDWeX6TzHBJ0jpuobIjOV8ik,12666
28
30
  atomict/cli/core/client.py,sha256=oHbcCLORxjNDw-pTCzpkZPGETaXToik_3xfurMNbhW8,8402
29
31
  atomict/cli/core/config.py,sha256=MHQGo59yt3839-r1-3IXqOrN5DNLxMeQ2QBJRSbFONA,1378
30
32
  atomict/cli/core/utils.py,sha256=J8hh1F1vKERnj8JpWSmc2-UHiwFSJfCCnCjDL3-xm4E,941
31
33
  atomict/infra/__init__.py,sha256=qp1HP0h6G9LW0QOe_9JBgoE_Q_OJpA10dMNQXz40Ct0,89
32
- atomict/infra/logging.py,sha256=QC1FTCyth-Qg4rn5h3yzqqKKWYoXMn_4n9AK99rcpOE,7690
34
+ atomict/infra/logging.py,sha256=0UBaEO9sbxhGSl_jrxzF1c2Q0N5OYB2rP-CMo2E5iMs,8102
33
35
  atomict/infra/distwork/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
36
  atomict/infra/distwork/environment.py,sha256=joydS9wA2pgWafXh_Wqgg95InaxhsusohaeWc9IOgwA,909
35
- atomict/infra/distwork/task.py,sha256=kflMllczaUQHDa8AAUTsLi5RJivckr1LKHAUZwqIKio,1182
37
+ atomict/infra/distwork/task.py,sha256=DIvLWmT_erH_p3hYiR4mke-1Ii2v5pQ6P4oBdr4GSuA,1515
36
38
  atomict/io/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
39
  atomict/io/atoms.py,sha256=kdMnto7eyiY2zmoOvLlzbuTGUCIp4ViQGwLmf2m9fGU,13144
38
40
  atomict/io/cif.py,sha256=s4ThgriM_yyqKUZ8_RIPHm7lz7U5-hX8Jv96JNU2QVo,5793
39
41
  atomict/io/fhiaims.py,sha256=Zh_HAsv6128acSwzSeTrGN1Ra1I_RvDwJsubRODovaY,958
40
- atomict/io/trajectory.py,sha256=8ggVQ0zPbdicQ_sPqY7KN-TWjaN8nCfTYs5s8qQoMeo,9895
42
+ atomict/io/trajectory.py,sha256=YPse0IQROaWGXY1LzKNVAzwWhMHzvq17bSkhHUxZYco,10701
41
43
  atomict/io/utils.py,sha256=ncA8XchNN3lJT8EhJK6tLJE9TvmHmPlxizTnY5ASvEc,272
42
44
  atomict/io/formats/__init__.py,sha256=_wKNHpV0VZKh7mzO6kRfaETYPxg_DYbrJwH4kqduD9Q,300
43
45
  atomict/io/formats/atraj.py,sha256=GUw_Ic7N2msD6U2LjjR-qR55ASFdALuDmkYxOmCPGlk,3051
@@ -58,29 +60,28 @@ atomict/simulation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
58
60
  atomict/simulation/cantera.py,sha256=u9TTa_Zm9CPNSln4V06tyJspr3NiCCCZPW6guuOlb5o,858
59
61
  atomict/simulation/counterfactual.py,sha256=8-Kf4wGxPvImDr0j2grmBLLwFQ4JpjhBBxIksIwblIQ,708
60
62
  atomict/simulation/defect.py,sha256=uvYLR_Ng0PFV9A_EE_EgB2SK8jqUpJtvuwLKL02Am3c,691
61
- atomict/simulation/ea.py,sha256=bYvYnw59F7QCuV-airnX0Wu8fqZHKlsdywgoK7pwNso,3610
62
- atomict/simulation/fhi_aims.py,sha256=FRIqmZ_2AMpjFW_ow6vfe611vgElrENNOGmgIzXj908,2037
63
+ atomict/simulation/ea.py,sha256=i67Gwe-Oh_bEUlLAf3PcoTGU5LMjQVN2Yyp-sPK_vPY,4898
64
+ atomict/simulation/fhi_aims.py,sha256=0qev3Xu4DKt_lt80ID7PV810_MT3z3QnUG8yK74EsVA,2478
63
65
  atomict/simulation/impact.py,sha256=b5RL--cFeg6gPtxN5xwX_M4LkvYn_lRLi1OWz-uimPA,1161
64
- atomict/simulation/kpoint.py,sha256=8Dc1F9xqubK1HBCQa7GeRtIhs28302sRnuUK0Rns9Q4,1739
65
- atomict/simulation/mattergen.py,sha256=ybzJy0nwIAZhG8IIuhlmi-_J6lLyci3aVo35h2ni_w0,488
66
+ atomict/simulation/kpoint.py,sha256=iwNPIOKRdm6W10UOFSGjQetVP1ZuFBY59xo4da7ajoE,3060
66
67
  atomict/simulation/md.py,sha256=C32Sh2sv9PQ1lyGaWYFmG5evKk3Jqw0wel2ml4uPnJw,770
67
- atomict/simulation/mlrelax.py,sha256=ZS9WoO9efHeSNXM-MxuqQMSWN54qDKLscBgxL4monfI,2841
68
+ atomict/simulation/mlrelax.py,sha256=sLODM31FQCQXJ1ezvekzIdnjHcN7YxNrgTgRak4IQYE,3249
68
69
  atomict/simulation/models.py,sha256=RSVLldNurx7F-ijlrLuVyljMS06bsZCBFMXNcdzdOuU,115
69
70
  atomict/simulation/phonon.py,sha256=UG6v-mpfF-STw0DK-620v26Rpc2EzAx4K-8KykzHtm8,3080
70
- atomict/simulation/qe.py,sha256=3PpqpA0Pn3FCGEgjaMnCidguhopGxFUDMaxwfIQF2FE,1700
71
+ atomict/simulation/qe.py,sha256=p46YiHj_HIiqxrQGs-SBuGoWk5zUiHahXIRcyjdEq3c,1702
71
72
  atomict/simulation/sh.py,sha256=YymnH9q8aD_THiielicTKgPGcRunsAcoV5bZKu__L0w,609
72
73
  atomict/simulation/sqs.py,sha256=1neQRVUy21R_UVusML6ocz6RVwxGUVh81CMr2TljGbw,1132
73
- atomict/simulation/utils.py,sha256=xipTvFC1WOskpMz0b0pNoCM4OjcR9ylhsUCnLGb5Rvg,4443
74
+ atomict/simulation/utils.py,sha256=X2BBZo86rj08z6TFxrVjfy3vIkrwAq6l0e5RqY4JBX4,5473
74
75
  atomict/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
- atomict/user/files.py,sha256=eRIxC4OeyTMwF-pu2En82qd5VtA4RM_dA1N1YgbLgZ8,964
76
- atomict/user/workspace.py,sha256=ihM9TTaxlQC9HYbL7qKBM6PdNRUFZn1EZRUd6CuTXlI,3921
76
+ atomict/user/files.py,sha256=k5xOkhnVX9t_8ND3hqAdEUQ4-_-viuDxnH9abmydAcs,1142
77
+ atomict/user/workspace.py,sha256=n-Q4zsAGg8CnbcG4raB_94xabetfCDi6haFbnJayu70,4858
77
78
  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=Dr8g-xTqiH5tTFncn1wZmSnbetvvDylgxL3LldtdFD0,2022
81
- atomict-1.2.24.dist-info/licenses/LICENSE,sha256=fzvTkxUzi2u1cea_aRtmg5_mRk6ZyLWJJRr49K28qKg,1075
82
- atomict-1.2.24.dist-info/METADATA,sha256=3Mb-XYJVCrYn1T3MEh9KZFoM_4P1T34Ma-knyN-jO_o,2938
83
- atomict-1.2.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
84
- atomict-1.2.24.dist-info/entry_points.txt,sha256=PozguIUgJUHgS65PSZBHNPUiwYGDwXa4vLZ7hde3aq8,47
85
- atomict-1.2.24.dist-info/top_level.txt,sha256=CCo525YmAj7ZbToMmQcVKQ-JiIiFKiq3GmhIYCG2gaM,8
86
- atomict-1.2.24.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (82.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,20 +0,0 @@
1
- from atomict.api import get, post
2
-
3
-
4
- def get_mattergen(id: str):
5
- """
6
- Get MatterGen
7
- """
8
- result = get(f"api/mattergen-exploration/{id}/")
9
- return result
10
-
11
-
12
- def associate_user_upload_with_mattergen(user_upload_id: str, exploration_id: str):
13
- """
14
- Associate a user upload with a MatterGen
15
- """
16
- result = post(
17
- "api/mattergen-exploration-file/",
18
- payload={"user_upload_id": user_upload_id, "exploration_id": exploration_id},
19
- )
20
- return result