Skip to content

Commit faed8cc

Browse files
author
Lawrence
committed
Change BlueprintPipe size return to maxSize value.
The loophole is still there but at least we're checking the optimal bound on the blueprint so validation is more accurate when no data has been written yet.
1 parent 1bdb3a2 commit faed8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+types/+untyped/DataPipe.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
if isa(obj.internal, 'types.untyped.datapipe.BoundPipe')
236236
sz = size(obj.internal, varargin{:});
237237
elseif isa(obj.internal, 'types.untyped.datapipe.BlueprintPipe')
238-
sz = size(obj.internal.data, varargin{:});
238+
sz = obj.internal.maxSize;
239239
else
240240
error('MatNWB:DataPipe:UnhandledPipe', ['Internal Datapipe of type `%s` does not '...
241241
'have a handled size() method.'], class(obj.internal));

0 commit comments

Comments
 (0)