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

optionally add metadata to ABFConvert and DATConvert. #399

Open
bendichter opened this issue Apr 11, 2020 · 0 comments · May be fixed by #400
Open

optionally add metadata to ABFConvert and DATConvert. #399

bendichter opened this issue Apr 11, 2020 · 0 comments · May be fixed by #400

Comments

@bendichter
Copy link
Contributor

bendichter commented Apr 11, 2020

It would be nice to be able to add metadata to the run_x_to_nwb_conversion.py command. In nwb-conversion-tools, we handle this with a YAML file that turns into a hierarchical dict. For instance, you could supply a YAML file of the form:

NWBFile:
  session_id: '00003'
  session_description: 'Description of session'
Subject:
  subject_id: '0001'
  age: 'P30D'

run_x_to_nwb_conversion.py would turn that YAML file into a dict and and then ABFConverter and DATConverter would take that dict and populate the NWB file accordingly.

This relates to #364 as well. pynwb acts more straightforwardly if you can write all of the metadata in the initial write. It would be better to specify the subject ID during the creation of the file rather than write it in after-the-fact.

@bendichter bendichter linked a pull request Apr 11, 2020 that will close this issue
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 a pull request may close this issue.

1 participant