Skip to content

Commit

Permalink
sk_mask is all False when sk_filter is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
KshitijAggarwal committed Feb 3, 2021
1 parent 9651fd8 commit 311259c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions your/utils/rfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def sk_sg_filter(
)
mask[sk_mask] = True
elif spectral_kurtosis_sigma == 0:
sk_mask = np.zeros(data.shape[1], dtype=np.bool)
pass
else:
raise ValueError("spectral_kurtosis_sigma can't be negative")
Expand Down

0 comments on commit 311259c

Please sign in to comment.