-
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
[Bug]: Schema are not cached in NWB file #673
Comments
Hi Ryan, You are right, this is new behavior (following this PR: #615). The old behavior was that all cached namespace schemas were embedded in the file, even though available namespaces types were not in use. The PR changed the mechanism of embedding so that only namespace specifications of types that are included within the file are embedded. What you are observing is the case where the file does not have any neurodata types included, and thus no specifications are embedded (running We considered an empty file without any neurodata types to be an edge-case which does not happen in the real world. I could change the rule of embedding specifications to also consider the NwbFile itself, what do you think? |
Interesting. I think the NwbFile itself should be included, so that all NWB files have core and hdmf-common always cached by default. |
Realizing that there are two different bugs here.
This commit should fix point 2. |
What happened?
I think this is new behavior, but if I create an NWB file without calling
generateCore
, the schema is not cached in the file.The
specifications
group is empty. The schema should be cached by default.The tutorial instructions do not say to call
generateCore
.See also NeurodataWithoutBorders/pynwb#2046 (comment)
Steps to Reproduce
Error Message
Operating System
macOS
Matlab Version
R2024b
Code of Conduct
The text was updated successfully, but these errors were encountered: