Skip to content

Commit

Permalink
- add some statements for debugging
Browse files Browse the repository at this point in the history
land node for 06 notebook
  • Loading branch information
shubham3121 committed Mar 28, 2024
1 parent 45967d2 commit 9550748
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions notebooks/api/0.8/06-multiple-code-requests.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@
"outputs": [],
"source": [
"datasets = ds_client.datasets.search(name=\"My Sample Dataset - II\")\n",
"dataset_ptr2 = datasets[0]"
"dataset_ptr2 = datasets[0]\n",
"dataset_ptr2"
]
},
{
Expand All @@ -489,7 +490,8 @@
"outputs": [],
"source": [
"# Validate if input policy is violated\n",
"sum_ptr = ds_client.code.calculate_sum(data=dataset_ptr2.assets[0])"
"sum_ptr = ds_client.code.calculate_sum(data=dataset_ptr2.assets[0])\n",
"sum_ptr"
]
},
{
Expand All @@ -499,7 +501,7 @@
"metadata": {},
"outputs": [],
"source": [
"assert isinstance(sum_ptr, sy.SyftError), sum_ptr"
"assert isinstance(sum_ptr, sy.SyftError), (sum_ptr, str(dataset_ptr2.assets[0]))"
]
},
{
Expand Down Expand Up @@ -547,17 +549,9 @@
},
"outputs": [],
"source": [
"if node.node_type.value == \"python\":\n",
"if node.deployment_type.value in [\"python\", \"single_container\"]:\n",
" node.land()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "40",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 9550748

Please sign in to comment.