-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add keywords #620
Add keywords #620
Conversation
# Conflicts: # src/pynwb/data/nwb.base.yaml # src/pynwb/data/nwb.file.yaml # src/pynwb/data/nwb.misc.yaml
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.
Aside from the one comment I think this looks fine
src/pynwb/file.py
Outdated
@@ -180,6 +181,7 @@ class NWBFile(MultiContainerInterface): | |||
{'name': 'session_id', 'type': str, 'doc': 'lab-specific ID for the session', 'default': None}, | |||
{'name': 'institution', 'type': str, | |||
'doc': 'institution(s) where experiment is performed', 'default': None}, | |||
{'name': 'keywords', 'type': Iterable, 'doc': 'Terms to search over', 'default': None}, |
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.
Instead of 'type': Iterable
I believe this should probably be 'type' : 'array_data'
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.
done
Add keywords to spec, alter NWBFile to accept them, and add a test