diff --git a/examples/gaussian_likelihood.ipynb b/examples/gaussian_likelihood.ipynb index f825dc0..9a7170a 100644 --- a/examples/gaussian_likelihood.ipynb +++ b/examples/gaussian_likelihood.ipynb @@ -74,7 +74,7 @@ " return ll+lp, ll_grad+lp_grad\n", " \n", " def lnpost(self, x):\n", - " return lnpost_grad(x)[0]\n", + " return self.lnpost_grad(x)[0]\n", " \n", " def hessian(self, x):\n", " return -np.eye(len(x))" diff --git a/examples/simple.ipynb b/examples/simple.ipynb index 983e2aa..2603d7d 100644 --- a/examples/simple.ipynb +++ b/examples/simple.ipynb @@ -23,7 +23,6 @@ "import numpy as np\n", "import matplotlib.pylab as plt\n", "import corner\n", - "import numpy as np\n", "import glob\n", "from PTMCMCSampler import PTMCMCSampler\n", "\n",