Browse Source

Convert cache fields in reverse peak model to float (#128)

pull/1/head
rozetko 6 years ago committed by GitHub
parent
commit
5f36e5fdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      analytics/models/reverse_peak_model.py

4
analytics/models/reverse_peak_model.py

@ -54,12 +54,12 @@ class ReversePeakModel(Model):
convolve_list.append(max(convolve)) convolve_list.append(max(convolve))
if len(confidences) > 0: if len(confidences) > 0:
self.state['confidence'] = min(confidences) self.state['confidence'] = float(min(confidences))
else: else:
self.state['confidence'] = 1.5 self.state['confidence'] = 1.5
if len(convolve_list) > 0: if len(convolve_list) > 0:
self.state['convolve_max'] = max(convolve_list) self.state['convolve_max'] = float(max(convolve_list))
else: else:
self.state['convolve_max'] = 570000 self.state['convolve_max'] = 570000

Loading…
Cancel
Save