From 848aa480e55070a8a31ff8fc636fabff88187407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Ates?= Date: Mon, 9 Nov 2015 17:43:45 +0100 Subject: [PATCH] Watcher default settings must be defined in django settings. --- src/biomon/medibot/watcher.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/biomon/medibot/watcher.py b/src/biomon/medibot/watcher.py index cb77a6f..f139ca1 100644 --- a/src/biomon/medibot/watcher.py +++ b/src/biomon/medibot/watcher.py @@ -36,8 +36,10 @@ from .. import models as biomon_models class Watcher: - def __init__(self, acceptance_rate=0.9, default_episode_duration=24, - reception_period=8, data_needed_rate=0.5): + def __init__(self, acceptance_rate=settings.ACCEPTANCE_RATE, + default_episode_duration=settings.DEFAULT_EPISODE_DURATION, + reception_period=settings.RECEPTION_PERIOD, + data_needed_rate=settings.DATA_NEEDED_RATE): # Acceptance rate is the rate of data samples over the threshold on # the minimal episode duration expected. self.acceptance_rate = acceptance_rate