Commit 6328ccfa authored by Duncan Macleod's avatar Duncan Macleod
Browse files

lalinference: print plot failure reasons

in bayespputils
parent e9534053
Pipeline #103274 passed with stages
in 273 minutes and 53 seconds
......@@ -37,6 +37,7 @@ of the Bayesian parameter estimation codes.
#standard library imports
import os
import sys
import warnings
from math import cos,ceil,floor,sqrt,pi as pi_constant
from xml.dom import minidom
from operator import itemgetter
......@@ -7657,8 +7658,14 @@ def make_1d_table(html,legend,label,pos,pars,noacf,GreedyRes,onepdfdir,sampsdir,
oneDPDFParams={par_name:50}
try:
rbins,plotFig=plot_one_param_pdf(pos,oneDPDFParams,pdf,cdf,plotkde=False)
except:
print("Failed to produce plot for %s."%par_name)
except Exception as exc:
warnings.warn(
"failed to produce plot for {}: [{}] {}".format(
par_name,
type(exc).__name__,
str(exc),
),
)
continue
figname=par_name+'.png'
......
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