First working 2d fit
This commit is contained in:
parent
ade2304ccf
commit
cd6cb974c7
File diff suppressed because one or more lines are too long
339
Joschka/Function testing.ipynb
Normal file
339
Joschka/Function testing.ipynb
Normal file
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 36,
|
"execution_count": 1,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"import xarray as xr\n",
|
"import xarray as xr\n",
|
||||||
@ -55,8 +55,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:57:20.513640800Z",
|
"end_time": "2023-07-25T10:28:40.924705500Z",
|
||||||
"start_time": "2023-07-20T08:57:20.460156300Z"
|
"start_time": "2023-07-25T10:28:32.791125300Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -71,7 +71,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 60,
|
"execution_count": 25,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# get center of thresholded image\n",
|
"# get center of thresholded image\n",
|
||||||
@ -110,26 +110,33 @@
|
|||||||
"def gaussian(x, x0, sigma, A):\n",
|
"def gaussian(x, x0, sigma, A):\n",
|
||||||
" return A * np.exp(-0.5 * (x-x0)**2 / sigma**2)\n",
|
" return A * np.exp(-0.5 * (x-x0)**2 / sigma**2)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def polylog(power, numerator, order = 15):\n",
|
"# def polylog(power, numerator, order = 15):\n",
|
||||||
|
"#\n",
|
||||||
|
"# dataShape = numerator.shape\n",
|
||||||
|
"# numerator = np.tile(numerator, (order, 1))\n",
|
||||||
|
"# numerator = np.power(numerator.T, np.arange(1, order+1)).T\n",
|
||||||
|
"#\n",
|
||||||
|
"# denominator = np.arange(1, order+1)\n",
|
||||||
|
"# denominator = np.tile(denominator, (dataShape[0], 1))\n",
|
||||||
|
"# denominator = denominator.T\n",
|
||||||
|
"#\n",
|
||||||
|
"# data = numerator/ np.power(denominator, power)\n",
|
||||||
|
"#\n",
|
||||||
|
"# return np.sum(data, axis=0)\n",
|
||||||
"\n",
|
"\n",
|
||||||
" dataShape = numerator.shape\n",
|
"def polylog(pow, x):\n",
|
||||||
" numerator = np.tile(numerator, (order, 1))\n",
|
" order = 15\n",
|
||||||
" numerator = np.power(numerator.T, np.arange(1, order+1)).T\n",
|
" sum = 0\n",
|
||||||
"\n",
|
" for k in range(1,order):\n",
|
||||||
" denominator = np.arange(1, order+1)\n",
|
" sum += x ** k /k **pow\n",
|
||||||
" denominator = np.tile(denominator, (dataShape[0], 1))\n",
|
" return sum\n",
|
||||||
" denominator = denominator.T\n",
|
|
||||||
"\n",
|
|
||||||
" data = numerator/ np.power(denominator, power)\n",
|
|
||||||
"\n",
|
|
||||||
" return np.sum(data, axis=0)\n",
|
|
||||||
"\n",
|
"\n",
|
||||||
"def thermal(x, x0, amp, sigma, order = 15):\n",
|
"def thermal(x, x0, amp, sigma, order = 15):\n",
|
||||||
" res = np.exp(-0.5 * (x-x0)**2 / sigma**2)\n",
|
" res = np.exp(-0.5 * (x-x0)**2 / sigma**2)\n",
|
||||||
" return amp * polylog(2, res, order)\n",
|
" return amp/1.643 * polylog(2, res, order)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def Thomas_Fermi_1d(x, x0, amp, sigma):\n",
|
"def Thomas_Fermi_1d(x, x0, amp, sigma):\n",
|
||||||
" res = (1-(( x - x0 ) / sigma) **2) **3/2\n",
|
" res = (1-(( x - x0 ) / sigma) **2) **(3/2)\n",
|
||||||
" return amp * np.where(res > 0, res, 0)\n",
|
" return amp * np.where(res > 0, res, 0)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def density_1d(x, x0_bec, x0_th, amp_bec, amp_th, sigma_bec, sigma_th):\n",
|
"def density_1d(x, x0_bec, x0_th, amp_bec, amp_th, sigma_bec, sigma_th):\n",
|
||||||
@ -138,8 +145,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T09:37:47.177431600Z",
|
"end_time": "2023-07-25T13:09:33.666810500Z",
|
||||||
"start_time": "2023-07-20T09:37:47.090535400Z"
|
"start_time": "2023-07-25T13:09:33.641512800Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -164,8 +171,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:24.359146700Z",
|
"end_time": "2023-07-25T10:28:41.148813400Z",
|
||||||
"start_time": "2023-07-20T08:42:24.190374300Z"
|
"start_time": "2023-07-25T10:28:40.941625100Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -222,8 +229,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:44.794983600Z",
|
"end_time": "2023-07-25T10:28:48.174864800Z",
|
||||||
"start_time": "2023-07-20T08:42:42.091158700Z"
|
"start_time": "2023-07-25T10:28:41.145812100Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -254,8 +261,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:48.119772700Z",
|
"end_time": "2023-07-25T10:28:51.640116800Z",
|
||||||
"start_time": "2023-07-20T08:42:44.789966500Z"
|
"start_time": "2023-07-25T10:28:48.177857500Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -293,8 +300,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:48.120797800Z",
|
"end_time": "2023-07-25T10:28:51.833224500Z",
|
||||||
"start_time": "2023-07-20T08:42:48.104879300Z"
|
"start_time": "2023-07-25T10:28:51.647400800Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -327,8 +334,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:48.122791500Z",
|
"end_time": "2023-07-25T10:28:51.833224500Z",
|
||||||
"start_time": "2023-07-20T08:42:48.104879300Z"
|
"start_time": "2023-07-25T10:28:51.670188700Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -396,8 +403,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:52.020967200Z",
|
"end_time": "2023-07-25T10:28:55.283723Z",
|
||||||
"start_time": "2023-07-20T08:42:48.106032500Z"
|
"start_time": "2023-07-25T10:28:51.690548800Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -454,8 +461,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:52.034128700Z",
|
"end_time": "2023-07-25T10:28:55.293601900Z",
|
||||||
"start_time": "2023-07-20T08:42:52.022963600Z"
|
"start_time": "2023-07-25T10:28:55.283723Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -487,8 +494,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:53.256972400Z",
|
"end_time": "2023-07-25T10:28:56.450487400Z",
|
||||||
"start_time": "2023-07-20T08:42:52.037348500Z"
|
"start_time": "2023-07-25T10:28:55.296612200Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -521,14 +528,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:53.265920400Z",
|
"end_time": "2023-07-25T10:28:56.553864600Z",
|
||||||
"start_time": "2023-07-20T08:42:53.246320900Z"
|
"start_time": "2023-07-25T10:28:56.442739600Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 162,
|
"execution_count": 12,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
@ -567,8 +574,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T12:39:03.687907100Z",
|
"end_time": "2023-07-25T10:28:57.597197600Z",
|
||||||
"start_time": "2023-07-20T12:39:01.949395300Z"
|
"start_time": "2023-07-25T10:28:56.497285Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -602,8 +609,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:54.388268100Z",
|
"end_time": "2023-07-25T10:28:57.612204400Z",
|
||||||
"start_time": "2023-07-20T08:42:54.377877Z"
|
"start_time": "2023-07-25T10:28:57.602187Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -633,8 +640,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:55.886594900Z",
|
"end_time": "2023-07-25T10:28:58.656642600Z",
|
||||||
"start_time": "2023-07-20T08:42:54.394258600Z"
|
"start_time": "2023-07-25T10:28:57.615406200Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -673,8 +680,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:56.018957900Z",
|
"end_time": "2023-07-25T10:28:58.831141900Z",
|
||||||
"start_time": "2023-07-20T08:42:55.892574200Z"
|
"start_time": "2023-07-25T10:28:58.664738400Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -707,8 +714,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:56.934076900Z",
|
"end_time": "2023-07-25T10:28:59.763890800Z",
|
||||||
"start_time": "2023-07-20T08:42:55.932747700Z"
|
"start_time": "2023-07-25T10:28:58.705502800Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -740,8 +747,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:57.059125400Z",
|
"end_time": "2023-07-25T10:28:59.792176200Z",
|
||||||
"start_time": "2023-07-20T08:42:56.941320900Z"
|
"start_time": "2023-07-25T10:28:59.769873600Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -780,8 +787,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T08:42:58.171251Z",
|
"end_time": "2023-07-25T10:29:00.992680400Z",
|
||||||
"start_time": "2023-07-20T08:42:56.952132200Z"
|
"start_time": "2023-07-25T10:28:59.782041400Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -796,13 +803,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 204,
|
"execution_count": 19,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"fitting time: 112.2138500213623 ms\n"
|
"fitting time: 106.31179809570312 ms\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -843,14 +850,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T13:23:12.076466200Z",
|
"end_time": "2023-07-25T10:29:01.123984600Z",
|
||||||
"start_time": "2023-07-20T13:23:11.947296500Z"
|
"start_time": "2023-07-25T10:29:00.997834600Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 226,
|
"execution_count": 20,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# Fitting x without math constr\n",
|
"# Fitting x without math constr\n",
|
||||||
@ -878,14 +885,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T13:43:43.048073100Z",
|
"end_time": "2023-07-25T10:29:04.899029200Z",
|
||||||
"start_time": "2023-07-20T13:43:42.679511400Z"
|
"start_time": "2023-07-25T10:29:04.583135300Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 215,
|
"execution_count": 21,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# Fitting x with math constraint on width\n",
|
"# Fitting x with math constraint on width\n",
|
||||||
@ -915,8 +922,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T13:30:10.922861700Z",
|
"end_time": "2023-07-25T10:29:20.291311900Z",
|
||||||
"start_time": "2023-07-20T13:30:10.551155600Z"
|
"start_time": "2023-07-25T10:29:19.914352200Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1053,7 +1060,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 224,
|
"execution_count": 24,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
@ -1061,47 +1068,38 @@
|
|||||||
"text": [
|
"text": [
|
||||||
"[75.41570333 77.33388115 2.56706786 0.32435386 9.02534473 21.78913789]\n",
|
"[75.41570333 77.33388115 2.56706786 0.32435386 9.02534473 21.78913789]\n",
|
||||||
"{'x0_bec': 75.41570631345125, 'x0_th': 77.33387669882647, 'amp_bec': 2.5670677717602537, 'amp_th': 0.32435362458962513, 'sigma_bec': 9.025351656015761, 'sigma_th': 21.789148834558127}\n",
|
"{'x0_bec': 75.41570631345125, 'x0_th': 77.33387669882647, 'amp_bec': 2.5670677717602537, 'amp_th': 0.32435362458962513, 'sigma_bec': 9.025351656015761, 'sigma_th': 21.789148834558127}\n",
|
||||||
"{'x0_bec': 88.5, 'x0_th': 88.5, 'amp_bec': 2.601808340499387, 'amp_th': 0.22451184842710226, 'sigma_bec': 33.1809924587058, 'sigma_th': 21.789148834558127}\n",
|
|
||||||
"25.0\n",
|
"25.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[77.87651631 81.11230043 2.46976259 0.33019881 9.77967464 21.30093181]\n",
|
"[77.87651631 81.11230043 2.46976259 0.33019881 9.77967464 21.30093181]\n",
|
||||||
"{'x0_bec': 77.87414667926795, 'x0_th': 81.00942140743041, 'amp_bec': 2.4251361988169013, 'amp_th': 0.336733100911304, 'sigma_bec': 9.771032230037038, 'sigma_th': 21.0114608336347}\n",
|
"{'x0_bec': 77.87414667926795, 'x0_th': 81.00942140743041, 'amp_bec': 2.4251361988169013, 'amp_th': 0.336733100911304, 'sigma_bec': 9.771032230037038, 'sigma_th': 21.0114608336347}\n",
|
||||||
"{'x0_bec': 83.31944444444444, 'x0_th': 83.31944444444444, 'amp_bec': 2.425136198831242, 'amp_th': 0.22435024446755936, 'sigma_bec': 35.938849983279034, 'sigma_th': 21.0114608336347}\n",
|
|
||||||
"26.0\n",
|
"26.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[73.89357632 76.27664646 2.4312179 0.27440553 9.98643754 20.45775545]\n",
|
"[73.89357632 76.27664646 2.4312179 0.27440553 9.98643754 20.45775545]\n",
|
||||||
"{'x0_bec': 73.87690614810727, 'x0_th': 75.75396443024098, 'amp_bec': 2.1748880271879374, 'amp_th': 0.32117568442009115, 'sigma_bec': 9.814809230807409, 'sigma_th': 18.256517221101156}\n",
|
"{'x0_bec': 73.87690614810727, 'x0_th': 75.75396443024098, 'amp_bec': 2.1748880271879374, 'amp_th': 0.32117568442009115, 'sigma_bec': 9.814809230807409, 'sigma_th': 18.256517221101156}\n",
|
||||||
"{'x0_bec': 83.28654970760233, 'x0_th': 83.28654970760233, 'amp_bec': 2.174888027192159, 'amp_th': 0.19859525035216166, 'sigma_bec': 35.715654629024044, 'sigma_th': 18.256517221101156}\n",
|
|
||||||
"26.0\n",
|
"26.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[77.11393592 81.40236184 2.88921236 0.26104054 8.62447632 18.73504104]\n",
|
"[77.11393592 81.40236184 2.88921236 0.26104054 8.62447632 18.73504104]\n",
|
||||||
"{'x0_bec': 77.08861286232403, 'x0_th': 79.69001135621787, 'amp_bec': 2.4064163373141456, 'amp_th': 0.34799624740698715, 'sigma_bec': 8.351489369586584, 'sigma_th': 15.16726157787356}\n",
|
"{'x0_bec': 77.08861286232403, 'x0_th': 79.69001135621787, 'amp_bec': 2.4064163373141456, 'amp_th': 0.34799624740698715, 'sigma_bec': 8.351489369586584, 'sigma_th': 15.16726157787356}\n",
|
||||||
"{'x0_bec': 84.52136752136752, 'x0_th': 84.52136752136752, 'amp_bec': 2.4064163373452807, 'amp_th': 0.20448269247509732, 'sigma_bec': 34.704785476022735, 'sigma_th': 15.16726157787356}\n",
|
|
||||||
"19.0\n",
|
"19.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[74.59729659 78.58410424 2.78343705 0.22861603 9.03257479 18.55393163]\n",
|
"[74.59729659 78.58410424 2.78343705 0.22861603 9.03257479 18.55393163]\n",
|
||||||
"{'x0_bec': 74.56347324160527, 'x0_th': 76.67698294957175, 'amp_bec': 2.2603093432491317, 'amp_th': 0.338441239554665, 'sigma_bec': 8.542756926651688, 'sigma_th': 13.927244795040806}\n",
|
"{'x0_bec': 74.56347324160527, 'x0_th': 76.67698294957175, 'amp_bec': 2.2603093432491317, 'amp_th': 0.338441239554665, 'sigma_bec': 8.542756926651688, 'sigma_th': 13.927244795040806}\n",
|
||||||
"{'x0_bec': 84.98387096774194, 'x0_th': 84.98387096774194, 'amp_bec': 2.2603093432512544, 'amp_th': 0.19536429045544934, 'sigma_bec': 35.18717861807238, 'sigma_th': 13.927244795040806}\n",
|
|
||||||
"21.0\n",
|
"21.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[78.50292483 82.40258606 2.35517079 0.20782915 9.17053985 15.99073945]\n",
|
"[78.50292483 82.40258606 2.35517079 0.20782915 9.17053985 15.99073945]\n",
|
||||||
"{'x0_bec': 78.4482746738924, 'x0_th': 81.06222964804594, 'amp_bec': 2.0364741307301464, 'amp_th': 0.27923725023708695, 'sigma_bec': 8.802233429669542, 'sigma_th': 13.147732761193325}\n",
|
"{'x0_bec': 78.4482746738924, 'x0_th': 81.06222964804594, 'amp_bec': 2.0364741307301464, 'amp_th': 0.27923725023708695, 'sigma_bec': 8.802233429669542, 'sigma_th': 13.147732761193325}\n",
|
||||||
"{'x0_bec': 90.42528735632183, 'x0_th': 90.42528735632183, 'amp_bec': 2.036474130237983, 'amp_th': 0.17067122358801443, 'sigma_bec': 34.072244880300836, 'sigma_th': 13.147732761193325}\n",
|
|
||||||
"26.0\n",
|
"26.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[75.51767384 76.75506578 0.87440112 0.14660177 8.96571527 5.96931421]\n",
|
"[75.51767384 76.75506578 0.87440112 0.14660177 8.96571527 5.96931421]\n",
|
||||||
"{'x0_bec': 75.74475709382901, 'x0_th': 76.32144038563793, 'amp_bec': 0.9184588823685144, 'amp_th': 0.12427203265282463, 'sigma_bec': 8.275865193835182, 'sigma_th': 8.275865193840495}\n",
|
"{'x0_bec': 75.74475709382901, 'x0_th': 76.32144038563793, 'amp_bec': 0.9184588823685144, 'amp_th': 0.12427203265282463, 'sigma_bec': 8.275865193835182, 'sigma_th': 8.275865193840495}\n",
|
||||||
"{'x0_bec': 84.0068493150685, 'x0_th': 84.0068493150685, 'amp_bec': 0.9184588824168226, 'amp_th': 0.08599294030801197, 'sigma_bec': 25.649334229816205, 'sigma_th': 8.275865193840495}\n",
|
|
||||||
"20.0\n",
|
"20.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[76.17323785 76.98707429 0.61643944 0.23667638 9.4043337 5.34970959]\n",
|
"[76.17323785 76.98707429 0.61643944 0.23667638 9.4043337 5.34970959]\n",
|
||||||
"{'x0_bec': 76.46913757414158, 'x0_th': 76.83078679310978, 'amp_bec': 0.8606601665782735, 'amp_th': 0.1553960250745048, 'sigma_bec': 8.072403404223405, 'sigma_th': 8.072403404877084}\n",
|
"{'x0_bec': 76.46913757414158, 'x0_th': 76.83078679310978, 'amp_bec': 0.8606601665782735, 'amp_th': 0.1553960250745048, 'sigma_bec': 8.072403404223405, 'sigma_th': 8.072403404877084}\n",
|
||||||
"{'x0_bec': 83.63970588235293, 'x0_th': 83.63970588235293, 'amp_bec': 0.8606601666532789, 'amp_th': 0.12059248981941442, 'sigma_bec': 25.037012483847782, 'sigma_th': 8.072403404877084}\n",
|
|
||||||
"18.0\n",
|
"18.0\n",
|
||||||
"\n",
|
"\n",
|
||||||
"[74.88995354 73.93092826 0.90810872 0.09114657 9.42569183 7.98461584]\n",
|
"[74.88995354 73.93092826 0.90810872 0.09114657 9.42569183 7.98461584]\n",
|
||||||
"{'x0_bec': 74.84814609706852, 'x0_th': 74.34947866579368, 'amp_bec': 0.7917518736101876, 'amp_th': 0.12935441772036824, 'sigma_bec': 8.30427046215347, 'sigma_th': 8.304270463041027}\n",
|
"{'x0_bec': 74.84814609706852, 'x0_th': 74.34947866579368, 'amp_bec': 0.7917518736101876, 'amp_th': 0.12935441772036824, 'sigma_bec': 8.30427046215347, 'sigma_th': 8.304270463041027}\n",
|
||||||
"{'x0_bec': 84.74015748031496, 'x0_th': 84.74015748031496, 'amp_bec': 0.79175187364107, 'amp_th': 0.0788407156338335, 'sigma_bec': 27.943373217645885, 'sigma_th': 8.304270463041027}\n",
|
|
||||||
"20.0\n",
|
"20.0\n",
|
||||||
"\n"
|
"\n"
|
||||||
]
|
]
|
||||||
@ -1113,7 +1111,7 @@
|
|||||||
" for j in range(0, shape[1]):\n",
|
" for j in range(0, shape[1]):\n",
|
||||||
" print(popt[i,j])\n",
|
" print(popt[i,j])\n",
|
||||||
" print(result_x[i][j].best_values)\n",
|
" print(result_x[i][j].best_values)\n",
|
||||||
" print(result_y[i][j].best_values)\n",
|
" #print(result_y[i][j].best_values)\n",
|
||||||
" print(BEC_width_guess[i,j,1])\n",
|
" print(BEC_width_guess[i,j,1])\n",
|
||||||
" print(\"\")\n",
|
" print(\"\")\n",
|
||||||
"\n"
|
"\n"
|
||||||
@ -1121,14 +1119,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T13:34:58.548593Z",
|
"end_time": "2023-07-25T10:29:51.620810400Z",
|
||||||
"start_time": "2023-07-20T13:34:58.484422900Z"
|
"start_time": "2023-07-25T10:29:51.571566300Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 205,
|
"execution_count": 22,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
@ -1156,18 +1154,34 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-20T13:23:24.146431Z",
|
"end_time": "2023-07-25T10:29:32.565187100Z",
|
||||||
"start_time": "2023-07-20T13:23:22.681336600Z"
|
"start_time": "2023-07-25T10:29:31.085329400Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 28,
|
||||||
"outputs": [],
|
"outputs": [
|
||||||
"source": [],
|
{
|
||||||
|
"name": "stdout",
|
||||||
|
"output_type": "stream",
|
||||||
|
"text": [
|
||||||
|
"22.774\n",
|
||||||
|
"22.814\n"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"print(11.8*1.93)\n",
|
||||||
|
"print(18.7*1.22)"
|
||||||
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false
|
"collapsed": false,
|
||||||
|
"ExecuteTime": {
|
||||||
|
"end_time": "2023-07-25T13:42:22.372434400Z",
|
||||||
|
"start_time": "2023-07-25T13:42:22.299475700Z"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -906,7 +906,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 18,
|
"execution_count": 1,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def find_fwhm(f_x, x):\n",
|
"def find_fwhm(f_x, x):\n",
|
||||||
@ -924,8 +924,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"end_time": "2023-07-11T15:19:35.219252800Z",
|
"end_time": "2023-07-25T12:33:47.822058700Z",
|
||||||
"start_time": "2023-07-11T15:19:35.187552700Z"
|
"start_time": "2023-07-25T12:33:47.814126200Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user