If there are NaNs in the posterior, continue onward but print a message
NaNs in the posterior are generted by the conversion function (say when the prior is fixed to zero for the spins). This causes the plot_marginals to fail. Instead, a message will be printed, but the script will otherwise continue.
Showing with 8 additions and 2 deletions