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

Detection trim #582

Merged
merged 6 commits into from
Jul 26, 2024
Merged

Detection trim #582

merged 6 commits into from
Jul 26, 2024

Conversation

calum-chamberlain
Copy link
Member

@calum-chamberlain calum-chamberlain commented Jul 25, 2024

What does this PR do?

As noted in #573 - lag-calc fails to run sometimes when slicing to particular lengths. This happens when the pick.time - pre_pick does not fall on a sample. Obspy will often slice to give a shorter window than needed. This PR now slices starting at the nearest sample before the pick.time - pre_pick to ensure that data are trimmed to within one sample of the requested length.

Why was it initiated? Any relevant Issues?

#573

PR Checklist

  • develop base branch selected?
  • This PR is not directly related to an existing issue (which has no PR yet).
  • All tests still pass.
  • Any new features or fixed regressions are be covered via new tests.
  • Any new or changed features have are fully documented.
  • Significant changes have been added to CHANGES.md.
  • First time contributors have added your name to CONTRIBUTORS.md.

@calum-chamberlain calum-chamberlain merged commit d9d826d into develop Jul 26, 2024
20 checks passed
@calum-chamberlain calum-chamberlain deleted the detection-trim branch July 26, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant