Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'ipeaks' #410

VargBurz opened this Issue Feb 12, 2019 · 0 comments


None yet
1 participant
Copy link

VargBurz commented Feb 12, 2019

Analytics down with KeyError, while the webbooks are working,
because models don't know about self.state

2019-02-12 12:16:37,025 [Analytics] [ERROR]  handle_analytic_task Exception: 'Traceback (most recent call last):
  File "bin/../analytics/", line 94, in handle_analytic_task
    result_payload = await self.__handle_analytic_task(task)
  File "bin/../analytics/", line 76, in __handle_analytic_task
    res = await worker.recieve_data(data, payload['cache'])
  File "bin/../analytics/", line 41, in recieve_data
    return self._detector.recieve_data(data, cache)
  File "bin/../analytics/detectors/", line 77, in recieve_data
    res = self.detect(, cache)
  File "bin/../analytics/detectors/", line 54, in detect
    detected = self.model.detect(dataframe, cache)
  File "bin/../analytics/models/", line 88, in detect
    result = self.do_detect(dataframe)
  File "bin/../analytics/models/", line 80, in do_detect
    return self.__filter_detection(segments, data)
  File "bin/../analytics/models/", line 88, in __filter_detection
    if len(segments) == 0 or len(self.state['ipeaks']) == 0:
KeyError: 'ipeaks'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.