Skip to content
Snippets Groups Projects
Verified Commit b74c37d5 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

One last Octave compatibility fix

Closes: #1749
parent 8ae487a1
Branches
Tags
No related merge requests found
...@@ -1007,3 +1007,10 @@ if isoctave ...@@ -1007,3 +1007,10 @@ if isoctave
else else
warning on warning on
end 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
...@@ -229,3 +229,9 @@ options_.mode_file = mode_file0; ...@@ -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) %reset stored mode-file to user defined one (and in case it was only set by the recursive estimation)
oo_.gui.ran_estimation = true; 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment