Skip to content

Commit

Permalink
Fix issue that caused intermittent max recursion depth errors in t_mp…
Browse files Browse the repository at this point in the history
…_table on some versions of Octave.

See also apjanke/octave-tablicious#80 (comment).
  • Loading branch information
rdzman committed May 3, 2024
1 parent 2de453d commit 9c8de2e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ For change history for [MOST][3], see [most/CHANGES.md](most/CHANGES.md).
since 8.0b1
-----------

#### 5/3/24
- Fix issue in `mp_table_subclass` that caused intermittent max
recursion depth errors in `t_mp_table` on some versions of Octave.

#### 4/23/24
- Delete extra (duplicate) row in `gencost` in `case94pi.m`.

Expand Down
6 changes: 4 additions & 2 deletions lib/mp_table_subclass.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,13 @@
end

function n = numArgumentsFromSubscript(obj, varargin)
n = numArgumentsFromSubscript(obj.tab, varargin{:});
n = 1;
end

% This is needed to avoid an error when doing T{r1:rN, c} = b;
% See https://github.com/apjanke/octave-tablicious/issues/80#issuecomment-855198281.
function n = numel(obj, varargin)
n = numel(obj.tab, varargin{:});
n = 1;
end

function b = subsref(obj, varargin)
Expand Down
2 changes: 1 addition & 1 deletion lib/mpver.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
v{1} = struct( 'Name', 'MATPOWER', ...
'Version', '8.0b1+', ...
'Release', '', ...
'Date', '30-Apr-2024' );
'Date', '03-May-2024' );
if nargout > 0
if nargin > 0
rv = v{1};
Expand Down

0 comments on commit 9c8de2e

Please sign in to comment.