-
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
Remove unused _ancestry class variable #707
Remove unused _ancestry class variable #707
Conversation
This is not written to NWB anymore.
Codecov Report
@@ Coverage Diff @@
## dev #707 +/- ##
==========================================
- Coverage 74.52% 74.42% -0.11%
==========================================
Files 59 59
Lines 6849 6830 -19
Branches 1415 1415
==========================================
- Hits 5104 5083 -21
- Misses 1354 1355 +1
- Partials 391 392 +1
Continue to review full report at Codecov.
|
Wait I actually like this. Is there currently no way to know from the nwb file how a class was derived? Would analysis tools benefit from access to this variable? Eg knowing that an extension derived from TimeSeries? If so it would probably be easier to do this automatically. |
ancestry should certainly not be stored in the file. That is the role of the schema and having the ancestry separately in the file is problematic. |
I guess the cached schema would accomplish this |
I don't really understand what's "problematic" about this though |
From the cached spec in the file the ancestry can always be recovered. |
@bendichter If you want ancestry, we could have the register_class decorator add it as a class attribute (this is how the neurodata_type class attribute gets added). Hardcoding it as a comma delimited string is problematic for long term maintenance and consistency. It’s just a field that would need to be kept in sync with the schema |
@ajtritt thanks for the explanation. @oruebel also pointed me to the discussion in the change logs. Let's remove this inactive code. Instead, how would you all feel about implementing a function that is analogous to |
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.
looks good to me. Thanks @t-b
@bendichter that seems reasonable. I prefer we address that under a new issue though |
@ajtritt @bendichter "Merge pull request" <-- Click here |
This is not written to NWB anymore.