-
Notifications
You must be signed in to change notification settings - Fork 781
test error jupyter_utils #190
Copy link
Copy link
Closed
Project-MONAI/MONAI
#2063Description
Describe the bug
from todays cron test: https://github.com/Project-MONAI/MONAI/runs/2399054858?check_suite_focus=true#step:6:743
the direct cause is that the test replaces the max_epochs value
Running ./modules/jupyter_utils.ipynb
Checking PEP8 compliance...
Running notebook...
Before:
"max_epochs = 20\n",
After:
"max_epochs = 1\n",
Executing: 0%| | 0/19 [00:00<?, ?cell/s]
Executing: 5%|▌ | 1/19 [00:00<00:17, 1.02cell/s]
Executing: 16%|█▌ | 3/19 [00:04<00:19, 1.23s/cell]
Executing: 26%|██▋ | 5/19 [00:07<00:17, 1.25s/cell]
Executing: 37%|███▋ | 7/19 [00:08<00:12, 1.04s/cell]
Executing: 47%|████▋ | 9/19 [00:10<00:09, 1.00cell/s]
Executing: 89%|████████▉ | 17/19 [00:10<00:01, 1.41cell/s]
Executing: 89%|████████▉ | 17/19 [00:13<00:01, 1.29cell/s]
Traceback (most recent call last):
File "/opt/conda/bin/papermill", line 8, in <module>
sys.exit(papermill())
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/conda/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/papermill/cli.py", line 250, in papermill
execute_notebook(
File "/opt/conda/lib/python3.8/site-packages/papermill/execute.py", line 122, in execute_notebook
raise_for_execution_errors(nb, output_path)
File "/opt/conda/lib/python3.8/site-packages/papermill/execute.py", line 234, in raise_for_execution_errors
raise error
papermill.exceptions.PapermillExecutionError:
---------------------------------------------------------------------------
Exception encountered at "In [8]":
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-8-c8d3831b5d61> in <module>
----> 1 con.plot_status(logger)
/opt/conda/lib/python3.8/site-packages/monai/utils/jupyter_utils.py in plot_status(self, logger, plot_func)
342 """
343 with self.lock:
--> 344 self.fig, axes = plot_func(title=self.status(), engine=self.engine, logger=logger, fig=self.fig)
345 return self.fig
/opt/conda/lib/python3.8/site-packages/monai/utils/jupyter_utils.py in plot_engine_status(engine, logger, title, yscale, avg_keys, window_fraction, image_fn, fig)
210 axes = plot_metric_images(fig, title, graphmap, imagemap, yscale, avg_keys, window_fraction)
211
--> 212 axes[0].axhline(logger.loss[-1][1], c="k", ls=":") # draw dotted horizontal line at last loss value
213
214 return fig, axes
IndexError: list index out of range
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels