Commit 365bf803 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix sftfilenames and sftfilepath for multiple detectors

If there are multiple detectors, then multiple .sft files are generated.
This updates the attribute 'sftfilename' -> 'sftfilenames', a list of
those files while also updating 'sftpilpath' to a colon separated list
of the relevant sft files.
parent 0c858c7f
...@@ -940,10 +940,13 @@ class Writer(BaseSearchClass): ...@@ -940,10 +940,13 @@ class Writer(BaseSearchClass):
self.data_duration = self.maxStartTime - self.minStartTime self.data_duration = self.maxStartTime - self.minStartTime
numSFTs = int(float(self.data_duration) / self.Tsft) numSFTs = int(float(self.data_duration) / self.Tsft)
self.sftfilename = lalpulsar.OfficialSFTFilename( self.sftfilenames = [
'H', '1', numSFTs, self.Tsft, self.minStartTime, lalpulsar.OfficialSFTFilename(
self.data_duration, self.label) dets[0], dets[1], numSFTs, self.Tsft, self.minStartTime,
self.sftfilepath = '{}/{}'.format(self.outdir, self.sftfilename) self.data_duration, self.label)
for dets in self.detectors.split(',')]
self.sftfilepath = ';'.join([
'{}/{}'.format(self.outdir, fn) for fn in self.sftfilenames])
self.calculate_fmin_Band() self.calculate_fmin_Band()
def check_inputs(self): def check_inputs(self):
......
Supports Markdown
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