Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replacing np.bool with bool #124

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pycomlink/processing/baseline.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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