Commit cd145a03 authored by Jérome Perrin's avatar Jérome Perrin

provide a fake scipy implementation if the module is not available

parent 2e8c962d
......@@ -3,6 +3,19 @@ import traceback
import multiprocessing
import pydot
try:
import scipy
except ImportError:
class scipy:
class stats:
@staticmethod
def bayes_mvs():
warn("Scipy is missing, using fake implementation")
return [[[0] * 3] * 3] * 3
import sys
sys.modules['scipy.stats'] = scipy.stats
sys.modules['scipy'] = scipy
from flask import Flask, jsonify, redirect, url_for
from flask import request
......
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