We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db3cd4c commit ac80065Copy full SHA for ac80065
new-docs/source/tutorial/3-troubleshooting.ipynb
@@ -235,8 +235,10 @@
235
"\n",
236
"for task_cache_dir in run_cache.iterdir():\n",
237
" with open(task_cache_dir / \"_result.pklz\", \"rb\") as f:\n",
238
- " error = cp.load(f)\n",
239
- " for \n",
+ " result = cp.load(f)\n",
+ " for field_name in result.outputs:\n",
240
+ " if result.outputs[field_name] == float('inf'):\n",
241
+ " print(f\"Task {task_cache_dir.name!r} produced an infinite value for {field_name!r}\")\n",
242
" "
243
]
244
}
0 commit comments