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
e65bca6f
Commit
e65bca6f
authored
Oct 21, 2016
by
Gregory Ashton
Browse files
Removes erroneous - in BSGL floor calculation
parent
f89133bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
e65bca6f
...
@@ -310,7 +310,7 @@ class ComputeFstat(object):
...
@@ -310,7 +310,7 @@ class ComputeFstat(object):
if
self
.
BSGL
:
if
self
.
BSGL
:
if
len
(
names
)
<
2
:
if
len
(
names
)
<
2
:
raise
ValueError
(
"Can't use BSGL with single detector data"
)
raise
ValueError
(
"Can't use BSGL with single detector data"
)
logging
.
info
(
'Initialising BSGL with prefactor {:2.2f} and floor'
logging
.
info
(
'Initialising BSGL with prefactor {:2.2f} and floor
'
'{:2.2f}'
.
format
(
self
.
BSGL_PREFACTOR
,
self
.
BSGL_FLOOR
)
'{:2.2f}'
.
format
(
self
.
BSGL_PREFACTOR
,
self
.
BSGL_FLOOR
)
)
)
# Tuning parameters - to be reviewed
# Tuning parameters - to be reviewed
...
@@ -368,8 +368,8 @@ class ComputeFstat(object):
...
@@ -368,8 +368,8 @@ class ComputeFstat(object):
self
.
twoFX
[
1
]
=
self
.
FstatResults
.
twoFPerDet
(
1
)
self
.
twoFX
[
1
]
=
self
.
FstatResults
.
twoFPerDet
(
1
)
BSGL
=
lalpulsar
.
ComputeBSGL
(
twoF
,
self
.
twoFX
,
BSGL
=
lalpulsar
.
ComputeBSGL
(
twoF
,
self
.
twoFX
,
self
.
BSGLSetup
)
self
.
BSGLSetup
)
if
self
.
BSGL_FLOOR
and
BSGL
<
self
.
BSGL_FLOOR
:
if
self
.
BSGL_FLOOR
is
not
None
and
BSGL
<
self
.
BSGL_FLOOR
:
return
-
self
.
BSGL_FLOOR
return
self
.
BSGL_FLOOR
else
:
else
:
return
self
.
BSGL_PREFACTOR
*
BSGL
/
np
.
log10
(
np
.
exp
(
1
))
return
self
.
BSGL_PREFACTOR
*
BSGL
/
np
.
log10
(
np
.
exp
(
1
))
...
...
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