Skip to content
Snippets Groups Projects
  1. Oct 26, 2020
  2. Oct 07, 2020
  3. Jun 02, 2020
    • Erin (Josh) Rigler's avatar
      TimeseriesUtility.pad_and_trim_trace trim fix · 1f6bc71f
      Erin (Josh) Rigler authored
      Applied the same fix to the trim logic in method
      TimeseriesUtility.pad_and_trim_trace() as previously applied
      to the pad logic. Added a unit test that would have failed
      using the old logic.
      1f6bc71f
    • Erin (Josh) Rigler's avatar
      Pass unit tests again · 09ad155f
      Erin (Josh) Rigler authored
      The first attempt to fix TimeseriesUtility.pad_and_trim_trace() broke
      a unit test. I'm not sure I agree with what the unit test defined as
      passing, but I do understand the logic. This now satisfies the logic
      of the unit test(s), while still fixing the floating point precision
      problem to the default resolution of UTCDateTime objects (that is,
      1e-6 or microseconds)
      09ad155f
  4. Jun 01, 2020
    • Erin (Josh) Rigler's avatar
      Fix TimeseriesUtility.pad_and_trim_trace · 3703dda2
      Erin (Josh) Rigler authored
      I ran into a floating point precision issue when padding a trace out
      to the requested starttime when the data block returned by the Edge
      miniseed factory (but this is not an Edge issue, per se) was less
      than what was requested.
      
      My solution was to use `round()` instead of `int()` when converting
      a time differential to a discrete number of samples. I'm confident
      this is a robust fix for padding. I'm not sure if it also the proper
      approach to the trimming, which seems to be a bit more sophisticated
      in that is uses the `ceil()` method. In any case, I request some
      feedback before merging this deceptively simple PR.
      3703dda2
  5. Apr 29, 2020
  6. Mar 06, 2020
  7. Mar 03, 2020
  8. Feb 20, 2020
  9. Dec 16, 2019
  10. Dec 05, 2019
  11. Nov 09, 2018
  12. Aug 22, 2018
  13. Jul 30, 2018
  14. Jul 26, 2018
  15. Jun 28, 2018
  16. Jan 23, 2017
  17. Jan 21, 2017
  18. May 20, 2016
  19. Jan 27, 2016
Loading