Marcnuth / AnomalyDetection

Twitter's Anomaly Detection in Pure Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plot=True referenced before assignment

barissekerciler opened this issue · comments

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 ...

Saw this as well

commented

close this thanks for the fix by @hokiegeek2