Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gregory Ashton
PyFstat
Commits
e37852e5
Commit
e37852e5
authored
8 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Adds ability to specify different priors for each tglitch
parent
901d6ad9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/semi_coherent_twoglitch_search.py
+7
-4
7 additions, 4 deletions
examples/semi_coherent_twoglitch_search.py
pyfstat.py
+4
-0
4 additions, 0 deletions
pyfstat.py
with
11 additions
and
4 deletions
examples/semi_coherent_twoglitch_search.py
+
7
−
4
View file @
e37852e5
...
...
@@ -19,12 +19,15 @@ theta_prior = {'F0': {'type': 'norm', 'loc': F0, 'scale': abs(1e-6*F0)},
'
delta_F0
'
:
{
'
type
'
:
'
halfnorm
'
,
'
loc
'
:
0
,
'
scale
'
:
1e-7
*
F0
},
'
delta_F1
'
:
0
,
'
tglitch
'
:
{
'
type
'
:
'
unif
'
,
'
tglitch
_0
'
:
{
'
type
'
:
'
unif
'
,
'
lower
'
:
tstart
+
0.01
*
duration
,
'
upper
'
:
tstart
+
0.5
*
duration
},
'
tglitch_1
'
:
{
'
type
'
:
'
unif
'
,
'
lower
'
:
tstart
+
0.5
*
duration
,
'
upper
'
:
tstart
+
0.99
*
duration
},
}
nwalkers
=
10
0
nwalkers
=
5
0
nsteps
=
[
500
,
500
,
500
]
mcmc
=
pyfstat
.
MCMCGlitchSearch
(
...
...
This diff is collapsed.
Click to expand it.
pyfstat.py
+
4
−
0
View file @
e37852e5
...
...
@@ -1297,6 +1297,10 @@ _ sftfilepath: str
glitch_keys
=
[
'
delta_F0
'
,
'
delta_F1
'
,
'
tglitch
'
]
full_glitch_keys
=
list
(
np
.
array
(
[[
gk
]
*
self
.
nglitch
for
gk
in
glitch_keys
]).
flatten
())
if
'
tglitch_0
'
in
self
.
theta_prior
:
full_glitch_keys
[
-
self
.
nglitch
:]
=
[
'
tglitch_{}
'
.
format
(
i
)
for
i
in
range
(
self
.
nglitch
)]
full_theta_keys
=
[
'
F0
'
,
'
F1
'
,
'
F2
'
,
'
Alpha
'
,
'
Delta
'
]
+
full_glitch_keys
full_theta_keys_copy
=
copy
.
copy
(
full_theta_keys
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment