Commit 656412bf authored by John Douglas Veitch's avatar John Douglas Veitch

Merge branch 'fix-fixedburnin-for-hdf5' into 'master'

Fix fixedBurnin kwargs when processing a single HDF5 chain

See merge request lscsoft/lalsuite!511
parents 8ef10848 79969649
Pipeline #35509 passed with stages
in 74 minutes and 22 seconds
......@@ -260,7 +260,7 @@ def cbcBayesPostProc(
else:
fixedBurnins = fixedBurnins if fixedBurnins is not None else None
peparser = bppu.PEOutputParser('hdf5')
commonResultsObj=peparser.parse(data[0],deltaLogP=deltaLogP,fixedBurnin=fixedBurnins,nDownsample=nDownsample)
commonResultsObj=peparser.parse(data[0],deltaLogP=deltaLogP,fixedBurnins=fixedBurnins,nDownsample=nDownsample)
else:
peparser=bppu.PEOutputParser('common')
commonResultsObj=peparser.parse(open(data[0],'r'),info=[header,None])
......
......@@ -6100,7 +6100,7 @@ class PEOutputParser(object):
return samples
def _hdf5_to_pos(self, infile, fixedBurnins=None, deltaLogP=None, nDownsample=None, tablename=None, **kwargs):
samples = self._hdf5_to_table(infile, fixedBurnins=fixedBurnins, deltaLogP=deltaLogP, nDownsample=nDownsample, tablename=tablename, **kwargs)
samples = self._hdf5_to_table(infile, fixedBurnin=fixedBurnins, deltaLogP=deltaLogP, nDownsample=nDownsample, tablename=tablename, **kwargs)
return samples.colnames, as_array(samples).view(float).reshape(-1, len(samples.columns))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment