Skip to content

Commit

Permalink
Merge pull request #49 from AaronDJohnson/fix_examples
Browse files Browse the repository at this point in the history
Fix errors in example notebooks
  • Loading branch information
vhaasteren authored Dec 6, 2023
2 parents 1304ba8 + 8ac88a4 commit f96abab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion examples/gaussian_likelihood.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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))"
Expand Down
1 change: 0 additions & 1 deletion examples/simple.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f96abab

Please sign in to comment.