From d6046e1b8a7277fd99a077dc323f06a67adf838c Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Thu, 10 Mar 2022 18:34:26 +0100 Subject: [PATCH] cleaned up and fixed notebook as it wasn't actually working from fresh --- doc/find_dark.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/find_dark.ipynb b/doc/find_dark.ipynb index b1c98c0..85584a9 100644 --- a/doc/find_dark.ipynb +++ b/doc/find_dark.ipynb @@ -281,7 +281,7 @@ " dark = I - lens.reshape(1, len(lens)) * fluo.reshape(len(fluo), 1)\n", " return dark, lens, fluo\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": {}, "outputs": [], "source": [ - "print(estimate_dark(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], F_1=fluo0+0.5))\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", " f_1 = x[0]\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", " return error\n", " \n",