Skip to content

Commit

Permalink
fix if block
Browse files Browse the repository at this point in the history
  • Loading branch information
NimaSarajpoor committed Feb 2, 2023
1 parent 3b2097f commit 5be22a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stumpy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,10 +2278,10 @@ def rolling_isconstant(a, w, custom_func=None):
if custom_func is not None:
custom_func_args = set(inspect.signature(custom_func).parameters.keys())
if len(set(["a", "w"]).difference(custom_func_args)):
rolling_isconstant_func = custom_func
else:
msg = "Incompatible parameters found in `custom_func`"
warnings.warn(msg)
else:
rolling_isconstant_func = custom_func

axis = a.ndim - 1
return np.apply_along_axis(
Expand Down

0 comments on commit 5be22a7

Please sign in to comment.