hastic-zzz / hastic-server

Hastic data management server for analyzing patterns and anomalies from Grafana
GNU General Public License v3.0
330 stars 23 forks source link

IndexError: list index out of range #263

Closed jonyrock closed 6 years ago

jonyrock commented 6 years ago

This is what I got:

2018-11-25 13:15:40,034 [Analytics] [ERROR]  handle_analytic_task exception: 'Traceback (most recent call last):
  File "C:\Projects\hastic-server\analytics\bin\..\analytics\analytic_unit_manager.py", line 58, in handle_analytic_task
    result_payload = await worker.do_learn(payload['segments'], data, payload['cache'])
  File "C:\Projects\hastic-server\analytics\bin\..\analytics\analytic_unit_worker.py", line 22, in do_learn
    self.executor, self.detector.train, data, segments, cache
  File "C:\Users\gmpot\AppData\Local\Programs\Python\Python36-32\lib\concurrent\futures\thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Projects\hastic-server\analytics\bin\..\analytics\detectors\pattern_detector.py", line 40, in train
    new_cache = self.model.fit(dataframe, segments, cache)
  File "C:\Projects\hastic-server\analytics\bin\..\analytics\models\model.py", line 34, in fit
    self.do_fit(dataframe, segments)
  File "C:\Projects\hastic-server\analytics\bin\..\analytics\models\jump_model.py", line 74, in do_fit
    jump_center = cen_ind[0]
IndexError: list index out of range
'

image

image

image

jonyrock commented 6 years ago

It was my bug