Skip to content

Commit 5f3a317

Browse files
Merge pull request #304 from Exabyte-io/feature/SOF-7894-2
update: fix for VBO + get file
2 parents 9448384 + dadd0e8 commit 5f3a317

3 files changed

Lines changed: 25 additions & 4 deletions

File tree

examples/job/get-file-from-job.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
"outputs": [],
292292
"source": [
293293
"for file in files:\n",
294-
" if \"pw_scf.out\" in file[\"name\"]:\n",
294+
" if \"pw_scf.out\" in file[\"key\"]:\n",
295295
" output_file_metadata = file\n",
296296
"display_JSON(output_file_metadata)"
297297
]
@@ -352,7 +352,7 @@
352352
"source": [
353353
"from utils.jupyterlite import download_content_to_file\n",
354354
"\n",
355-
"download_content_to_file(content=output_file, filename=output_file_metadata[\"name\"])"
355+
"download_content_to_file(content=output_file, filename=output_file_metadata[\"key\"])"
356356
]
357357
}
358358
],

other/experiments/jupyterlite/uploads/C(001)-Ni(111)-Interface.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,28 @@
15551555
]
15561556
}
15571557
],
1558-
"labels": [],
1558+
"labels": [
1559+
{
1560+
"id": 0,
1561+
"value": 0
1562+
},
1563+
{
1564+
"id": 1,
1565+
"value": 0
1566+
},
1567+
{
1568+
"id": 2,
1569+
"value": 0
1570+
},
1571+
{
1572+
"id": 3,
1573+
"value": 1
1574+
},
1575+
{
1576+
"id": 4,
1577+
"value": 1
1578+
}
1579+
],
15591580
"constraints": []
15601581
},
15611582
"lattice": {

utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def save_files(job_id: str, job_endpoint: JobEndpoints, filename_on_cloud: str,
3333
"""
3434
files = job_endpoint.list_files(job_id)
3535
for file in files:
36-
if file["name"] == filename_on_cloud:
36+
if filename_on_cloud in file["key"]:
3737
file_metadata = file
3838

3939
# Get a download URL for the CONTCAR

0 commit comments

Comments
 (0)