diff --git a/pyfstat/core.py b/pyfstat/core.py index cd03cb79be0f6a3c4b6093e3a494a4846cfe785d..eaa0ff44f80bc0d98afe1d49d48f8471f8d8ecbb 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 """