Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop IPFX from caching its NWB Schemas when writing/modifying NWB files
When IPFX modifies existing NWB files produced by MIES/IPNWB to add spike/metadata info, it adds additional pyNWB schemas to `core` and `hdmf-common` that are newer version than the ones the MIES/IPNWB uses. This has caused some grief when trying to DANDI validate the updated NWB files, so we will just not cache the updated schemas to the NWB file when IPFX interacts with the NWB files. *WARNING* This change will introduce fragility down the road if IPFX writes NWB fields that require the newer schema version. Since those newer schema versions will no longer be stored with the NWB file, they may become 'unreadable'. This is not a problem currently though since the older schema versions appear to support everything written when adding spikes/metadata via IPFX. *NOTE* pyNWB really doesn't support multiple nwb schemas for one NWB file. The *right* long-term solution would be to ensure that MIES/IPNWB and IPFX use the same version of nwb schemas like `core` and `hdmf-common`.
- Loading branch information