Skip to content

Commit ac80065

Browse files
committed
finished troubleshooting tutorial for now
1 parent db3cd4c commit ac80065

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

new-docs/source/tutorial/3-troubleshooting.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@
235235
"\n",
236236
"for task_cache_dir in run_cache.iterdir():\n",
237237
" with open(task_cache_dir / \"_result.pklz\", \"rb\") as f:\n",
238-
" error = cp.load(f)\n",
239-
" for \n",
238+
" result = cp.load(f)\n",
239+
" 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",
240242
" "
241243
]
242244
}

0 commit comments

Comments
 (0)