Abandon previous attempts to use matlab namespace...

for dseries (see 48115cb8, which does not work with Octave) or a
method (see ef923e41, which does not work with all supported Matlab's
versions) to initialize the dseries class.
parent 18b4a856
Pipeline #780 failed with stage
in 2 minutes and 17 seconds
function initialize(fake)
function initialize_dseries_class()
% Copyright (C) 2015-2019 Dynare Team
%
......@@ -16,7 +16,7 @@ function initialize(fake)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
% Get the path to the dseries toolbox.
dseries_src_root = strrep(which('@dseries/initialize.m'),'@dseries/initialize.m','');
dseries_src_root = strrep(which('initialize_dseries_class'),'initialize_dseries_class.m','');
% Check that the x13 binary is available
nox13 = false;
......
......@@ -15,7 +15,7 @@ function runalltests()
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
dseries_src_root = strrep(which('runalltests'),'tests/runalltests.m','');
dseries_src_root = []; % Will be updated by calling initialize_dseries_class().
opath = path();
......@@ -34,10 +34,10 @@ unit_tests_root = strrep(which('runalltests'),'runalltests.m','');
% Initialize the dseries module
try
dseries().initialize();
initialize_dseries_class();
catch
addpath([unit_tests_root '../src']);
dseries().initialize();
initialize_dseries_class();
end
warning off
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment