One last Octave compatibility fix

Closes: #1749
pac-components
Sébastien Villemot 2021-09-17 15:18:39 +02:00
parent 8ae487a111
commit b74c37d5e4
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 13 additions and 0 deletions

View File

@ -1007,3 +1007,10 @@ if isoctave
else
warning on
end
if isoctave && isfield(options_, 'prior_restrictions') && ...
isfield(options_.prior_restrictions, 'routine')
% Octave crashes if it tries to save function handles (to the _results.mat file)
% See https://savannah.gnu.org/bugs/?43215
options_.prior_restrictions.routine = [];
end

View File

@ -229,3 +229,9 @@ options_.mode_file = mode_file0;
%reset stored mode-file to user defined one (and in case it was only set by the recursive estimation)
oo_.gui.ran_estimation = true;
if isoctave && isfield(options_, 'prior_restrictions') && ...
isfield(options_.prior_restrictions, 'routine')
% Octave crashes if it tries to save function handles (to the _results.mat file)
% See https://savannah.gnu.org/bugs/?43215
options_.prior_restrictions.routine = [];
end