-
Notifications
You must be signed in to change notification settings - Fork 84
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
What should be default name of pynwb.misc.Units
?
#1882
Comments
pynwb.misc.Units
pynwb.misc.Units
?
The name of the This predates the best practices. Changing that to Alternatively, we could remove the fixed name Anyway, most people don't care what the object is named under the hood, but I hesitate to change the current naming scheme because of other software relying on the existing schema. Unfortunately, the default name of the |
Thanks for the full explanation @rly .
This. Independently on that I think we should change the newly added So these lines work as they should: pynwb/src/pynwb/testing/mock/ecephys.py Lines 147 to 150 in 2259bed
I will do a PR for that. |
Right now the following throws an error:
Units default name is "Units" as supported by best practices for naming conventions:
And is defined here:
pynwb/src/pynwb/misc.py
Lines 157 to 158 in 2259bed
However, the
NWBFile
has "units" as a required name for the attribute here on its fields:pynwb/src/pynwb/file.py
Lines 272 to 273 in 2259bed
So I think that one of the two should give? Which one makes more sense? Maybe the nwbfile.units should accept "Units" as the name? Should it be the other way around?
The text was updated successfully, but these errors were encountered: