Skip to content

[Bug]: MatNWB does not enforce quantity for groups of a wrapper/interface neurodata type #679

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

Open
2 tasks done
ehennestad opened this issue Mar 6, 2025 · 0 comments
Open
2 tasks done
Labels
category: bug errors in the code or code behavior status: todo something needs to be done topic: matnwb-api related to improving the matnwb api

Comments

@ehennestad
Copy link
Collaborator

ehennestad commented Mar 6, 2025

What happened?

The following should fail (but does not).

The NWB schema specifies that ImageSegmentation should contain at least one PlaneSegmentation object. The following code demonstrates that it is possible to export an ImageSegmentation object without adding a PlaneSegmentation to it.

Steps to Reproduce

nwb = tests.factory.NWBFile();

ophys_module = types.core.ProcessingModule( ...
    'description', 'Contains optical physiology data');
nwb.processing.set('ophys', ophys_module);

img_seg = types.core.ImageSegmentation();
ophys_module.nwbdatainterface.set('ImageSegmentation', img_seg);
nwbExport(nwb, "temp.nwb")

Error Message

no error

Operating System

macOS

Matlab Version

R2023b

Code of Conduct

@ehennestad ehennestad changed the title [Bug]: MatNWB does not enforce quantity groups of a wrapper/interface neurodata type [Bug]: MatNWB does not enforce quantity for groups of a wrapper/interface neurodata type Mar 6, 2025
@ehennestad ehennestad added category: bug errors in the code or code behavior status: todo something needs to be done topic: matnwb-api related to improving the matnwb api labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug errors in the code or code behavior status: todo something needs to be done topic: matnwb-api related to improving the matnwb api
Projects
None yet
Development

No branches or pull requests

1 participant