Skip to content

Commit

Permalink
Merge pull request #293 from vncntprvst/master
Browse files Browse the repository at this point in the history
Fixes issue #292
  • Loading branch information
lawrence-mbf authored Aug 10, 2021
2 parents ea72c93 + d6a92ba commit aa0ca76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion +io/+space/getReadSpace.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
end
end
validateattributes(sid, {'H5ML.id'}, {'scalar', 'nonempty'});
assert(H5I.is_valid(sid), 'NWB:Space:GetReadSpace:InvalidId', 'Provided Space ID is invalid.');
assert(boolean(H5I.is_valid(sid)), 'NWB:Space:GetReadSpace:InvalidId', 'Provided Space ID is invalid.');

newSid = H5S.copy(sid); % do not change the original space ID
H5S.select_none(newSid); % reset selection on file.
Expand Down

0 comments on commit aa0ca76

Please sign in to comment.