File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 232232 end
233233
234234 function sz = size(obj , varargin )
235- assert(isa(obj .internal , ' types.untyped.datapipe.BoundPipe' ),...
236- ' NWB:DataPipe:LoadingUnboundPipe' ,...
237- [' DataPipe must be successfully exported before DataStub ' ...
238- ' features are allowed.' ]);
239- sz = size(obj .internal , varargin{: });
235+ if isa(obj .internal , ' types.untyped.datapipe.BoundPipe' )
236+ sz = size(obj .internal , varargin{: });
237+ elseif isa(obj .internal , ' types.untyped.datapipe.BlueprintPipe' )
238+ sz = obj .internal .maxSize ;
239+ else
240+ error(' MatNWB:DataPipe:UnhandledPipe' , [' Internal Datapipe of type `%s ` does not ' ...
241+ ' have a handled size() method.' ], class(obj .internal ));
242+ end
240243 end
241244
242245 function append(obj , data )
You can’t perform that action at this time.
0 commit comments