Skip to content

Commit

Permalink
Bugfix for 0.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou committed Apr 15, 2020
1 parent c282d08 commit 3d8a5a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cimetrics/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def less_than_max_build_id(record):
return df


def anomalies(series):
def anomalies(series, window_size):
ts = series.set_index(pandas.date_range(start="1/1/1970", periods=len(series)))
ad = LevelShiftAD(window=3)
ad = LevelShiftAD(window=window_size)
an = ad.fit_detect(ts).fillna(0).diff().fillna(0).reset_index(drop=True)
return an[an > 0].dropna().index

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name="cimetrics",
version="0.2.14",
version="0.2.15",
description="Lightweight python module to track crucial metrics",
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 3d8a5a9

Please sign in to comment.