Skip to content

Commit

Permalink
Merge pull request #271 from NeurodataWithoutBorders/fix/bound-pipe-load
Browse files Browse the repository at this point in the history
Resolve BoundPipe usability issues
  • Loading branch information
lawrence-mbf authored Mar 22, 2021
2 parents df427d3 + 61f3706 commit 655cc50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 1 addition & 8 deletions +tests/+unit/dataPipeTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions +types/+untyped/+datapipe/BoundPipe.m
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 655cc50

Please sign in to comment.