Skip to content

Commit

Permalink
Use shutil to zip and download colab outputs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 501595938
Change-Id: Ib586090d13279eca1371f0e0b046379b728a3e87
  • Loading branch information
Htomlinson14 authored and copybara-github committed Jan 12, 2023
1 parent a394167 commit 0d9a24b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notebooks/AlphaFold.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@
"from concurrent import futures\n",
"import json\n",
"import random\n",
"import shutil\n",
"\n",
"from urllib import request\n",
"from google.colab import files\n",
Expand Down Expand Up @@ -773,7 +774,7 @@
" f.write(pae_data)\n",
"\n",
"# --- Download the predictions ---\n",
"!zip -q -r {output_dir}.zip {output_dir}\n",
"shutil.make_archive(base_name='prediction', format='zip', root_dir=output_dir)\n",
"files.download(f'{output_dir}.zip')"
]
},
Expand Down

0 comments on commit 0d9a24b

Please sign in to comment.