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
8d979b1b
Commit
8d979b1b
authored
Feb 08, 2018
by
Gregory Ashton
Browse files
Adds capability to give a unique tempory filename
parent
f93e27b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
8d979b1b
...
...
@@ -132,7 +132,7 @@ def _get_dictionary_from_lines(lines, comments, raise_error):
def
predict_fstat
(
h0
,
cosi
,
psi
,
Alpha
,
Delta
,
Freq
,
sftfilepattern
,
minStartTime
,
maxStartTime
,
IFO
=
None
,
assumeSqrtSX
=
None
,
**
kwargs
):
tempory_filename
=
'fs.tmp'
,
**
kwargs
):
""" Wrapper to lalapps_PredictFstat
Parameters
...
...
@@ -153,7 +153,6 @@ def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern,
The expectation and standard deviation of 2F
"""
tempory_filename
=
'fs.tmp'
cl_pfs
=
[]
cl_pfs
.
append
(
"lalapps_PredictFstat"
)
...
...
pyfstat/make_sfts.py
View file @
8d979b1b
...
...
@@ -259,7 +259,8 @@ transientTauDays = {:1.3f}\n""")
twoF_expected
,
twoF_sigma
=
predict_fstat
(
self
.
h0
,
self
.
cosi
,
self
.
psi
,
self
.
Alpha
,
self
.
Delta
,
self
.
F0
,
self
.
sftfilepath
,
self
.
minStartTime
,
self
.
maxStartTime
,
self
.
detectors
,
self
.
sqrtSX
)
# detectors OR IFO?
self
.
detectors
,
self
.
sqrtSX
,
tempory_filename
=
'{}.tmp'
.
format
(
self
.
label
))
# detectors OR IFO?
return
twoF_expected
...
...
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