Skip to content

Commit 7431887

Browse files
committed
add clear error printing in cell matching nb
1 parent a6a9459 commit 7431887

File tree

1 file changed

+7
-36
lines changed

1 file changed

+7
-36
lines changed

docs/embargoed/cell_matching.ipynb

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -259,41 +259,12 @@
259259
"metadata": {
260260
"scrolled": true
261261
},
262-
"outputs": [
263-
{
264-
"name": "stderr",
265-
"output_type": "stream",
266-
"text": [
267-
"WARNING:root:many=True not supported from argparse\n",
268-
"INFO:NwayMatching:NWAY_COMMIT_SHA None\n",
269-
"INFO:NwayMatching:Nway matching version 0.6.0\n",
270-
"WARNING:root:many=True not supported from argparse\n",
271-
"WARNING:root:many=True not supported from argparse\n",
272-
"INFO:PairwiseMatching:Matching 1193675753 to 1194754135\n",
273-
"INFO:PairwiseMatching:Matching 1193675753 to 1194754135: best registration was ['Crop', 'CLAHE', 'PhaseCorrelate']\n",
274-
"INFO:NwayMatching:registration success(1) or failure (0):\n",
275-
" 0 1\n",
276-
"0 1 1\n",
277-
"1 1 1\n",
278-
"id map{\n",
279-
" \"0\": 1193675753,\n",
280-
" \"1\": 1194754135\n",
281-
"}\n",
282-
"INFO:NwayMatching:Nway matching is done!\n",
283-
"INFO:NwayMatching:Creating match summary plots\n",
284-
"WARNING:root:setting Dict fields not supported from argparse\n",
285-
"c:\\Users\\carter.peene\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\argschema\\utils.py:346: FutureWarning: '--nway_output.nway_matches' is using old-style command-line syntax with each element as a separate argument. This will not be supported in argschema after 2.0. See http://argschema.readthedocs.io/en/master/user/intro.html#command-line-specification for details.\n",
286-
" warnings.warn(warn_msg, FutureWarning)\n",
287-
"WARNING:root:many=True not supported from argparse\n",
288-
"INFO:NwayMatching:wrote matching_output\\nway_match_fraction_plot_2025_06_24_16_15_42.png\n",
289-
"INFO:NwayMatching:wrote matching_output\\nway_warp_overlay_plot_2025_06_24_16_15_42.png\n",
290-
"INFO:NwayMatching:wrote matching_output\\nway_warp_summary_plot_2025_06_24_16_15_42.png\n",
291-
"INFO:NwayMatching:wrote ./output.json\n"
292-
]
293-
}
294-
],
262+
"outputs": [],
295263
"source": [
296-
"!python -m nway.nway_matching --input_json input.json --output_json \"./output.json\" --output_dir matching_output"
264+
"res = !python -m nway.nway_matching --input_json input.json --output_json \"./output.json\" --output_dir matching_output\n",
265+
"\n",
266+
"if not os.path.exists(\"output.json\"):\n",
267+
" raise RuntimeError(\"output.json was not created!\\nCommand output:\\n\" + \"\\n\".join(res))"
297268
]
298269
},
299270
{
@@ -364,7 +335,7 @@
364335
{
365336
"data": {
366337
"text/plain": [
367-
"<matplotlib.image.AxesImage at 0x1690c1a3280>"
338+
"<matplotlib.image.AxesImage at 0x1b146645640>"
368339
]
369340
},
370341
"execution_count": 13,
@@ -400,7 +371,7 @@
400371
{
401372
"data": {
402373
"text/plain": [
403-
"<matplotlib.image.AxesImage at 0x1690bdcc580>"
374+
"<matplotlib.image.AxesImage at 0x1b146632250>"
404375
]
405376
},
406377
"execution_count": 14,

0 commit comments

Comments
 (0)