From 5f36e5fdf6d5bdcd6c2ebcbecfdb66d2836de0ff Mon Sep 17 00:00:00 2001 From: rozetko Date: Fri, 31 Aug 2018 16:48:40 +0300 Subject: [PATCH] Convert cache fields in reverse peak model to float (#128) --- analytics/models/reverse_peak_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analytics/models/reverse_peak_model.py b/analytics/models/reverse_peak_model.py index 6c51a9e..9440998 100644 --- a/analytics/models/reverse_peak_model.py +++ b/analytics/models/reverse_peak_model.py @@ -54,12 +54,12 @@ class ReversePeakModel(Model): convolve_list.append(max(convolve)) if len(confidences) > 0: - self.state['confidence'] = min(confidences) + self.state['confidence'] = float(min(confidences)) else: self.state['confidence'] = 1.5 if len(convolve_list) > 0: - self.state['convolve_max'] = max(convolve_list) + self.state['convolve_max'] = float(max(convolve_list)) else: self.state['convolve_max'] = 570000