From 715aff891a3d40f7115917ffbb5821dbd96af65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Fri, 15 Apr 2022 14:33:02 +0200 Subject: [PATCH] Octave 7 fixes bug related to generated files in +package folder --- matlab/+estimate/nls.m | 2 +- matlab/+pac/+estimate/nls.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/+estimate/nls.m b/matlab/+estimate/nls.m index a7f22e7e6..46c18c848 100644 --- a/matlab/+estimate/nls.m +++ b/matlab/+estimate/nls.m @@ -181,7 +181,7 @@ write_ssr_routine(lhs, rhs, eqname, ipnames_, M_); % Workaround for Octave bug https://savannah.gnu.org/bugs/?46282 % Octave will randomly fail to read the ssr_* file generated in the +folder -if isoctave +if isoctave && octave_ver_less_than('7') path(path) end diff --git a/matlab/+pac/+estimate/nls.m b/matlab/+pac/+estimate/nls.m index 8b5a13640..5f0d89b3c 100644 --- a/matlab/+pac/+estimate/nls.m +++ b/matlab/+pac/+estimate/nls.m @@ -98,7 +98,7 @@ write_ssr_routine(lhs, rhs, eqname, ipnames_, M_, pacmodl); % Workaround for Octave bug https://savannah.gnu.org/bugs/?46282 % Octave will randomly fail to read the ssr_* file generated in the +folder -if isoctave +if isoctave && octave_ver_less_than('7') path(path) end -- GitLab