Commit 0cacb374 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

More get list of sfts to to the base search class

parent fc02e97b
......@@ -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 """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment