Closed KyzarNexus closed 1 year ago
Hi @KyzarNexus ,
This just has to do with how MATLAB orders its data when writing using the HDF5 library. As a result, the dimension validation is intentionally flipped for better compatibility with HDF5, C, and Python and so we don't have to do rehapes on large data.
You can read more about this here: https://www.mathworks.com/help/matlab/import_export/export-to-hdf5-files.html#bqyqs27
Hi @lawrence-mbf ,
Thanks for clarifying!
What happened?
There appears to be a discrepancy between the data dimensions accepted for '+types+core\OpticalSeries.m' & the schema definition in 'nwb-schema\2.6.0\core\nwb.image.yaml'. For the nwb.image.yaml OpticalSeries definition, the accepted dimensions for an RGB image are [frame, x, y, 3] (ln159-162). However, the valid RGB shape allowable for OpticalSeries.m is [3, Inf, Inf, Inf] (ln 60). That being said, the error resulting from this can be circumvented by permuting the data before adding it to an OpticalSeries, but is there a reason why the acceptable dimensions are reversed here?
Steps to Reproduce
Error Message
Operating System
Windows
Matlab Version
R2019a
Code of Conduct