Skip to content
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

Merged
merged 32 commits into from
Nov 4, 2019
Merged

Cleanup #12

merged 32 commits into from
Nov 4, 2019

Conversation

rly
Copy link
Collaborator

@rly rly commented Oct 25, 2019

Cleaned up argument parsing, input checking, and minor things unrelated to the conversion.

@rly rly requested a review from bendichter October 25, 2019 01:18
Copy link
Collaborator

@bendichter bendichter left a 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: ''
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

lfp_mat_path = None
behavior_file = None
sorted_spikes_nex5_file = None
for k, v in source_paths.items():
Copy link
Collaborator

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:

Copy link
Collaborator Author

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.

@bendichter bendichter merged commit dc29e5b into master Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants