use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / src / nepi / util / statfuncs.py
index 2a393fc..f6a8b54 100644 (file)
@@ -16,6 +16,8 @@
 #
 # Author: Alina Quereilhac <alina.quereilhac@inria.fr>
 
+from __future__ import print_function
+
 import math
 import numpy
 from scipy import stats
@@ -24,7 +26,7 @@ def compute_mean(sample):
     # TODO: Discard outliers !!!!
 
     if not sample:
-        print " CANNOT COMPUTE STATS for ", sample
+        print(" CANNOT COMPUTE STATS for ", sample)
         return (0, 0, 0, 0)
 
     x = numpy.array(sample)