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
22b46344
Commit
22b46344
authored
Nov 23, 2016
by
Gregory Ashton
Browse files
Improve logging info
parent
f4c5218b
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat.py
View file @
22b46344
...
...
@@ -2174,19 +2174,23 @@ class MCMCFollowUpSearch(MCMCSemiCoherentSearch):
DeltaDelta
=
self
.
get_width_from_prior
(
self
.
theta_prior
,
'Delta'
)
DeltaMid
=
self
.
get_mid_from_prior
(
self
.
theta_prior
,
'Delta'
)
DeltaOmega
=
np
.
sin
(
DeltaMid
)
*
DeltaDelta
*
DeltaAlpha
logging
.
info
(
'Search over Alpha and Delta'
)
else
:
logging
.
info
(
'No sky search requested'
)
DeltaOmega
=
0
if
'F0'
in
self
.
theta_keys
:
DeltaF0
=
self
.
get_width_from_prior
(
self
.
theta_prior
,
'F0'
)
else
:
raise
ValueError
(
'
You are searching over F0?
'
)
raise
ValueError
(
"
You are
n't
searching over F0?
"
)
DeltaFs
=
[
DeltaF0
]
if
'F1'
in
self
.
theta_keys
:
DeltaF1
=
self
.
get_width_from_prior
(
self
.
theta_prior
,
'F1'
)
DeltaFs
.
append
(
DeltaF1
)
if
'F2'
in
self
.
theta_keys
:
DeltaF2
=
self
.
get_width_from_prior
(
self
.
theta_prior
,
'F2'
)
DeltaFs
.
append
(
DeltaF2
)
if
'F2'
in
self
.
theta_keys
:
DeltaF2
=
self
.
get_width_from_prior
(
self
.
theta_prior
,
'F2'
)
DeltaFs
.
append
(
DeltaF2
)
logging
.
info
(
'Searching over Frequency and {} spin-down components'
.
format
(
len
(
DeltaFs
)
-
1
))
if
type
(
self
.
theta_prior
[
'F0'
])
==
dict
:
fiducial_freq
=
self
.
get_mid_from_prior
(
self
.
theta_prior
,
'F0'
)
...
...
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