fully_coherent_search_using_MCMC_on_glitching_data.py 920 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
from pyfstat import MCMCSearch

F0 = 30.0
F1 = -1e-10
F2 = 0
Alpha = 5e-3
Delta = 6e-2
tref = 362750407.0

tstart = 1000000000
duration = 100*86400
12
tend = tstart + duration
13

14
15
theta_prior = {'F0': {'type': 'unif', 'lower': F0-1e-4, 'upper': F0+1e-4},
               'F1': {'type': 'unif', 'lower': F1*(1+1e-3), 'upper': F1*(1-1e-3)},
16
17
18
19
20
               'F2': F2,
               'Alpha': Alpha,
               'Delta': Delta
               }

21
22
23
24
ntemps = 2
log10temperature_min = -0.01
nwalkers = 100
nsteps = [5000, 10000]
25

26
mcmc = MCMCSearch('fully_coherent_search_using_MCMC_on_glitching_data', 'data',
27
                  sftfilepath='data/*_glitch*.sft',
28
                  theta_prior=theta_prior, tref=tref, tstart=tstart, tend=tend,
29
                  nsteps=nsteps, nwalkers=nwalkers, ntemps=ntemps,
30
                  log10temperature_min=log10temperature_min)
31
32
33
mcmc.run()
mcmc.plot_corner(add_prior=True)
mcmc.print_summary()