cleaned up and fixed notebook as it wasn't actually working from fresh
This commit is contained in:
parent
e487d92307
commit
d6046e1b8a
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue