Closed darren-tpk closed 2 years ago
At the moment I can exclude S picks in my event pair before feeding them into relative_magnitude as a short term fix, but it still holds that the 'use_s_picks' argument does not work as intended.
Thanks for this note @darren-tpk - this sounds like this shouldn't be the expected behavior. It sounds like there needs to be a change in _get_pick_for_station()
. I'm not going to have time in the next couple of months to work on this, but it would be great to see a pull request that fixes this.
Thanks again.
Describe the bug relative_magnitude() will incorrectly output the delta mag of an S-picked station in the dictionary output IF there exists a P and S pick on the same station in event.picks, despite setting use_s_picks to False.
To Reproduce
Expected behavior
Desktop (please complete the following information):
Additional context I am trying to get relative_magnitude to work - when computing the weighted delta_mag using weight_by_correlations, I noticed that the delta_mag of a S-picked channel is still included despite setting use_s_picks to False.