cbcBayesPostProc.py reading of coinc.xml from gracedb is broken
I've done these tests in the ~cbc/pe/lalinference_o2.sh
on ldas-pcdev6
at CIT.
When running cbcBayesPostProc.py
on an event which has been initiated through a call to GraceDB the interpreting of the coinc.xml
appears to break the code with the following errors
Traceback (most recent call last):
File "/home/cbc/pe/local/bin/cbcBayesPostProc.py", line 1388, in <module>
greedy=not(opts.kdecredibleregions)
File "/home/cbc/pe/local/bin/cbcBayesPostProc.py", line 433, in cbcBayesPostProc
pos.extend_posterior()
File "/home/cbc/pe/local/lib64/python2.7/site-packages/pylal/bayespputils.py", line 944, in extend_posterior
pos.append_mapping(('m1','m2'),q2ms,(mchirp_name,q_name))
File "/home/cbc/pe/local/lib64/python2.7/site-packages/pylal/bayespputils.py", line 1556, in append_mapping
oldvals = [param[IFO] for param in old_trigs]
TypeError: 'instancemethod' object has no attribute '__getitem__'
This behaviour is not seen if the following flag is removed from the call to cbcBayesPostProc.py
--trig /home/carl-johan.haster/projects/O2/G273419_gstlal_2dec/NeilFrames/GOOD_C02_NeilFrames/TEST_LALInfPSD_32s/lalinferencemcmc/IMRPhenomPv2pseudoFourPN/coinc.xml
I haven't been able to verify if the cause of these errors are from within cbcBayesPostProc.py
or bayespputils.py
, or if it's caused by the format of the coinc.xml
used in this instance.
I've been able to repeat this error with other (recently created) GraceDB events, and can also remember to successfully running cbcBayesPostProc.py
on a GraceDB event some month or so ago.