Commit 607fc44f authored by Jérome Perrin's avatar Jérome Perrin

make fake bayes_mvs implementation returns mean. Still very wrong, but better than zeros

parent bdb48cd7
......@@ -39,7 +39,12 @@ except ImportError:
@staticmethod
def bayes_mvs(*args, **kw):
warn("Scipy is missing, using fake implementation")
return [[[0] * 3] * 3] * 3
serie, confidence = args
import numpy
mean = numpy.mean(serie), (numpy.min(serie), numpy.max(serie))
var = 0, (0, 0)
std = 0, (0, 0)
return mean, var, std
import sys
sys.modules['scipy.stats'] = scipy.stats
sys.modules['scipy'] = scipy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment