However, when an Images object is added, validation fails. This is because the generated code in matnwb/+types/+core/NWBFile.m says:
function val = validate_stimulus_templates(obj, val)
constrained = {'types.core.TimeSeries'};
types.util.checkSet('stimulus_templates', struct(), constrained, val);
end
Image of a stack trace from the user
Similarly, the /acquisition, /analysis, and /scratch groups all allow multiple data types. The generated validator code does not seem to allow for that, but it should.
What happened?
NWB schema 2.6.0 allows both
TimeSeries
andImages
to be added to the/stimulus_templates
group of an NWB file. https://github.com/NeurodataWithoutBorders/nwb-schema/blob/19c4bbb36effb1454253072f70ebf2c83f2ea095/core/nwb.file.yaml#L134-L145However, when an
Images
object is added, validation fails. This is because the generated code inmatnwb/+types/+core/NWBFile.m
says:Image of a stack trace from the user
Similarly, the
/acquisition
,/analysis
, and/scratch
groups all allow multiple data types. The generated validator code does not seem to allow for that, but it should.Steps to Reproduce
Error Message
Operating System
macOS
Matlab Version
unknown
Code of Conduct