cleaned up and fixed notebook as it wasn't actually working from fresh

This commit is contained in:
Guillaume Raffy 2022-03-10 18:34:26 +01:00
parent e487d92307
commit d6046e1b8a
1 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,7 @@
" dark = I - lens.reshape(1, len(lens)) * fluo.reshape(len(fluo), 1)\n", " dark = I - lens.reshape(1, len(lens)) * fluo.reshape(len(fluo), 1)\n",
" return dark, lens, fluo\n", " return dark, lens, fluo\n",
"\n", "\n",
"print(estimate_dark(i, A, P, R, f_1=fluo[1]-fluo[0], F_1=fluo0))" "print(estimate_dark_lens_fluo(i, A, P, R, f_1=fluo[1]-fluo[0], F_1=fluo0))"
] ]
}, },
{ {
@ -297,8 +297,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"print(estimate_dark(i, A, P, R, f_1=fluo[1]-fluo[0], F_1=fluo0+0.5))\n", "print(estimate_dark_lens_fluo(i, A, P, R, f_1=fluo[1]-fluo[0], F_1=fluo0+0.5))\n",
"print(estimate_dark(i, A, P, R, f_1=fluo[1]-fluo[0]+0.5, F_1=fluo0))\n" "print(estimate_dark_lens_fluo(i, A, P, R, f_1=fluo[1]-fluo[0]+0.5, F_1=fluo0))\n"
] ]
}, },
{ {
@ -323,7 +323,7 @@
" def function_to_minimize(x):\n", " def function_to_minimize(x):\n",
" f_1 = x[0]\n", " f_1 = x[0]\n",
" F_1 = x[1]\n", " F_1 = x[1]\n",
" dark_matrix = estimate_dark(I, A, P, R, f_1, F_1)\n", " dark_matrix, lens, fluo = estimate_dark_lens_fluo(I, A, P, R, f_1, F_1)\n",
" error = np.var(dark_matrix)\n", " error = np.var(dark_matrix)\n",
" return error\n", " return error\n",
" \n", " \n",