Marcnuth / AnomalyDetection

Twitter's Anomaly Detection in Pure Python
Apache License 2.0
306 stars 76 forks source link

Plot=True referenced before assignment #3

Closed barissekerciler closed 5 years ago

barissekerciler commented 6 years ago

When we call with "Plot=True" parameter, like this: data_ = pd.read_csv('analytics_test.csv', index_col='timestamp', parse_dates=True, squeeze=True, date_parser=dparserfunc)

returns this error: UnboundLocalError: local variable 'num_days_per_line' referenced before assignment

in anomaly_detect_ts.py file in 274. line: ... if plot: num_days_per_line breaks x_subset_week ...

hokiegeek2 commented 6 years ago

Saw this as well

Marcnuth commented 5 years ago

close this thanks for the fix by @hokiegeek2