-
Notifications
You must be signed in to change notification settings - Fork 37
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
Update to nwb schema 2.2.1 #333
Conversation
I'm pretty sure that the error in |
@wbwakeman This branch should be ready to run ephys pipeline on the nwb 2 files. This branch included tests that check that pipeline output between nwb1 and nwb2 are identical. We will merge this branch into master when pynwb merges NeurodataWithoutBorders/pynwb#1146 |
@sgratiy @NileGraddis In case I should review this, could you rebase? |
…nit_name The PatchClampSeries units are hardcoded since 6b2a628f (Hardcode units of PatchClampSeries subclasses (#1036), 2019-08-05) [1] in pynwb. Therefore we must accept and translate these units as well. [1]: NeurodataWithoutBorders/pynwb@6b2a628
The getRawDataSourceType function was used to adapt the behaviour depending on the data source. But as we now don't do that anymore, and it currently breaks wiht MIES NWBv2 which don't have experiment_description set, let's just remove it.
Nowadays the version is written as NWB-2.2.0 so we need to expect that prefix as well.
Compare pipeline outputs from nwb2 against pipeline output from nwb1 file where both nwb1 and nwb2 were produced from the same pxp data
…s not available
8b5d8c5
to
5f9fee7
Compare
@t-b @NileGraddis I have rebased it onto master |
Review: 811a22d (update pynwb req, 2020-02-13) Good. A bit on the short side of commit message though. 21e4ffe (ipfx/nwb_reader.py: Accept more diverse units in NwbReader.get_long_unit_name, 2020-02-01) My commits. 77937c0 (Add 'amperes' as a valid SI unit string, 2020-02-14) 9451434 (skip tests for the nwb converter that are temporary failing due to pynwb changes, 2020-02-14) It would have been nice to link to the upstream issue/PR, NeurodataWithoutBorders/pynwb#1188 is the correct one. In the meantime this is now also fixed which I tried to address in b04b1dc. Edit: I don't know why it fails on circleci, it passes here. cc7f9c2 (Add MIES nwb2 test, 2020-02-14) I can't test that here but it should not contain print statements or commented out code. flake8 is also reporting af01f7a (Remote trailing _DA_0 from stimulus code to be consistent with nwb1 reader, 2020-02-14) Typo Remote -> Remove d18eb8e (Add MiesDataSet class to handle Mies nwb2 that include labnotebook, 2020-02-14)
Are we okay with requiring python 3.5 as this type hint suggests? I'm just asking, it should be a concise choice. Rewriting create_data_set to something like
would be faster for NWBv1 files as don't need to open it in this case, but this is purely optional. No love for local functions here? Well fine with me ;) 31f1929 (set scalar attributes in nwb file, 2020-02-14) Functionality wise okay, but I would love to see longer commit messages explaining why the change was needed. 2526645 (Fix test: remove trailing _DA_0 from stim code, 2020-02-14) That should probably be squashed into the commit breaking the test. 22f7076 (MiesDataSet object, 2020-02-14) Looks good. One thing which is a general issue:
I don't like the default of 0 here. In MIES we have since 89c34402 (Sweep settings stored, 2014-09-07) stored the set sweep count so I can not imagine a case where this is not present.
6ee232c (#321 tests for mies data set, 2020-02-17) This uses an ddf31b1 (#321 update minimum h5py (some mies datasets cannot be read prior to 2.10), 2020-02-17) Jeep. 563a9a6 (#321 ensure that aibs fs-requiring tests are skipped if the aibs fs is not available, 2020-02-17) All Good. |
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.
See comment.
@t-b Thanks for reviewing, and helpful suggestions. We are basing our new work off of this branch until pynwb released support for the schema 2.2.1. Thus I would have to revert your commit, to avoid dealing with rewriting history of our new work. Could you please instead make a PR against thins branch? Thanks. |
b04b1dc
to
5f9fee7
Compare
use tmpdir as base for stim ontology path in mies integration test
316/nwb2 publish
stop using dev pynwb
@sgratiy Is there any change in plans in adopting newer schema versions? |
No there is no change. This branch was already merged in to the |
This is a dev branch for our update to a newer pynwb. New work should target this branch.