Skip to content

Commit

Permalink
fix hdmf compatibility with empty datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-mbf committed Jul 25, 2023
1 parent d97e670 commit 461c5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +io/mapData2H5.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
elseif ~forceArray && ~iscell(data) && isscalar(data)
sid = H5S.create('H5S_SCALAR');
elseif ~forceChunked && isempty(data)
sid = H5S.create('H5S_NULL');
sid = H5S.create_simple(1, 0, 0);
else
if isvector(data) || isempty(data)
num_dims = 1;
Expand Down

0 comments on commit 461c5c4

Please sign in to comment.