From 59618d132ea7dc6f7477bb5b0712b17e8b49b1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Thu, 3 Sep 2015 18:31:02 +0200 Subject: [PATCH] Do not print warning backtrace when some parameters are not initialized. --- matlab/test_for_deep_parameters_calibration.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matlab/test_for_deep_parameters_calibration.m b/matlab/test_for_deep_parameters_calibration.m index b45ad399b..4dbfca7cd 100644 --- a/matlab/test_for_deep_parameters_calibration.m +++ b/matlab/test_for_deep_parameters_calibration.m @@ -44,10 +44,12 @@ if ~isempty(plist) message = [message, ' when using ' tmp(2).name '. ']; message = [message, 'If these parameters are not initialized in a steadystate file or a steady_state_model-block, Dynare may not be able to solve the model...']; message_id = 'Dynare:ParameterCalibration:NaNValues'; + warning('off','backtrace') warning(message_id,message); if strmatch('optimal_policy_discount_factor',plist,'exact') warning('Either you have not correctly initialized planner_discount or you are calling a command like steady or stoch_simul that is not allowed in the context of ramsey_policy') end + warning('on','backtrace') else info=0; end \ No newline at end of file