Commit 868afeb9 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

ms-sbvar bug fix: store no_create_init as number instead of string

parent 4fd6ebca
......@@ -41,6 +41,12 @@ if options_.ms.create_init
clean_ms_estimation_files(options_.ms.file_tag);
clean_ms_estimation_files(options_.ms.output_file_tag);
else
if exist(['init_' options_.ms.file_tag '.dat'],'file') ~= 2 || ...
exist(['matlab_' options_.ms.file_tag '.prn'],'file') ~= 2 || ...
exist([options_.ms.file_tag '_markov_file.dat'],'file') ~= 2
error(['You must run ms_estimation without no_create_init as '...
'you are missing an initialization file it needs.']);
end
if ~strcmp(options_.ms.file_tag, options_.ms.output_file_tag)
clean_ms_estimation_files(options_.ms.output_file_tag);
end
......
......@@ -2532,7 +2532,7 @@ o_cova_compute : COVA_COMPUTE EQUAL INT_NUMBER
;
o_output_file_tag : OUTPUT_FILE_TAG EQUAL filename {driver.option_str("ms.output_file_tag", $3); };
o_file_tag : FILE_TAG EQUAL filename { driver.option_str("ms.file_tag", $3); };
o_no_create_init : NO_CREATE_INIT { driver.option_str("ms.create_init", "0"); };
o_no_create_init : NO_CREATE_INIT { driver.option_num("ms.create_init", "0"); };
o_simulation_file_tag : SIMULATION_FILE_TAG EQUAL filename { driver.option_str("ms.simulation_file_tag", $3); };
o_coefficients_prior_hyperparameters : COEFFICIENTS_PRIOR_HYPERPARAMETERS EQUAL vec_value
{ driver.option_num("ms.coefficients_prior_hyperparameters",$3); };
......
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