Closed cechava closed 2 years ago
@ln-vidrio let me know your thoughts on this. Maybe just removing the namespaces at the end of the unit tests would be easiest.
@cechava I agree, we'll have to do a full cleanup of the cache and generated classes in the unit tests.
Given that some NWB files already have these namespaces cached (e.g., this DANDIset). It would also make sense to modify NwbRead to ignore these test namespaces.
Honestly since we're going to definitely have a step to clean up these classes, it wouldn't hurt to also delete them from cache. I'd rather not include more special "names" if I don't have to and it may occur that a user will need to use one of our testing namespace names (not just what we have now, but also unit tests in the future).
This issue is independent of other validation issues and probably only will affect a small number of matnwb users. Validation of matnwb-generated files fails when the following extensions are in the namespace:
anon
,rrs
, andcs
. These extensions are found under+tests/+unit
folder and are generated when running unit tests. Exclusion of these from the cached namespace resolves the problem. The full traceback of a file generated when these are in the namespace is below.