Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Gregory Ashton
PyFstat
Commits
8d979b1b
Commit
8d979b1b
authored
Feb 08, 2018
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds capability to give a unique tempory filename
parent
f93e27b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pyfstat/core.py
pyfstat/core.py
+1
-2
pyfstat/make_sfts.py
pyfstat/make_sfts.py
+2
-1
No files found.
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
Markdown
is supported
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