Skip to content

Commit

Permalink
update notebooks with new checkpoint function names
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Oct 1, 2024
1 parent 1487d07 commit f7a2e20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"metadata": {},
"outputs": [],
"source": [
"create_checkpoint(root_client)"
"create_checkpoint(name=\"000-start-and-config\", client=root_client)"
]
},
{
Expand All @@ -231,13 +231,6 @@
"source": [
"server.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -256,7 +249,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
12 changes: 2 additions & 10 deletions notebooks/scenarios/bigquery/001-scale-delete-worker-pools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"outputs": [],
"source": [
"load_from_checkpoint(\n",
" prev_nb_filename=\"000-start-and-configure-server-and-admins\",\n",
" name=\"000-start-and-config\",\n",
" client=server.client,\n",
" root_email=ROOT_EMAIL,\n",
" root_password=ROOT_PASSWORD,\n",
Expand Down Expand Up @@ -357,14 +357,6 @@
"source": [
"server.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "29",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -383,7 +375,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion packages/syft/src/syft/util/test_helpers/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def last_checkpoint_path_for(server_uid: str, chkpt_name: str) -> Path | None:
]

if checkpoints_dirs_with_blob_entry:
print(f"Loading from the last checkpoint for. {chkpt_name}")
print(f"Loading from the last checkpoint for: {chkpt_name}")
return max(checkpoints_dirs_with_blob_entry, key=lambda d: d.stat().st_mtime)

return None
Expand Down

0 comments on commit f7a2e20

Please sign in to comment.