Skip to content

Commit

Permalink
Add check for non-cellstr cell types
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-mbf committed Sep 6, 2022
1 parent 3b26777 commit ef43e87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions +io/mapData2H5.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
forceArray = any(strcmp('forceArray', varargin));
forceChunked = any(strcmp('forceChunking', varargin));

if iscell(data)
assert(iscellstr(data), 'NWB:MapData:NonCellStr', ['Cell arrays must be ' ...
'cell arrays of character vectors. Cell arrays of other types are ' ...
'not supported.']);
end
tid = io.getBaseType(class(data));

% max size is always unlimited
Expand Down

0 comments on commit ef43e87

Please sign in to comment.