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
5216d198
Commit
5216d198
authored
Dec 08, 2017
by
Gregory Ashton
Browse files
Remove obsolete subtractions and style files from examples
parent
8d8c3853
Changes
7
Hide whitespace changes
Inline
Side-by-side
examples/fully_coherent_search_using_MCMC.py
View file @
5216d198
...
...
@@ -47,8 +47,8 @@ theta_prior = {'F0': {'type': 'unif',
'Delta'
:
Delta
}
ntemps
=
1
log10beta_min
=
-
1
ntemps
=
2
log10beta_min
=
-
0.5
nwalkers
=
100
nsteps
=
[
300
,
300
]
...
...
@@ -57,6 +57,9 @@ mcmc = pyfstat.MCMCSearch(
sftfilepattern
=
'{}/*{}*sft'
.
format
(
outdir
,
label
),
theta_prior
=
theta_prior
,
tref
=
tref
,
minStartTime
=
tstart
,
maxStartTime
=
tend
,
nsteps
=
nsteps
,
nwalkers
=
nwalkers
,
ntemps
=
ntemps
,
log10beta_min
=
log10beta_min
)
mcmc
.
run
(
subtractions
=
[
F0
,
F1
])
mcmc
.
transform_dictionary
=
dict
(
F0
=
dict
(
subtractor
=
F0
,
symbol
=
'$f-f^\mathrm{s}$'
),
F1
=
dict
(
subtractor
=
F1
,
symbol
=
'$\dot{f}-\dot{f}^\mathrm{s}$'
))
mcmc
.
run
()
mcmc
.
plot_corner
(
add_prior
=
True
)
mcmc
.
print_summary
()
examples/grid_examples/grid_F0F1F2.py
View file @
5216d198
...
...
@@ -3,8 +3,6 @@ import numpy as np
import
matplotlib.pyplot
as
plt
from
projection_matrix
import
projection_matrix
plt
.
style
.
use
(
'paper'
)
F0
=
30.0
F1
=
1e-10
F2
=
0
...
...
examples/grid_examples/grided_frequency_search.py
View file @
5216d198
...
...
@@ -2,8 +2,6 @@ import pyfstat
import
numpy
as
np
import
matplotlib.pyplot
as
plt
plt
.
style
.
use
(
'paper'
)
F0
=
30.0
F1
=
0
F2
=
0
...
...
examples/other_examples/twoF_cumulative.py
View file @
5216d198
...
...
@@ -56,7 +56,7 @@ mcmc = pyfstat.MCMCSearch(
sftfilepattern
=
'data/*'
+
data_label
+
'*sft'
,
theta_prior
=
theta_prior
,
tref
=
tref
,
minStartTime
=
tstart
,
maxStartTime
=
tend
,
nsteps
=
nsteps
,
nwalkers
=
nwalkers
,
ntemps
=
ntemps
,
log10beta_min
=
log10beta_min
)
mcmc
.
run
(
context
=
'paper'
,
subtractions
=
[
30
,
-
1e-10
]
)
mcmc
.
run
()
mcmc
.
plot_corner
(
add_prior
=
True
)
mcmc
.
print_summary
()
...
...
examples/semi_coherent_directed_follow_up.py
View file @
5216d198
...
...
@@ -2,8 +2,6 @@ import pyfstat
import
numpy
as
np
import
matplotlib.pyplot
as
plt
plt
.
style
.
use
(
'./paper-style.mplstyle'
)
F0
=
30.0
F1
=
-
1e-10
F2
=
0
...
...
@@ -63,8 +61,8 @@ NstarMax = 1000
Nsegs0
=
100
fig
,
axes
=
plt
.
subplots
(
nrows
=
2
,
figsize
=
(
3.4
,
3.5
))
fig
,
axes
=
mcmc
.
run
(
NstarMax
=
NstarMax
,
Nsegs0
=
Nsegs0
,
subtractions
=
[
F0
,
F1
],
labelpad
=
0.01
,
plot_det_stat
=
False
,
return_fig
=
True
,
context
=
'paper'
,
fig
=
fig
,
NstarMax
=
NstarMax
,
Nsegs0
=
Nsegs0
,
labelpad
=
0.01
,
plot_det_stat
=
False
,
return_fig
=
True
,
fig
=
fig
,
axes
=
axes
)
for
ax
in
axes
:
ax
.
grid
()
...
...
examples/semi_coherent_search_using_MCMC.py
View file @
5216d198
...
...
@@ -58,6 +58,9 @@ mcmc = pyfstat.MCMCSemiCoherentSearch(
theta_prior
=
theta_prior
,
tref
=
tref
,
minStartTime
=
tstart
,
maxStartTime
=
tend
,
nsteps
=
nsteps
,
nwalkers
=
nwalkers
,
ntemps
=
ntemps
,
log10beta_min
=
log10beta_min
)
mcmc
.
transform_dictionary
=
dict
(
F0
=
dict
(
subtractor
=
F0
,
symbol
=
'$f-f^\mathrm{s}$'
),
F1
=
dict
(
subtractor
=
F1
,
symbol
=
'$\dot{f}-\dot{f}^\mathrm{s}$'
))
mcmc
.
run
()
mcmc
.
plot_corner
(
add_prior
=
True
)
mcmc
.
print_summary
()
examples/using_initialisation.py
View file @
5216d198
...
...
@@ -59,6 +59,6 @@ mcmc = pyfstat.MCMCSearch(
nsteps
=
nsteps
,
nwalkers
=
nwalkers
,
ntemps
=
ntemps
,
log10beta_min
=
log10beta_min
)
mcmc
.
setup_initialisation
(
100
,
scatter_val
=
1e-10
)
mcmc
.
run
(
subtractions
=
[
F0
,
F1
]
)
mcmc
.
run
()
mcmc
.
plot_corner
(
add_prior
=
True
)
mcmc
.
print_summary
()
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