Skip to content
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]: MatNWB does not enforce quantity for groups of a wrapper/interface neurodata type #679

Open
2 tasks done
ehennestad opened this issue Mar 6, 2025 · 0 comments
Open
2 tasks done

Comments

@ehennestad
Copy link
Collaborator

What happened?

The following should fail (but does not) because the schema specifies that ImageSegmentation should contain at least one PlaneSegmentation object

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant