It looks like samplerKwargs["ndim"] = ap.theta.shape[-1] in mcmcUtils.py causes an error if ndim=1 since theta is stored as self.theta = np.array(theta).squeeze() in line 87 of approx.py which changes the shape of theta from (nsamples,1) to (nsamples,). So for 1D, ndim is being set to samplerKwargs["ndim"]=nsamples, not samplerKwargs["ndim"]=1.
It looks like
samplerKwargs["ndim"] = ap.theta.shape[-1]
in mcmcUtils.py causes an error ifndim=1
since theta is stored asself.theta = np.array(theta).squeeze()
in line 87 of approx.py which changes the shape of theta from (nsamples,1) to (nsamples,). So for 1D, ndim is being set tosamplerKwargs["ndim"]=nsamples
, notsamplerKwargs["ndim"]=1
.