Skip to content

Commit

Permalink
fixed arrayGrid read
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Nov 5, 2019
1 parent d52bf3d commit c3ec318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gridData/@arrayGrid/arrayGrid.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

% Interface utilities
methods
[X] = read(obj, start, count, stride, gridpath );
[X, passVal] = read(obj, scs, gridpath, passVal );
end

end
2 changes: 1 addition & 1 deletion gridData/@arrayGrid/read.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
loadIndex{d} = scs(1,d): scs(3,d) : scs(1,d)+scs(3,d)*(scs(2,d)-1);
end

if isempty( passVal )
if ~isempty( passVal )
m = passVal;
else
m = matfile( gridpath );
Expand Down

0 comments on commit c3ec318

Please sign in to comment.