Skip to content
Snippets Groups Projects
Commit 31b99a6e authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

inserted if statement to account for input = None

parent e4cd978a
No related branches found
No related tags found
2 merge requests!21Gcef testfuncs,!20Gcef testfuncs
......@@ -35,7 +35,8 @@ def flagSpikes_limitRaise(
dataseries = data[field].dropna()
raise_window = pd.Timedelta(raise_window)
intended_freq = pd.Timedelta(intended_freq)
min_slope = np.abs(min_slope)
if min_slope is not None:
min_slope = np.abs(min_slope)
if average_window is None:
average_window = 1.5 * pd.Timedelta(raise_window)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment