summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-07-01 14:05:37 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-07-01 14:05:37 +0200
commitc835a568f4f21154995fe79f68a551987d920603 (patch)
tree2fa2a2ba4de2e1f843dc7529a3f32df9c339bd04
parent9e4798c68a0f83bc7fecbf94c949c63eb934c2a0 (diff)
downloadanalyzer-c835a568f4f21154995fe79f68a551987d920603.tar.gz
analyzer-c835a568f4f21154995fe79f68a551987d920603.zip
increase mpmath precision
-rw-r--r--requirements.txt1
-rw-r--r--worker.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/requirements.txt b/requirements.txt
index c2793a5..f73baba 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,6 @@
appdirs==1.4.3
cymysql==0.8.9
+gmpy==1.17
mpmath==0.19
packaging==16.8
pika==0.10.0
diff --git a/worker.py b/worker.py
index ead070f..cb412ec 100644
--- a/worker.py
+++ b/worker.py
@@ -10,6 +10,8 @@ from sqlalchemy import create_engine
import pika
import trueskill
+import mpmath
+mpmath.mp.dps = 25 # increase if FloatingPointError
RABBITMQ_URI = os.environ.get("RABBITMQ_URI") or "amqp://localhost"