From f31483257f2f4329aa5451c2304f75d78c8ef82a Mon Sep 17 00:00:00 2001 From: Lawrence Date: Fri, 19 Mar 2021 11:00:54 -0400 Subject: [PATCH 1/2] Restore load() call in BoundPipe Used by external scripts and getRow() --- +types/+untyped/+datapipe/BoundPipe.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/+types/+untyped/+datapipe/BoundPipe.m b/+types/+untyped/+datapipe/BoundPipe.m index e73613bb..ca0be464 100644 --- a/+types/+untyped/+datapipe/BoundPipe.m +++ b/+types/+untyped/+datapipe/BoundPipe.m @@ -232,5 +232,9 @@ function removePipeProperty(~, ~) function obj = write(obj, ~, ~) return; end + + function data = load(obj, varargin) + data = obj.stub.load(varargin{:}); + end end end From 61f370693faf4066011604820b89a87d821563ed Mon Sep 17 00:00:00 2001 From: Lawrence Date: Fri, 19 Mar 2021 11:16:29 -0400 Subject: [PATCH 2/2] Update test to use datapipe load() --- +tests/+unit/dataPipeTest.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/+tests/+unit/dataPipeTest.m b/+tests/+unit/dataPipeTest.m index 54874862..9f449bdc 100644 --- a/+tests/+unit/dataPipeTest.m +++ b/+tests/+unit/dataPipeTest.m @@ -41,16 +41,9 @@ function testAppend(testCase) end %% verify data -fid = H5F.open(filename); -did = H5D.open(fid, name); - -readData = H5D.read(did); - +readData = Pipe.load(); testCase.verifyEqual(readData(:,:,1:10), initialData); testCase.verifyEqual(readData(:,:,11:end), appendData); - -H5D.close(did); -H5F.close(fid); end function data = createData(dataType, size)