From c6f1a63be267302582ba7f86cbe26e8b21734ced Mon Sep 17 00:00:00 2001 From: Panagiotis Papaemmanouil Date: Thu, 15 Sep 2022 14:22:06 +0300 Subject: [PATCH] bug #112: window size identification fixed for trend change detection --- luminaire/exploration/data_exploration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luminaire/exploration/data_exploration.py b/luminaire/exploration/data_exploration.py index 19f5303..08fb589 100644 --- a/luminaire/exploration/data_exploration.py +++ b/luminaire/exploration/data_exploration.py @@ -122,10 +122,10 @@ def __init__(self, tc_window_len_dict = { 'H': 24, 'D': 7, + 'W':4 } - if freq in ['H', 'D']: - self.tc_window_length = tc_window_len_dict.get(freq) + self.tc_window_length = tc_window_len_dict.get(freq) if freq in ['H', 'D', 'W'] else None self.tc_max_window_length = 24