-
Notifications
You must be signed in to change notification settings - Fork 248
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
Better error message upon failure in loading OpenEphysBinary
folder
#1389
base: master
Are you sure you want to change the base?
Conversation
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's a big diff, but really you just wrapped with a try-except right?
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.
Looks good to me.
I think I am clearly not agree with this. |
Better than before at least. I agree that long term we need a better handling, but I'm not sure when I'll have time for it |
I also agree more targeted would be better, but at least what I see from the tracker the usual flow is this. I have an error with openephysbinary (gives error) With this error you tell them that it is likely the folder structure to begin with. Maybe a comment to say in the future improve to more specific/more helpful errors (ie this file was not found--I don't know openephy very well so I'm not sure what the structure would really need to be). |
At least lets do the try in the other part: try:
explore_folder(dirname, experiment_names=None)
except:
... No ? |
The second part of the |
Something I've been wanting to do for a long time :)