Skip to content

Commit 655cc50

Browse files
authored
Merge pull request #271 from NeurodataWithoutBorders/fix/bound-pipe-load
Resolve BoundPipe usability issues
2 parents df427d3 + 61f3706 commit 655cc50

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

+tests/+unit/dataPipeTest.m

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,9 @@ function testAppend(testCase)
4141
end
4242

4343
%% verify data
44-
fid = H5F.open(filename);
45-
did = H5D.open(fid, name);
46-
47-
readData = H5D.read(did);
48-
44+
readData = Pipe.load();
4945
testCase.verifyEqual(readData(:,:,1:10), initialData);
5046
testCase.verifyEqual(readData(:,:,11:end), appendData);
51-
52-
H5D.close(did);
53-
H5F.close(fid);
5447
end
5548

5649
function data = createData(dataType, size)

+types/+untyped/+datapipe/BoundPipe.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,9 @@ function removePipeProperty(~, ~)
232232
function obj = write(obj, ~, ~)
233233
return;
234234
end
235+
236+
function data = load(obj, varargin)
237+
data = obj.stub.load(varargin{:});
238+
end
235239
end
236240
end

0 commit comments

Comments
 (0)