You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This came up in implementing #1632 - the threshold parameter in zero_crossings is currently optional, but it doesn't need to be. If threshold is None, it is converted to 0 automatically.
Describe the solution you'd like
Threshold=0 is equivalent behavior, and dropping the None support would simplify some type annotations and a bit of the implementation.
The text was updated successfully, but these errors were encountered:
Looking into this one, I think we might to better to rewrite this function from scratch. The current implementation has quite a bit of overhead due to allocation, slicing, and padding, and I don't think we actually need any of it. The vectorize + stencil pattern we've been using for other local operations (localmin/max, parabolic interpolation, etc) ought to do the trick here.
Is your feature request related to a problem? Please describe.
This came up in implementing #1632 - the threshold parameter in zero_crossings is currently optional, but it doesn't need to be. If threshold is None, it is converted to 0 automatically.
Describe the solution you'd like
Threshold=0 is equivalent behavior, and dropping the None support would simplify some type annotations and a bit of the implementation.
The text was updated successfully, but these errors were encountered: