LALPulsar  6.1.0.1-fe68b98
test_flat_prior Namespace Reference

Variables

int exit_code = 0
 
string execu = "./lalpulsar_parameter_estimation_nested"
 
string parfile
 
string parf = "test.par"
 
 f = open(parf, "w")
 
string datafile = "data.txt.gz"
 
 ds = np.zeros((1440, 3))
 
 fmt
 
list h0uls = [1e-22, 1e-21, 1e-20, 1e-19, 1e-18, 1e-17]
 
string dets = "H1"
 
string Nlive = "5000"
 
string Nmcmcinitial = "0"
 
string outfile = "test.hdf"
 
string outfile_SNR = "test_SNR"
 
string outfile_Znoise = "test_Znoise"
 
string priorsamples = Nlive
 
 flush
 
string priorfile
 
string priorf = "test.prior"
 
tuple commandline
 
 shell
 
 a = f["lalinference"]
 
 h0samps = a["lalinference_nest"]["nested_samples"]["H0"][:]
 
 bins
 
 range
 
 density
 
 nc = np.cumsum(n) * (nedges[1] - nedges[0])
 
 stat
 
 p
 
 fig
 
 ax
 
 cumulative
 
 histtype
 
 alpha
 

Variable Documentation

◆ exit_code

int test_flat_prior.exit_code = 0

Definition at line 18 of file test_flat_prior.py.

◆ execu

string test_flat_prior.execu = "./lalpulsar_parameter_estimation_nested"

Definition at line 20 of file test_flat_prior.py.

◆ parfile

string test_flat_prior.parfile
Initial value:
1 = """\
2 PSRJ J0000+0000
3 RAJ 00:00:00.0
4 DECJ 00:00:00.0
5 F0 100
6 PEPOCH 54000"""

Definition at line 29 of file test_flat_prior.py.

◆ parf

string test_flat_prior.parf = "test.par"

Definition at line 36 of file test_flat_prior.py.

◆ f

test_flat_prior.f = open(parf, "w")

Definition at line 37 of file test_flat_prior.py.

◆ datafile

test_flat_prior.datafile = "data.txt.gz"

Definition at line 42 of file test_flat_prior.py.

◆ ds

test_flat_prior.ds = np.zeros((1440, 3))

Definition at line 43 of file test_flat_prior.py.

◆ fmt

test_flat_prior.fmt

Definition at line 48 of file test_flat_prior.py.

◆ h0uls

list test_flat_prior.h0uls = [1e-22, 1e-21, 1e-20, 1e-19, 1e-18, 1e-17]

Definition at line 51 of file test_flat_prior.py.

◆ dets

string test_flat_prior.dets = "H1"

Definition at line 54 of file test_flat_prior.py.

◆ Nlive

string test_flat_prior.Nlive = "5000"

Definition at line 55 of file test_flat_prior.py.

◆ Nmcmcinitial

string test_flat_prior.Nmcmcinitial = "0"

Definition at line 56 of file test_flat_prior.py.

◆ outfile

string test_flat_prior.outfile = "test.hdf"

Definition at line 57 of file test_flat_prior.py.

◆ outfile_SNR

string test_flat_prior.outfile_SNR = "test_SNR"

Definition at line 58 of file test_flat_prior.py.

◆ outfile_Znoise

string test_flat_prior.outfile_Znoise = "test_Znoise"

Definition at line 59 of file test_flat_prior.py.

◆ priorsamples

string test_flat_prior.priorsamples = Nlive

Definition at line 60 of file test_flat_prior.py.

◆ flush

test_flat_prior.flush

Definition at line 63 of file test_flat_prior.py.

◆ priorfile

string test_flat_prior.priorfile
Initial value:
1 = """\
2 H0 uniform 0 %e
3 PHI0 uniform 0 %f
4 COSIOTA uniform -1 1
5 PSI uniform 0 %f""" % (
6  h0ul,
7  np.pi,
8  np.pi / 2.0,
9  )

Definition at line 66 of file test_flat_prior.py.

◆ priorf

string test_flat_prior.priorf = "test.prior"

Definition at line 76 of file test_flat_prior.py.

◆ commandline

test_flat_prior.commandline
Initial value:
1 = (
2  "%s --detectors %s --par-file %s --input-files %s --outfile %s --prior-file %s --Nlive %s --Nmcmcinitial %s --sampleprior %s"
3  % (
4  execu,
5  dets,
6  parf,
7  datafile,
8  outfile,
9  priorf,
10  Nlive,
11  Nmcmcinitial,
12  priorsamples,
13  )
14  )

Definition at line 82 of file test_flat_prior.py.

◆ shell

test_flat_prior.shell

Definition at line 97 of file test_flat_prior.py.

◆ a

test_flat_prior.a = f["lalinference"]

Definition at line 101 of file test_flat_prior.py.

◆ h0samps

test_flat_prior.h0samps = a["lalinference_nest"]["nested_samples"]["H0"][:]

Definition at line 102 of file test_flat_prior.py.

◆ bins

test_flat_prior.bins

Definition at line 105 of file test_flat_prior.py.

◆ range

test_flat_prior.range

Definition at line 105 of file test_flat_prior.py.

◆ density

test_flat_prior.density

Definition at line 105 of file test_flat_prior.py.

◆ nc

test_flat_prior.nc = np.cumsum(n) * (nedges[1] - nedges[0])

Definition at line 106 of file test_flat_prior.py.

◆ stat

test_flat_prior.stat

Definition at line 108 of file test_flat_prior.py.

◆ p

test_flat_prior.p

Definition at line 108 of file test_flat_prior.py.

◆ fig

test_flat_prior.fig

Definition at line 123 of file test_flat_prior.py.

◆ ax

test_flat_prior.ax

Definition at line 123 of file test_flat_prior.py.

◆ cumulative

test_flat_prior.cumulative

Definition at line 128 of file test_flat_prior.py.

◆ histtype

test_flat_prior.histtype

Definition at line 129 of file test_flat_prior.py.

◆ alpha

test_flat_prior.alpha

Definition at line 130 of file test_flat_prior.py.