mirror of
https://github.com/correl/dejavu.git
synced 2024-12-27 11:07:37 +00:00
Replace deprecated boolean subtraction operator
Fixes #109 by changing deprecated boolean subtraction operator ( minus sign, '-' ) to '^'.
This commit is contained in:
parent
7f53f2ab68
commit
02345911ca
1 changed files with 2 additions and 2 deletions
|
@ -100,8 +100,8 @@ def get_2D_peaks(arr2D, plot=False, amp_min=DEFAULT_AMP_MIN):
|
|||
eroded_background = binary_erosion(background, structure=neighborhood,
|
||||
border_value=1)
|
||||
|
||||
# Boolean mask of arr2D with True at peaks
|
||||
detected_peaks = local_max - eroded_background
|
||||
# Boolean mask of arr2D with True at peaks (Fixed deprecated boolean operator by changing '-' to '^')
|
||||
detected_peaks = local_max ^ eroded_background
|
||||
|
||||
# extract peaks
|
||||
amps = arr2D[detected_peaks]
|
||||
|
|
Loading…
Reference in a new issue