From bb9b59041fc722eed03fb3e8dbda29d3231fe480 Mon Sep 17 00:00:00 2001
From: Sylvia Biscoveanu <violinasb@yahoo.com>
Date: Mon, 18 Jun 2018 00:39:42 -0700
Subject: [PATCH] Add two extra seconds of data when reading from frame

---
 tupak/gw/detector.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tupak/gw/detector.py b/tupak/gw/detector.py
index 63569972a..48445afbf 100644
--- a/tupak/gw/detector.py
+++ b/tupak/gw/detector.py
@@ -501,7 +501,7 @@ class Interferometer(object):
         elif frame_file is not None:
             logging.info('Reading data from frame, {}.'.format(self.name))
             strain = tupak.gw.utils.read_frame_file(
-                frame_file, t1=epoch, t2=epoch + duration, channel=channel_name, resample=sampling_frequency)
+                frame_file, t1=epoch - 1, t2=epoch + duration + 1, channel=channel_name, resample=sampling_frequency)
             frequency_domain_strain, frequencies = tupak.gw.utils.process_strain_data(strain, **kwargs)
             if overwrite_psd:
                 self.power_spectral_density = PowerSpectralDensity(
-- 
GitLab