Skip to content

Commit

Permalink
Merge pull request BVLC#3184 from lalelale/patch-1
Browse files Browse the repository at this point in the history
Update store2hdf5.m
  • Loading branch information
ronghanghu committed Oct 13, 2015
2 parents 0151742 + ec94055 commit 7bd41db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab/hdf5creation/store2hdf5.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
info=h5info(filename);
prev_dat_sz=info.Datasets(1).Dataspace.Size;
prev_lab_sz=info.Datasets(2).Dataspace.Size;
assert(prev_dat_sz(1:end-1)==dat_dims(1:end-1), 'Data dimensions must match existing dimensions in dataset');
assert(prev_lab_sz(1:end-1)==lab_dims(1:end-1), 'Label dimensions must match existing dimensions in dataset');
assert(all(prev_dat_sz(1:end-1)==dat_dims(1:end-1)), 'Data dimensions must match existing dimensions in dataset');
assert(all(prev_lab_sz(1:end-1)==lab_dims(1:end-1)), 'Label dimensions must match existing dimensions in dataset');
startloc.dat=[ones(1,length(dat_dims)-1), prev_dat_sz(end)+1];
startloc.lab=[ones(1,length(lab_dims)-1), prev_lab_sz(end)+1];
end
Expand Down

0 comments on commit 7bd41db

Please sign in to comment.