Skip to content

Commit

Permalink
future deprecation warning fix on casting array as scalar
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Nov 11, 2024
1 parent a1f6d72 commit c817595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ibldsp/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def parabolic_max(x):
)
)
poly = np.matmul(0.5 * np.array([[1, -2, 1], [-1, 0, 1], [0, 2, 0]]), v010)
ipeak = -poly[1] / (poly[0] + np.double(poly[0] == 0)) / 2
ipeak = -poly[1] / (poly[0] + np.double(np.sum(poly[0] == 0))) / 2
maxi = poly[2] + ipeak * poly[1] + ipeak**2.0 * poly[0]
ipeak += imax
# handle edges
Expand Down

0 comments on commit c817595

Please sign in to comment.