Add an option for AddGap and ChannelDropout to modify label directly #229
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In pull request #222, only the metadata is changed if there is any pick in a gap.
It may be helpful to add an option to change labels directly. For example. when one waveform is staked on another (e.g. benchmark/augmentations.py) to generate a new trace, the metadata is kept unchanged and only the label is changed. In this case, adding the gap to the labels directly is a better choice.
label_keys
andnoise_id
toAddGap
andChannelDropout
test_channel_dropout_with_picks_in_gap
andtest_add_gap_to_waveform_and_labels
I forgot to pull your commit at the beginning, so I manually resolved the conflicts. I hope it didn't break the commits b253784 and 319d944