Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f2ffd3f

Browse files
committedApr 7, 2025·
fixed np.float to float
1 parent 686bb3d commit f2ffd3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎telewavesim/utils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,13 @@ def stack_all(st1, st2, pws=False):
534534
weight2 += np.exp(1j*phase2)
535535

536536
# Normalize
537-
tmp1 = tmp1/np.float(len(st1))
538-
tmp2 = tmp2/np.float(len(st2))
537+
tmp1 = tmp1/float(len(st1))
538+
tmp2 = tmp2/float(len(st2))
539539

540540
# Phase-weighting
541541
if pws:
542-
weight1 = weight1/np.float(len(st1))
543-
weight2 = weight2/np.float(len(st2))
542+
weight1 = weight1/float(len(st1))
543+
weight2 = weight2/float(len(st2))
544544
weight1 = np.real(abs(weight1))
545545
weight2 = np.real(abs(weight2))
546546
else:

0 commit comments

Comments
 (0)
Please sign in to comment.