mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
375c4f6b91
5 changed files with 14 additions and 11 deletions
|
@ -68,7 +68,8 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"my_correlator = pe.Corr(correlator_data)"
|
||||
"my_correlator = pe.Corr(correlator_data)\n",
|
||||
"my_correlator.gamma_method()"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"single_smearing = matrix_V1V1.index(0,0)"
|
||||
"single_smearing = matrix_V1V1.item(0,0)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -284,7 +284,7 @@
|
|||
"m_eff_Jpsi = corr_ground.m_eff(variant=\"cosh\")\n",
|
||||
"\n",
|
||||
"# We can now pick a plateau range and get a single value for the mass. \n",
|
||||
"\n",
|
||||
"m_eff_Jpsi.gamma_method()\n",
|
||||
"m_Jpsi = m_eff_Jpsi.plateau([5, 24])\n",
|
||||
"\n",
|
||||
"# We can now visually compare our plateau value to the data\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue