From 0cacb374ebcfb7190cc1e9233ec8dfafc726455e Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Mon, 30 Jan 2017 10:36:07 +0100
Subject: [PATCH] More get list of sfts to to the base search class

---
 pyfstat/core.py | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/pyfstat/core.py b/pyfstat/core.py
index cd03cb7..eaa0ff4 100755
--- a/pyfstat/core.py
+++ b/pyfstat/core.py
@@ -132,6 +132,14 @@ class BaseSearchClass(object):
                     self.maxStartTime)
         subprocess.call([cmd], shell=True)
 
+    def get_list_of_matching_sfts(self):
+        matches = glob.glob(self.sftfilepath)
+        if len(matches) > 0:
+            return matches
+        else:
+            raise IOError('No sfts found matching {}'.format(
+                self.sftfilepath))
+
 
 class ComputeFstat(object):
     """ Base class providing interface to `lalpulsar.ComputeFstat` """
@@ -220,14 +228,6 @@ class ComputeFstat(object):
                 int(SFT_timestamps[-1])), shell=True).rstrip('\n')))
         self.SFTCatalog = SFTCatalog
 
-    def get_list_of_matching_sfts(self):
-        matches = glob.glob(self.sftfilepath)
-        if len(matches) > 0:
-            return matches
-        else:
-            raise IOError('No sfts found matching {}'.format(
-                self.sftfilepath))
-
     def init_computefstatistic_single_point(self):
         """ Initilisation step of run_computefstatistic for a single point """
 
-- 
GitLab