-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cleanup #12
Cleanup #12
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.
Looks really good! Just a few things
metafile.yaml
Outdated
ElectrodeGroup: | ||
description: description | ||
device: Device | ||
description: '' |
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 don't like empty strings. In the past they have caused errors on read, if a checker asks if obj.description
, meaning to check if it is None
, but also checking if it is an empty string. If a field as required, then we should either add it ourselves or require that a user add it.
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.
Understood. I changed it for ElectrodeGroup description.
src/buffalonwb/conversion_module.py
Outdated
lfp_mat_path = None | ||
behavior_file = None | ||
sorted_spikes_nex5_file = None | ||
for k, v in source_paths.items(): |
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.
Not a big deal but it's a bit odd to iterate over the dictionary here. It would be more natural to do e.g. if 'raw Nlx' in source_paths:
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 agree - that's odd (I didn't write it). That is changed and cleaner now.
Cleaned up argument parsing, input checking, and minor things unrelated to the conversion.