-
Notifications
You must be signed in to change notification settings - Fork 2
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
Camstim ephys #144
Camstim ephys #144
Conversation
…f metadata schema
…ntate depdendency
@@ -68,7 +67,7 @@ def __init__(self, session_id: str, json_settings: dict) -> None: | |||
self.recording_dir = npc_ephys.get_single_oebin_path( | |||
session_inst.lims_path | |||
).parent | |||
except FileNotFoundError: | |||
except: |
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.
why was the FileNotFoundError removed? Using a bare except without specifying an exception type will catch all exceptions, including ones that you might not intend to handle (like KeyboardInterrupt, SystemExit, or MemoryError).
This can make debugging more difficult so I'd recommend putting FileNotFoundError back or if you need to catch multiple types of errors you can do a tuple
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.
There was another error received here but I forget what it was. I should have written it down. I guess we can revert and if it shows up again I can commit again
return stim_name | ||
|
||
|
||
def get_stimulus_type(stimulus): | ||
""" |
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.
fill in docstrings
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 looks like all functions here have docstrings already. am I missing something?
I don't know why this wasn't caught elsewhere, or if it was, but it appears the latest schema has different objects so the camstim ephys class wouldn't work. Perhaps I'm mislead, but these changes appeared to be compatible.