From 1602382270d809d923e1ecc83014084d629fdbfe Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 21 Jun 2016 10:34:07 +0000 Subject: log: replace print statements --- wqflask/utility/Plot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'wqflask/utility/Plot.py') diff --git a/wqflask/utility/Plot.py b/wqflask/utility/Plot.py index 372e0ac5..d60e2bb2 100644 --- a/wqflask/utility/Plot.py +++ b/wqflask/utility/Plot.py @@ -43,6 +43,8 @@ import svg import webqtlUtil from base import webqtlConfig +import utility.logger +logger = utility.logger.getLogger(__name__ ) def cformat(d, rank=0): 'custom string format' @@ -294,10 +296,10 @@ def find_outliers(vals): """ - print("xerxes vals is:", pf(vals)) + logger.debug("xerxes vals is:", pf(vals)) if vals: - #print("vals is:", pf(vals)) + #logger.debug("vals is:", pf(vals)) stats = corestats.Stats(vals) low_hinge = stats.percentile(25) up_hinge = stats.percentile(75) @@ -310,7 +312,7 @@ def find_outliers(vals): upper_bound = None lower_bound = None - print(pf(locals())) + logger.debug(pf(locals())) return upper_bound, lower_bound @@ -433,7 +435,7 @@ def plotBoxPlot(canvas, data, offset= (40, 40, 40, 40), XLabel="Category", YLabe canvas.drawCross(XCoord, plotHeight + yTopOffset - (catMean-Yll)*plotHeight/(Yur - Yll), \ color=pid.blue,size=3) - #print (catMean, catMedian, cat25per, cat75per) + #print(catMean, catMedian, cat25per, cat75per) pass XCoord += stepX -- cgit v1.2.3