From c10e63a299983e611957bc82c93fc9a98e543e2c Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 6 Dec 2023 10:00:27 -0800 Subject: [PATCH 1/2] add self. to class method --- examples/gaussian_likelihood.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))" From 8ac88a4fd08c5b5e93920af672ec53da198af859 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 6 Dec 2023 10:00:37 -0800 Subject: [PATCH 2/2] remove duplicate numpy import --- examples/simple.ipynb | 1 - 1 file changed, 1 deletion(-) 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",