Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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 """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment