Package pylal :: Module bayespputils :: Class PEOutputParser
[hide private]
[frames] | no frames]

Class PEOutputParser

source code

object --+
         |
        PEOutputParser

A parser for the output of Bayesian parameter estimation codes.

TODO: Will be abstract class when LDG moves over to Python >2.6, inherited by each method .

Instance Methods [hide private]
 
__init__(self, inputtype)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
parse(self, files, **kwargs)
Parse files.
source code
 
_infmcmc_to_pos(self, files, outdir=None, deltaLogP=None, fixedBurnins=None, nDownsample=None, oldMassConvention=False, **kwargs)
Parser for lalinference_mcmcmpi output.
source code
 
_infmcmc_output_posterior_samples(self, files, runfile, outfile, logPThreshold, fixedBurnins, nskips=None, oldMassConvention=False)
Concatenate all the samples from the given files into outfile.
source code
 
_swaplabel12(self, label) source code
 
_find_max_logP(self, files)
Given a list of files, reads them, finding the maximum log(post)
source code
 
_find_ndownsample(self, files, logPthreshold, fixedBurnins, nDownsample)
Given a list of files, threshold value, and a desired number of outputs posterior samples, return the skip number to achieve the desired number of posterior samples.
source code
 
_find_infmcmc_f_ref(self, runInfo)
Searches through header to determine reference frequency of waveforms.
source code
 
_find_infmcmc_f_lower(self, runInfo)
Searches through header to determine starting frequency of waveforms.
source code
 
_clear_infmcmc_header(self, infile)
Reads lalinference_mcmcmpi file given, returning the run info and common output header information.
source code
 
_mcmc_burnin_to_pos(self, files, spin=False, deltaLogP=None)
Parser for SPINspiral output .
source code
 
_ns_to_pos(self, files, Nlive=None, Npost=None, posfilename='posterior_samples.dat')
Parser for nested sampling output.
source code
 
_followupmcmc_to_pos(self, files)
Parser for followupMCMC output.
source code
 
_multinest_to_pos(self, files)
Parser for MultiNest output.
source code
 
_xml_to_pos(self, infile)
Parser for VOTable XML Using
source code
 
_VOTTABLE2pos(self, table)
Parser for a VOT TABLE element with FIELDs and TABLEDATA elements
source code
 
_hdf5s_to_pos(self, infiles, fixedBurnins=None, deltaLogP=None, nDownsample=None, tablename=None, **kwargs) source code
 
_hdf5_to_table(self, infile, deltaLogP=None, fixedBurnin=None, nDownsample=None, multiple_chains=False, tablename=None, **kwargs)
Parse a HDF5 file and return an array of posterior samples ad list of parameter names.
source code
 
_hdf5_to_pos(self, infile, fixedBurnins=None, deltaLogP=None, nDownsample=None, tablename=None, **kwargs) source code
 
_common_to_pos(self, infile, info=[None,None])
Parse a file in the 'common format' and return an array of posterior samples and list of parameter names.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, inputtype)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_infmcmc_output_posterior_samples(self, files, runfile, outfile, logPThreshold, fixedBurnins, nskips=None, oldMassConvention=False)

source code 

Concatenate all the samples from the given files into outfile. For each file, only those samples past the point where the log(post) > logPThreshold are concatenated after eliminating fixedBurnin.

_find_infmcmc_f_ref(self, runInfo)

source code 

Searches through header to determine reference frequency of waveforms. If no fRef given, calls _find_infmcmc_f_lower to get the lower frequency bound, which is the default reference frequency for LALInference.

_find_infmcmc_f_lower(self, runInfo)

source code 

Searches through header to determine starting frequency of waveforms. Assumes same for all IFOs.

_ns_to_pos(self, files, Nlive=None, Npost=None, posfilename='posterior_samples.dat')

source code 

Parser for nested sampling output. files : list of input NS files Nlive : Number of live points Npost : Desired number of posterior samples posfilename : Posterior output file name (default: 'posterior_samples.dat')

_hdf5_to_table(self, infile, deltaLogP=None, fixedBurnin=None, nDownsample=None, multiple_chains=False, tablename=None, **kwargs)

source code 

Parse a HDF5 file and return an array of posterior samples ad list of parameter names. Equivalent to '_common_to_pos' and work in progress.

_common_to_pos(self, infile, info=[None,None])

source code 

Parse a file in the 'common format' and return an array of posterior samples and list of parameter names. Will apply inverse functions to columns with names containing sin,cos,log.