Skip to content

Commit

Permalink
Merge pull request #294 from NeurodataWithoutBorders/292-2020a-logica…
Browse files Browse the repository at this point in the history
…l-assert

boolean->logical
  • Loading branch information
lawrence-mbf authored Aug 10, 2021
2 parents aa0ca76 + 8b7bb05 commit 5d15e00
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 5d15e00

Please sign in to comment.