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

Closed
VargBurz opened this Issue Feb 12, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@VargBurz
Copy link
Member

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/analytic_unit_manager.py", line 94, in handle_analytic_task
    result_payload = await self.__handle_analytic_task(task)
  File "bin/../analytics/analytic_unit_manager.py", line 76, in __handle_analytic_task
    res = await worker.recieve_data(data, payload['cache'])
  File "bin/../analytics/analytic_unit_worker.py", line 41, in recieve_data
    return self._detector.recieve_data(data, cache)
  File "bin/../analytics/detectors/pattern_detector.py", line 77, in recieve_data
    res = self.detect(self.bucket.data, cache)
  File "bin/../analytics/detectors/pattern_detector.py", line 54, in detect
    detected = self.model.detect(dataframe, cache)
  File "bin/../analytics/models/model.py", line 88, in detect
    result = self.do_detect(dataframe)
  File "bin/../analytics/models/peak_model.py", line 80, in do_detect
    return self.__filter_detection(segments, data)
  File "bin/../analytics/models/peak_model.py", 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.