Closed bendichter closed 2 years ago
@cechava , we could use your help with this. Would you able to take a stab at it?
@bendichter So we wish to sharply distinguish between "scalar" and "non-scalar" strings by their cell-array presence? So a character array being exported should still be a scalar string with symmetric behavior on read?
@ln-vidrio yes, that's right.
When you save a cell array with a single element that is a string attribute, e.g.
{'spike_times'}
, this is saved as a scalar, which causes a validation error withpynwb.validate
.This bug has appeared in
DynamicTable.colnames
, which should be an array of strings. If only a single column is provided, this value is converted to a scalar string and causes a validation error.This is preventing us from uploading some data generated from MatNWB to DANDI.
@ln-vidrio do you think you could direct us to where in the code we should look to fix this?