Commit 44d4d0a9 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

Exceptions during plot ignored

parent c38dfe08
......@@ -136,7 +136,7 @@ class MCMC:
)
pairplot.savefig(self.outputdir+'/mcmc_iter_{0:03d}.png'.format(iter_nb))
plt.close(pairplot.fig)
except (np.linalg.linalg.LinAlgError, ValueError, AttributeError) as e:
except (np.linalg.linalg.LinAlgError, ValueError, AttributeError, UnboundLocalError) as e:
# when data doesn't vary enough on a dimension, it is impossible to generate the pareto density
# and an error is triggered. Here, we ignore this error.
pass
......
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