-
Notifications
You must be signed in to change notification settings - Fork 32
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
Change: Only embed specs/namespaces for types that are included in NWB file on export #615
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #615 +/- ##
==========================================
+ Coverage 95.27% 95.44% +0.17%
==========================================
Files 124 137 +13
Lines 5139 5265 +126
==========================================
+ Hits 4896 5025 +129
+ Misses 243 240 -3 ☔ View full report in Codecov by Sentry. |
Update docstring
Add utility function for listing the type hierarchy of an nwb type
…ataWithoutBorders/matnwb into add-nwb-install-extension
Add schedule event for workflow to update nwbInstallExtension
Remove local function
@@ -0,0 +1,16 @@ | |||
function deleteGroup(fileReference, groupLocation) | |||
% deleteGroup - Delete the specified group from an NWB file |
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.
I don't think it's a big deal that way this is used here, but note that deleting groups and datasets from an HDF5 file does not free up the space
There are lots of new functions here that lack unit tests |
…com/NeurodataWithoutBorders/matnwb into 607-fix-namespace-embedding-in-file
@bendichter Added unit tests for those functions |
This seems quite complicated. Can you describe your general strategy here? I would think we could keep track of the namespaces used as we add neurodata objects to an NWB file and then only save the file with those namespaces. It looks here like you are doing a lot of manipulation on the HDF5 level. Can you help me understand this approach before I dig in? |
Please see the above comment/review. Also see the docstring of Most of this PR is convenience functions. I added them to the |
Added comments and a better test to test for warning with ID 'NWB:validators:MissingEmbeddedNamespace'
@bendichter I updated the test. |
Fix #607
Motivation
Ensure that only relevant namespaces/specifications are embedded in an NWB file. This issue suggests that such extra namespaces can cause errors when validating with NWBInspector.
How to test the behavior?
Questions / todo
kebab-case
? - Appears sosnake_case
? - Appears soShould thespecification
group be completely cleared before rewriting it if exporting to an existing file?Checklist
fix #XX
whereXX
is the issue number?