diff --git a/CHANGES.md b/CHANGES.md index 6389501d..ef0a56eb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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`. diff --git a/lib/mp_table_subclass.m b/lib/mp_table_subclass.m index babafda8..0b0ac3c0 100644 --- a/lib/mp_table_subclass.m +++ b/lib/mp_table_subclass.m @@ -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) diff --git a/lib/mpver.m b/lib/mpver.m index 04697a5a..169f6e1f 100644 --- a/lib/mpver.m +++ b/lib/mpver.m @@ -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};