about summary refs log tree commit diff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorPjotr Prins2016-06-21 10:34:07 +0000
committerPjotr Prins2016-06-21 10:34:07 +0000
commit1602382270d809d923e1ecc83014084d629fdbfe (patch)
tree8c3fe201ed2346cae64d052f51b658c2bad2cb0f /wqflask/utility
parentc96dcddc4e8ef33c39bf849cb89cd296dd4aa100 (diff)
downloadgenenetwork2-1602382270d809d923e1ecc83014084d629fdbfe.tar.gz
log: replace print statements
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/Plot.py10
1 files changed, 6 insertions, 4 deletions
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