Skip to content

Commit

Permalink
boolean->logical
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawrence committed Aug 10, 2021
1 parent aa0ca76 commit 8b7bb05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion +io/+space/getReadSpace.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
end
end
validateattributes(sid, {'H5ML.id'}, {'scalar', 'nonempty'});
assert(boolean(H5I.is_valid(sid)), 'NWB:Space:GetReadSpace:InvalidId', 'Provided Space ID is invalid.');
assert(logical(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 8b7bb05

Please sign in to comment.