From 32034872afc488c78392cdefce6eb55d8f9d452f Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Fri, 24 May 2013 13:17:34 +0100 Subject: [PATCH] handling printouts without messages --- GPy/inference/SCG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/inference/SCG.py b/GPy/inference/SCG.py index 5b210953..b978a50c 100644 --- a/GPy/inference/SCG.py +++ b/GPy/inference/SCG.py @@ -71,8 +71,8 @@ def SCG(f, gradf, x, optargs=(), maxiters=500, max_f_eval=500, display=True, xto iteration = 0 + len_maxiters = len(str(maxiters)) if display: - len_maxiters = len(str(maxiters)) print ' {0:{mi}s} {1:11s} {2:11s} {3:11s}'.format("I", "F", "Scale", "|g|", mi=len_maxiters) # Main optimization loop.