From 1dc4623ebd28559c70eda2f324cdc191cd0e551c Mon Sep 17 00:00:00 2001
From: pcain <pcain@usgs.gov>
Date: Wed, 13 Oct 2021 16:59:41 -0600
Subject: [PATCH] align mseed to requested start/end time

---
 geomagio/edge/MiniSeedFactory.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/geomagio/edge/MiniSeedFactory.py b/geomagio/edge/MiniSeedFactory.py
index 83011d608..bd2feb81d 100644
--- a/geomagio/edge/MiniSeedFactory.py
+++ b/geomagio/edge/MiniSeedFactory.py
@@ -362,6 +362,9 @@ class MiniSeedFactory(TimeseriesFactory):
             sncl.network, sncl.station, sncl.location, sncl.channel, starttime, endtime
         )
         data.merge()
+        TimeseriesUtility.pad_and_trim_trace(
+            trace=data[0], starttime=starttime, endtime=endtime
+        )
         if data.count() == 0 and add_empty_channels:
             data += self._get_empty_trace(
                 starttime=starttime,
-- 
GitLab