From 199df2b344caf80789de4ff5c284d23592a8f1a1 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 15 Feb 2022 13:38:22 +0000 Subject: [PATCH] docs: correlator examples updated with additional calls to gamma_method --- examples/02_correlators.ipynb | 3 ++- examples/04_fit_example.ipynb | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/02_correlators.ipynb b/examples/02_correlators.ipynb index 76234ceb..fe1028e1 100644 --- a/examples/02_correlators.ipynb +++ b/examples/02_correlators.ipynb @@ -68,7 +68,8 @@ "metadata": {}, "outputs": [], "source": [ - "my_correlator = pe.Corr(correlator_data)" + "my_correlator = pe.Corr(correlator_data)\n", + "my_correlator.gamma_method()" ] }, { diff --git a/examples/04_fit_example.ipynb b/examples/04_fit_example.ipynb index 06bfc29d..554c6be3 100644 --- a/examples/04_fit_example.ipynb +++ b/examples/04_fit_example.ipynb @@ -46,7 +46,8 @@ } ], "source": [ - "fP = pe.Corr(pe.input.json.load_json(\"./data/f_P\"), padding=[1, 1])" + "fP = pe.Corr(pe.input.json.load_json(\"./data/f_P\"), padding=[1, 1])\n", + "fP.gamma_method()" ] }, { @@ -116,6 +117,7 @@ "stop_fit = 18\n", "\n", "fit_result = fP.fit(func_exp, [start_fit, stop_fit], resplot=True)\n", + "fit_result.gamma_method()\n", "print(\"\\n\", fit_result)" ] }, @@ -197,6 +199,7 @@ } ], "source": [ + "m_eff_fP.gamma_method()\n", "m_eff_plateau = m_eff_fP.plateau([start_fit, stop_fit])\n", "m_eff_plateau.gamma_method()\n", "print()\n", @@ -320,7 +323,7 @@ } ], "source": [ - "beta = pe.fits.odr_fit(ox, oy, func)\n", + "beta = pe.fits.total_least_squares(ox, oy, func)\n", "\n", "for i, item in enumerate(beta):\n", " item.gamma_method()\n",