Skip to content

Commit

Permalink
Merge pull request #39 from gw-odw/Tutorial_3_1_parenthesis_fix
Browse files Browse the repository at this point in the history
Parenthesis fix in the code
  • Loading branch information
GregoryAshton authored Jun 6, 2023
2 parents 6373071 + 60c18b8 commit 52bcf58
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
"def log_likelihood_Ms(time, yobs, freq, alpha, sigma=0.1):\n",
" prediction = model_Ms(time, freq, alpha)\n",
" res = yobs - prediction \n",
" logl = -0.5 * ((res/sigma)**2) + np.log(2 * np.pi * sigma**2)\n",
" logl = -0.5 * (((res/sigma)**2) + np.log(2 * np.pi * sigma**2))\n",
" # Sum over all log_likelihoods (axis=0)\n",
" return np.sum(logl, axis=0)"
]
Expand Down Expand Up @@ -1174,7 +1174,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 52bcf58

Please sign in to comment.