Skip to content

Commit

Permalink
Merge pull request #124 from maxmargraf/complex_depraction
Browse files Browse the repository at this point in the history
replacing np.bool with bool
  • Loading branch information
maxmargraf committed Jun 21, 2023
2 parents 228cd60 + 0a90ae7 commit 5d3d827
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pycomlink/processing/baseline.py
Expand Up @@ -43,7 +43,7 @@ def baseline_constant(trsl, wet, n_average_last_dry=1):

return _numba_baseline_constant(
trsl=np.asarray(trsl, dtype=np.float64),
wet=np.asarray(wet, dtype=np.bool),
wet=np.asarray(wet, dtype=bool),
n_average_last_dry=n_average_last_dry,
)

Expand Down
2 changes: 1 addition & 1 deletion pycomlink/processing/blackout_gap_detection.py
Expand Up @@ -53,7 +53,7 @@ def created_blackout_gap_mask_from_start_end_markers(rsl, gap_start, gap_end):
"""

mask = np.zeros(rsl.shape, dtype=np.bool_)
mask = np.zeros(rsl.shape, dtype=bool)
in_blackout_gap = False
for i in range(len(rsl)):
if gap_start[i] == True:
Expand Down
2 changes: 1 addition & 1 deletion pycomlink/processing/wet_dry/stft.py
Expand Up @@ -182,7 +182,7 @@ def stft_classification(
P_sum_diff = P_norm_low / N_f_divide_low - P_norm_high / N_f_divide_high

nan_index = np.isnan(P_sum_diff)
wet = np.zeros_like(P_sum_diff, dtype=np.bool)
wet = np.zeros_like(P_sum_diff, dtype=bool)
wet[~nan_index] = P_sum_diff[~nan_index] > threshold

info = {
Expand Down

0 comments on commit 5d3d827

Please sign in to comment.