-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update kaleido and plotly versions #163
Conversation
Why wasn't this catched by C.I.?? |
Seems to only prompt when trying to save to a local file. Adding a simple test now for avoiding future problems |
from pyodi.core.boxes import add_centroids | ||
from pyodi.core.utils import coco_ground_truth_to_df | ||
from pyodi.plots.boxes import get_centroids_heatmap, plot_heatmap | ||
from pyodi.plots.common import plot_scatter_with_histograms | ||
|
||
|
||
@logger.catch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daavoo this was catching all exceptions without reraising anything... so if something crashes, tests simply skips it. Can't recall why did we add this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be: logger.catch(reraise=True)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove all those decorator.
This is useful to ensure unexpected exceptions are logged, the entire program can be wrapped by this method
https://loguru.readthedocs.io/en/stable/api/logger.html#loguru._logger.Logger.catch
I am not seeing any advantage on using this here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you wish. With reraise=True
the exceptions would work as without the decorator. In the past, I had found the additional information showed by loguru
useful for debugging exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll remove all those decorators in a different issue, let's merge this for now
Fixes kaleido permission err:
PermissionError: [Errno 13] Permission denied: '/home/mmendez/anaconda3/envs/pyodi/lib/python3.7/site-packages/kaleido-0.1.0-py3.7-linux-x86_64.egg/kaleido/executable/kaleido'