-
Notifications
You must be signed in to change notification settings - Fork 73
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
Adding options for disabling normalization and noise label for ProbabilisticLabeller, and checking picks for AddGap and ChannelDropout. #222
Conversation
PickLabeller class to determine whether a noise label will be constructed. If the noise_column is false, no noise label will be created, and labels will not be normalized
Thanks for the PR! I might take some days until I get around to review it. |
generated by the `AddGap` augmentation
Hi @yetinam, I also added some checks for the output of AddGap() and ChannelDropout(), see #223. If the waveform segment containing a phase is zeroed out after a gap is added, the corresponding phase arrival will be set to NaN. If all channels are zeros after dropping some channels, all arrival samples will be set to NaN. |
Thanks for the addition. Please make the zeroing from ChannelDropout optional as well. I'll put an explanation in the issue thread. Could you also add two short unit tests for the new changes? |
I'd suggest using np.allclose instead of np.isclose(np.sum()) |
waveforms. Set the threshold for determining whether a pick is within a gap.
Thank you for your feedback. I just add an option I will add two unit tests tomorrow or in a few days. |
- test_channel_dropout_with_picks_in_gap - test_add_gap_with_picks_in_gap
Hi @yetinam, in the latest commit, I added some code to deal with the case of multiple windows, and two unit tests for AddGap() and ChannelDropout in the situation where waveform traces containing picks are zeroed out. |
- renamed parameter to avoid abbreviation - parametrized probabilistic pick labeller test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've now reviewed the PR. Looks good and the test are very comprehensive! Thanks for the addition. I've added some very minor changes and will merge the PR once the CI passes.
Once again, thanks a lot for your contribution!
Changes
SupervisedLabeller::_check_labels()
functiontest_probabilistic_pick_labeller()
A visual example