Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
5466f0c9
Commit
5466f0c9
authored
Jul 17, 2017
by
Gregory Ashton
Browse files
Merge branch 'cherry-pick-
365bf803
' into 'master'
Fix sftfilenames and sftfilepath for multiple detectors See merge request
!5
parents
e74d5b38
d1c55605
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
5466f0c9
...
...
@@ -940,10 +940,13 @@ class Writer(BaseSearchClass):
self
.
data_duration
=
self
.
maxStartTime
-
self
.
minStartTime
numSFTs
=
int
(
float
(
self
.
data_duration
)
/
self
.
Tsft
)
self
.
sftfilename
=
lalpulsar
.
OfficialSFTFilename
(
'H'
,
'1'
,
numSFTs
,
self
.
Tsft
,
self
.
minStartTime
,
self
.
data_duration
,
self
.
label
)
self
.
sftfilepath
=
'{}/{}'
.
format
(
self
.
outdir
,
self
.
sftfilename
)
self
.
sftfilenames
=
[
lalpulsar
.
OfficialSFTFilename
(
dets
[
0
],
dets
[
1
],
numSFTs
,
self
.
Tsft
,
self
.
minStartTime
,
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
()
def
check_inputs
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment