Skip to content

Commit

Permalink
fix: robust of temp upload function regards to one type of json file …
Browse files Browse the repository at this point in the history
…provided
  • Loading branch information
ZLI-afk committed Jan 22, 2024
1 parent 4dbe5f7 commit 3101d10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apex/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def pack_upload_dir(
"""
cwd = os.getcwd()
os.chdir(work_dir)
confs = relax_param["structures"] + prop_param["structures"]
relax_confs = prop_param.get("structures", []) if relax_param else []
prop_confs = prop_param.get("structures", []) if prop_param else []
confs = relax_confs + prop_confs
assert len(confs) > 0, "No configuration path indicated!"
property_list = prop_param["properties"]
conf_dirs = []
for conf in confs:
Expand Down

0 comments on commit 3101d10

Please sign in to comment.