From d6a92baf8ea33f43aba857c0cfc2437459664776 Mon Sep 17 00:00:00 2001 From: Vincent Prevosto Date: Tue, 10 Aug 2021 15:00:45 -0400 Subject: [PATCH] Fixes issue #292 --- +io/+space/getReadSpace.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+io/+space/getReadSpace.m b/+io/+space/getReadSpace.m index 668ea8f5..a3984f17 100644 --- a/+io/+space/getReadSpace.m +++ b/+io/+space/getReadSpace.m @@ -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.