2023-09-14 14:13:49 +02:00
|
|
|
|
{
|
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 1,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"import lmfit\n",
|
|
|
|
|
"import xarray as xr\n",
|
|
|
|
|
"import pandas as pd\n",
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"import copy\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"import glob\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"import xrft\n",
|
|
|
|
|
"import finufft\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"from uncertainties import ufloat\n",
|
|
|
|
|
"from uncertainties import unumpy as unp\n",
|
|
|
|
|
"from uncertainties import umath\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"from datetime import datetime\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"#test\n",
|
|
|
|
|
"plt.rcParams['font.size'] = 18\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"from scipy.ndimage import gaussian_filter, rotate\n",
|
|
|
|
|
"import matplotlib as mpl\n",
|
|
|
|
|
"from scipy.interpolate import CubicSpline\n",
|
|
|
|
|
"from scipy.optimize import curve_fit\n",
|
|
|
|
|
"mpl.rc('xtick', labelsize=8)\n",
|
|
|
|
|
"mpl.rc('ytick', labelsize=8)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"import sys\n",
|
|
|
|
|
"sys.path.append(\"C:/Users/Jianshun Gao/VisualCodeProjects/analysescript\")\n",
|
|
|
|
|
"sys.path.append(\"C:/Users/Jianshun Gao/PycharmProjects/Foglight4/Data\")\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"from DataContainer.ReadData import read_hdf5_file, read_hdf5_global, read_hdf5_run_time, read_csv_file\n",
|
|
|
|
|
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
|
|
|
|
|
"from Analyser.FitAnalyser import FitAnalyser\n",
|
|
|
|
|
"from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
|
|
|
|
|
"from Analyser.FFTAnalyser import fft, ifft, fft_nutou\n",
|
|
|
|
|
"from ToolFunction.ToolFunction import *\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"import time\n",
|
|
|
|
|
"import logging as log\n",
|
|
|
|
|
"import scipy.constants as const\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
|
|
|
|
|
"xr.plot.dataarray_plot.errorbar = errorbar\n",
|
|
|
|
|
"xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"imageAnalyser = ImageAnalyser()\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"import Analyser.FitAnalyser as dp"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 2,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"C:/Users/Jianshun Gao/PycharmProjects/Foglight4/Data/josch/high_cond_1.nc\n"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"path = \"C:/Users/Jianshun Gao/PycharmProjects/Foglight4/Data\"\n",
|
|
|
|
|
"file = 'high_cond_1'\n",
|
|
|
|
|
"file_path = f'{path}/josch/{file}.nc'\n",
|
|
|
|
|
"print(file_path)\n",
|
|
|
|
|
"with xr.open_dataarray(file_path) as data_x:\n",
|
|
|
|
|
" data_x\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"data = data_x.to_numpy()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 3,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"is_debug = True\n",
|
|
|
|
|
"fitm = DensityProfileBEC2dModel(is_debug=is_debug, atom_n_conv=144/2)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"def calc_cen_bulk(thresh):\n",
|
|
|
|
|
" \"\"\"\n",
|
|
|
|
|
" returns array in shape of input, containing array with [Y_center,X_center] for each image\n",
|
|
|
|
|
" \"\"\"\n",
|
|
|
|
|
" shape = np.shape(thresh)\n",
|
|
|
|
|
" cen = np.zeros((shape[0], 2))\n",
|
|
|
|
|
" for i in range(0, shape[0]):\n",
|
|
|
|
|
" cen[i] = fitm.calc_cen_pix(thresh[i])\n",
|
|
|
|
|
" return cen"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"execution_count": 8,
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"shape = np.shape(data)\n",
|
|
|
|
|
"data_rot = np.empty(shape)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"for i in range(0,shape[0]):\n",
|
|
|
|
|
" data_rot[i] = rotate(data[i], 36, reshape=False)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"execution_count": 9,
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"[[599.42377261 959.62015504]\n",
|
|
|
|
|
" [599.46599496 959.50629723]\n",
|
|
|
|
|
" [599.47858942 959.49118388]\n",
|
|
|
|
|
" [599.47505938 959.41330166]\n",
|
|
|
|
|
" [599.68149883 959.26697892]\n",
|
|
|
|
|
" [599.4627907 959.58372093]\n",
|
|
|
|
|
" [599.46412556 959.46188341]]\n"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"# cropping\n",
|
|
|
|
|
"pr_data = data_rot\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"cut_width_x = 200\n",
|
|
|
|
|
"cut_width_y = 150\n",
|
|
|
|
|
"thresh = fitm.calc_thresh(pr_data)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"center = calc_cen_bulk(thresh)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"print(center)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"if len(shape) == 3:\n",
|
|
|
|
|
" cropOD = np.zeros((shape[0], cut_width_y, cut_width_x))\n",
|
|
|
|
|
" for i in range(0,shape[0]):\n",
|
|
|
|
|
" for j in range(0, shape[1]):\n",
|
|
|
|
|
" cropOD[i] = pr_data[i, round(center[i,0]-cut_width_y/2):round(center[i,0]+cut_width_y/2), round(center[i,1]-cut_width_x/2):round(center[i,1]+cut_width_x/2)]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"shape = np.shape(cropOD)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"execution_count": 10,
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABYkAAACnCAYAAABU1dPNAAAAOXRFWHRTb2Z0d2FyZQBNY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7f6DTHdfuSxQX6Jw+TYczPk9hdbFo8m+3dDHju2Op76c9E5K4MxQYjUb8g3/wD/jsZz8LwGc+8xm++tWvcnt7y8HBAY8fP+att9769vFPax/5yEf4yEc+8pRv/oTOed3SCegd4CSmcAyc0xnRO3SL9I3+mBXwLeBFSgG/Chz1596hkowX+r4EQz9Ot2gj4Jt9n3PKcWXCfkSnRN568Hb/2++2/fkTSqk+1H+XyqWjEEyYFI/78Rh4fxy4poLVSd/ftp/rYYwPOjLxft+/c/5jYNbL5xNUAFIJleWH+uNMAF8EfoIiMDTub/V9m3Cf0CUBH+7n+c3+77/af/8i3bq93X+26o/5Fh0Zp7H9BC3x8DYFEP4qneEuKIN9oZ+PZObXqKB4FjL8EPCn/Tnf6ufsOt7GOXfokoIHGDS/l1tMnpVtvLdd/Dmdo/hE//+7/ZxG/e/b/rP7lIMbU0HrDTp9/ySdw98Al3RrMKJsRj107ZfAz/XHq19/lW4NvkXZJ3SyO+yvPerP1XFv6OTpbTyOf9vP7bDv7yPAX6Hs/V06Xf0wpZeu4Y/333+9v/ZRf93r/njXf92fe9jLLwGi39P3+eH++yM6R/wOnQ+Z9Nf6SD+2n6CC+Lr//0UK+B/T2cqH+/lf0fmTFRWIX+zH+mLf9zfpiijrfs5f68f7if66x5SvWvfy+1b/W/931Y9hTmc7414
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 1750x250 with 7 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"fig, ax = plt.subplots(1, shape[0], figsize=(2.5 *shape[0],2.5))\n",
|
|
|
|
|
"for i in range(0, shape[0]):\n",
|
|
|
|
|
" ax[i].pcolormesh(cropOD[i], cmap='jet')\n",
|
|
|
|
|
"\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
" ax[i].set_aspect('equal')\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"execution_count": 11,
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"\n",
|
|
|
|
|
" \n",
|
|
|
|
|
"file high_cond_1 \n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
" image: 0\n"
|
2023-09-14 14:13:49 +02:00
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAkYAAAHXCAYAAABZD5UXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAADk4klEQVR4nOz9ebhdVZnuDT8bAiGBhJBgAkkIS0xALNCIggFKEJtXirIUG+wOCoqCnGNZ3yl9q+TUVQVUA+XRY1Wpxw4VLKnPFrTks2xAReyN0tlDkJUOkgiBJEAICVnfH3vee90Z+7fH3El2DAnPfV255sqYY45+zD3H09zPQK/X60UikUgkEolEIvbY2Q1IJBKJRCKReKwgP4wSiUQikUgkGuSHUSKRSCQSiUSD/DBKJBKJRCKRaJAfRolEIpFIJBIN8sMokUgkEolEokF+GCUSiUQikUg0yA+jRCKRSCQSiQb5YZRIJBKJRCLRID+MEolEYgwxMDAQAwMD8ZznPGdnNyWRSGwDxu3sBiQSibHBwMDA0O/Ha6Sf+++/P/71X/81IiLmz58fp59++k5tz47EzTffHF/60pciIuL000+P+fPn79T2JBK7C/LDKJFI7Da4//774+KLL46IiLPOOmu3/zBSXzudTn4YJRJjhFSlJRKJRCKRSDTID6NEIpFIJBKJBvlhlEgkEolEItEgP4wSiccJrr/++iGPqYsuuigiIpYsWRJvf/vb48lPfnLsu+++MWXKlDjhhBPigx/8YGzatGmryvr5z38e5557bjzpSU+KCRMmxBOe8IR4/vOfH5/+9Ker7briiiuGyrriiiu2KW+3242BgYF44hOfOJT2yU9+ciiv/+t2u9U6ali8eHH8+Z//ecydOzcmTJgQ06dPj2c/+9nxkY98pDpeJX72s5/FP/zDP8Spp54ac+bMiX322ScmTJgQhxxySJx++ulx5ZVXxqOPPorPagze8IY3DKW94Q1vGNbPTqcz7Nnf/OY38e53vzte/OIXx2GHHRYTJ06M8ePHx8EHHxynnnpqfPCDH4yHH354q8clkdidkMbXicTjFF/72tfiNa95Tdx///1bpP/whz+MH/7wh/GlL30prrnmmhg/fnxrWZ/61KfizW9+c2zYsGEo7eGHH45vfvOb8c1vfjP+4z/+I77whS/EPvvsM9bd+IPhS1/6Upx55pnx4IMPDqU9/PDD8fvf/z6+973vxZVXXhnXXHNNazkXX3zx0MdkiWXLlsWyZcviP//zP+Nf//Vf48tf/nLMnDlzTNr/yU9+Ms4++2y8t2LFilixYkV8/etfj/e+971xzTXXxJFHHjkm9SYSuxrywyiReBzi5ptvjne/+93R6/XivPPOi+OPPz7Gjx8fP/3pT+PDH/5wPPjgg3HttdfGP/3TP8Xf//3fV8tauHBhXHLJJRER8cY3vjFOOumk2HPPPWPhwoXx8Y9/PB588MH4yle+EmeeeWZ84Qtf2CH9mT59enzxi1+MVatWxXnnnRcREaecckq87W1vw7xbi+9///vxyle+MjZu3BgRESeeeGK86lWviunTp0e3241PfvKT8b3vfS/e+MY3tpa1fv36GDduXBx//PFx4oknxty5c2Py5MmxevXquPPOO+PKK6+M5cuXx89+9rM4/fTT4/vf/37stddeQ88/97nPjS9+8YvxrW99K97//vdHRMSf//mfx3Of+9wt6pk4ceKwegcGBuIZz3hGnHTSSXHE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hu3ve+98W3v/3tiIgRJTpbg1e84hVx3XXXRUTEpEmT4s/+7M9i/vz5cfDBB8fEiROH6v3MZz4Tn/3sZ8es3kRiV0N+GCUSie3CQw891JrHuX/222+/ba6LVE07Gvvtt1+sWbNmq/tJ+PSnPz30UfSCF7wgvvjFL474MfUf//EfW9/YEXDDDTcMfRQ97WlPi2uvvTae8IQnYN7vf//7Y1ZvIrErIo2vE4nEdmHRokVblackLHS13SOPPFItZ2cYA6u9K1asaP3waRsLfZxERPzLv/xLVcK0ePHirWhlHV7vP/3TP434UTTW9SYSuyLywyiRSGwXvve97w0RH44EqYQiBt3VHU4i2GZ/9OMf/7h631WEY+XJddxxx0XEoLTq+uuvr+b95je/Wb2/cuXKod9PetKTRsy3atWquPnmm6tlbU1fR1vvI488ssVcJRKPR+SHUSKR2C6sXr26GuPsG9/4Rvzyl7+MiIjjjz9+GIePXPkjIr71rW+NWM6dd97ZGnLD1XRt0p3R4qUvfenQ73/5l38ZMd/69evjQx/6ULUst1O64447Rsx36aWXtn5sbk1fR1vvhz70oXTRTzzukR9GiURiu/GOd7xjyK3dcccdd2wRJoN4gA499NChuFzf/e538ePn97//fbziFa9o/ViYOnXqkPfWzTffPCZSoxe96EVxxBFHRMSgRIgIHjdu3BjnnHNOa4Bal5b97d/+LdpMffSjH433ve99re1yssYbb7xx1PX+/d///RYx7YRrrrkm3vnOd7bWm0js7kjj60QisV047bTT4tprr40TTzwxzjrrrHj2s5+9Raw0eXW9/OUvj5e//OVYxjve8Y4455xzhvIp5lqv14ubbropLr/88rj//vvjjDPOiM9//vPV9iiW2B133BGvetWr4mUve9kW6rqTTz45JkyYMOr+7bnnnvHxj388TjnllNi4cWNceOGFce211w7FSlu8eHFcccUV8atf/Spe+tKXbkEIWeINb3hDXHLJJfHggw/GF7/4xTjmmGPida97XcyePTtWrlwZV199dXznO9+Jgw46KI4++ui49tprRyzr6KOPjunTp8eqVaviyiuvjCc84QmxYMGCob5NmDAhTj755IgYlHrNmjUrli9fHj/5yU/iKU95Spxzzjlx2GGHxf333x//9V//Fddcc03su+++8fKXvzyuuuqqUY9PIrHbYacGJEkkEmO
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"shape: (200, 150)\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABTkAAAHXCAYAAAB3dl6BAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACCmElEQVR4nO3dd3wU1f7/8feGFFoKnUAIoSOCFGmCECIgCCgoRZCOSrGgXr0KNvCqoF6vFRVBBQRBQMrFi0gvUqUKonQCAQ2hJtSQMr8/8t35bZLdzaZnwuvJYx8PsnP27JmdcmY+c4rNMAxDAAAAAAAAAGBRXvldAAAAAAAAAADIDoKcAAAAAAAAACyNICcAAAAAAAAASyPICQAAAAAAAMDSCHICAAAAAAAAsDSCnAAAAAAAAAAsjSAnAAAAAAAAAEsjyAkAAAAAAADA0ghyAgAAAAAAALC0AhHkHD9+vGw2m2w2m9atW5ffxck1kZGR5noOGTIkv4uTY9q1a2euV3aEhYXJZrMpLCwsZwqGHPfHH3/o0UcfVc2aNVW8eHFzu/fo0SO/i4YCIqfOB4CjnK4/c7q+of4C8t706dPN88L06dOznV9hvU535sqVKwoJCZHNZtN//vOf/C4OPJCT9cyQIUPMfT0yMrLA5Qeg4Fi3bp15fI8fPz7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bdo0RUREqGzZsipevLhq1qypkSNH6o8//pCUcT2TG0qVKpWqe5+9O11
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"y smaller x, 1d fit along y\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"1d fit initialization\n",
|
|
|
|
|
"center = [99.49748744 75.5033557 ]\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"BEC widths: [23 13]\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n",
|
|
|
|
|
"1d init fit values\n",
|
|
|
|
|
"Name Value Min Max Stderr Vary Expr Brute_Step\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"amp_bec 1.821 0 4.734 None True None None\n",
|
|
|
|
|
"amp_th 1.821 0 4.734 None True None None\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"deltax 39 0 200 None True None None\n",
|
|
|
|
|
"sigma_bec 10.66 0 26 None True None None\n",
|
|
|
|
|
"sigma_th 26.94 0 inf None False 0.632*sigma_bec + 0.518*deltax None\n",
|
|
|
|
|
"x0_bec 75.5 65.5 85.5 None True None None\n",
|
|
|
|
|
"x0_th 75.5 65.5 85.5 None True None None\n",
|
|
|
|
|
"1d fitted values\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"x0_bec: 75.720, (init = 75.503), bounds = [65.50 : 85.50] \n",
|
|
|
|
|
"x0_th: 75.824, (init = 75.503), bounds = [65.50 : 85.50] \n",
|
|
|
|
|
"amp_bec: 2.943, (init = 1.821), bounds = [0.00 : 4.73] \n",
|
|
|
|
|
"amp_th: 0.742, (init = 1.821), bounds = [0.00 : 4.73] \n",
|
|
|
|
|
"sigma_bec: 10.919, (init = 10.656), bounds = [0.00 : 26.00] \n",
|
|
|
|
|
"sigma_th: 9.846, (init = 26.936), bounds = [0.00 : inf] \n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAh8AAAHXCAYAAAAcDjiVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAACKLUlEQVR4nO3dd3xUVdrA8d+dmUz6pAcISQi9SBcUQQULouKiK2BZVEARUNFdy6qsDWzo4rq6NlxA0FdFUdHFggoCIqJIB0VpJiQBAqRN+mTKef+YzJiQQsqUlOf7+YySueee+9yZzJ0n556iKaUUQgghhBA+ovN3AEIIIYRoWyT5EEIIIYRPSfIhhBBCCJ+S5EMIIYQQPiXJhxBCCCF8SpIPIYQQQviUJB9CCCGE8ClJPoQQQgjhU5J8CCGEEMKnJPlog9avX4+maWiaxpw5c5pcX25uLg899BCDBg0iPDwcnU6HpmlERka6y4waNcp9zJZs79693HLLLXTr1o2QkBD3OV111VVeO2Zree2aE9frOWrUKH+HIpoxT18rxR8M/g6grbPb7fz6669s3bqVbdu2sXXrVnbt2kVpaSkAjz32WLP+pT9+/DjDhg0jLS2tSfXs3LmTTz75BICrrrqKgQMHNjk2T/v222+59NJLKSsr83coXpGfn88LL7wAwMCBA72aUAkh2jZJPvzsmmuuYcWKFf4Oo9Geeuopd+IxYsQIbrjhBtq1a4emaQQEBNS7np07dzJ37lwAUlJSmmXyceedd7oTj5tuuolRo0YRFRUFQIcOHfwZmkfk5+e734PJkydL8iGE8BpJPvzMbrdX+Tk6OpqYmBgOHDjgp4ga5osvvgAgKiqKr7/+mpCQkBrL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UuWnO6lrcZut7t/N6OiolRpaWmd5UtLS1VUVJQCVHJysrLb7Q0+plKee4//+9//usuec845ymaz1VhuwoQJ7nIPPfRQjfGc7lr52GOP1SvmK6+8sjEvSaslt11akfnz5/P0008DznkMrr32WkaPHk1wcDC7du1i0aJFvPzyyxw5cqRJx7nuuuvco1H+/Oc/A3DGGWfw5JNPVinXt2/f09Z14YUX8vHHH7N27VpeeuklwDmq5MILL6xSrrH9SV5//XVmzpzp/vlPf/oTY8eOJTIykv3797NkyRJSU1PZs2cP5557Ljt27CAuLs5d/sknnyQ7O5uff/6ZRx55BIBrr72W6667rlHxuOTm5nLhhReSmZkJQOfOnbn55pvp3r07ubm5rFixgjVr1nD11VcTERFRZ11lZWUopTjjjDO44IIL6N27NzExMZSVlZGRkcEnn3zCtm3bOHnyJFdccQU7d+6s0pIUHx/Pxx9/zIkTJ5gxYwYAF1xwQY1/8cbHx7v/XV5ejt1up0uXLlx00UX07duXuLg4HA4H6enprFmzhrVr11JcXMx1113H999/z9ChQxv9mjX1PBuisLCQ888/n/379wPO0Uw333wzZ5xxBiUlJaxevZoPPvgAq9XK7NmzcTgcp72FunPnTubPn49SihkzZnDOOecQGBjI1q1bWbBgAcXFxaxevZqnnnqKxx9/vMY6pk+fzgcffABAUFAQU6ZM4ZxzzkGv17N161YWL17Mfffdx4QJExp13i46nY5bb72Vf/zjH+Tl5fHRRx8xadKkWst/+OGH5OXlAXDLLbeg0zWuUd1T7/Gtt97KV199xUcffcQPP/zA3Llzq72mixcv5sMPPwRg2LBhjZrS4H//+597hFhwcDDXX389w4YNIzo6mrKyMjIzM9m6dSurV69ucN2tnn9zH1GTxrR8HDx4UAUGBipAGY1G9cUXX1Qrc+zYMdWrV68q2XhjWj4qc9VT11+QStXe8uHS1L/UapKamupu8dDr9er999+vVqakpESNHTvWfewJEybUWFdTW4tOdcstt7jrGzNmjCouLq5W5oUXXqhXC0taWpravXt3ncd79913lU6nU4CaMmVKjWUqt4BMnjz5tOeQk5Ojvv/++zrLrF27VoWGhipAjRo16rR11sVT56nU6X9vZ86c6S5z7rnnqvz8/GplvvrqKxUUFKQAZTAY1M6dO6uVqfx7Q0WrwP79+6uV27x5szIYDO6WhppaP9asWeOuJzY2Vu3Zs6damdTUVNWpU6cqx2zs5ykrK0sFBATU6/N9/vnnuz9nGRkZjTqeUp59j3Nzc1ViYqI7rsotJfv27XP/XppMJnXo0KEa6zjd59517dDr9XV+FkpLS9XmzZvrPK+2RpKPZqgxycdf//pX9z5z5syptdyuXbuqNJW35uTj7rvvdtd5//3311rObDarDh06KEBpmlbjl4Mnk4/jx48ro9GoABUTE6NycnJqLVu5WbipfyvcdNNNClDBwcGqvLy82vaGJh/19eijj7rrTU9P91i9tTndeSpV9+/tiRMn3Im8yWRSx44dq/VY8+fPd9c1adKkattPTT42bNhQa12TJk2qs1zlJPm9996rtZ5Tj9mUz1PlWzw1fS6Ucn6Ru8qMHTu20cdqiPq8x0optX79enei0qlTJ5WXl6fKy8vVmWee6Y75//7v/2rd/3Sf+549eypA9e/f3xOn1aZIh9NW4uOPPwYgICCAO++8s9Zy/fv355JLLvFVWH7lmrzNYDBw77331lrOZDJx++23A6CUcr+W3vL555+7RwlNmTKF6OjoWsv+/e9/99hxhw8fDkBpaSm7d+/2WL31PS7ATz/95LPjNfY8P//8c/fopsmTJ9O+fftay95+++2Eh4cDsHLlylo7LoNziPZ5551X6/bKtxr37t1bZVtZWRlff/01AAkJCUycOLHWekaNGkX//v1r3d4QlW9ZLlq0qMYylZ+fPn26R457OvV9j0eOHMmDDz4IwOHDh5k5cyYPP/ww27ZtA2DSpEnccMMNjY7DdTs4MzPTox2d2wJJPlqBEydOkJ6eDjgvcHV9mQFcdNFFvgjLr06cOMHhw4cBGDB
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 640x480 with 1 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"\n",
|
|
|
|
|
"Init Params\n",
|
|
|
|
|
"Name Value Min Max Stderr Vary Expr Brute_Step\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"amp_bec 3.5 0 6.577 None True None None\n",
|
|
|
|
|
"amp_th 0.8824 0 6.577 None True None None\n",
|
|
|
|
|
"atom_number_bec 905.4 -inf inf None False amp_bec / 5 * 2 * 3.14159265359 * sigmax_bec * sigmay_bec None\n",
|
|
|
|
|
"atom_number_th 393.2 -inf inf None False amp_th * 2 * 3.14159265359 * 1.20206 / 1.643 * sigma_th * sigma_th None\n",
|
|
|
|
|
"condensate_fraction 0.6972 -inf inf None False atom_number_bec / (atom_number_bec + atom_number_th) None\n",
|
|
|
|
|
"rot_angle 40 10 70 None True None None\n",
|
|
|
|
|
"sigma_th 9.846 0 200 None True None None\n",
|
|
|
|
|
"sigmax_bec 18.85 0 46 None True None None\n",
|
|
|
|
|
"sigmay_bec 10.92 0 26 None True None None\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"x0_bec 99.5 89.5 109.5 None True None None\n",
|
|
|
|
|
"x0_th 99.5 89.5 109.5 None True None None\n",
|
|
|
|
|
"y0_bec 75.5 65.5 85.5 None True None None\n",
|
|
|
|
|
"y0_th 75.5 65.5 85.5 None True None None\n",
|
|
|
|
|
"\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"bval first fit\n",
|
|
|
|
|
"amp_bec: 3.361, (init = 3.500), bounds = [0.00 : 6.58] \n",
|
|
|
|
|
"amp_th: 1.033, (init = 0.882), bounds = [0.00 : 6.58] \n",
|
|
|
|
|
"x0_bec: 100.041, (init = 99.497), bounds = [89.50 : 109.50] \n",
|
|
|
|
|
"y0_bec: 76.005, (init = 75.503), bounds = [65.50 : 85.50] \n",
|
|
|
|
|
"x0_th: 99.794, (init = 99.497), bounds = [89.50 : 109.50] \n",
|
|
|
|
|
"y0_th: 75.935, (init = 75.503), bounds = [65.50 : 85.50] \n",
|
|
|
|
|
"sigmax_bec: 23.817, (init = 18.852), bounds = [0.00 : 46.00] \n",
|
|
|
|
|
"sigmay_bec: 11.257, (init = 10.919), bounds = [0.00 : 26.00] \n",
|
|
|
|
|
"sigma_th: 9.384, (init = 9.846), bounds = [0.00 : 200.00] \n",
|
|
|
|
|
"rot_angle: 36.040, (init = 40.000), bounds = [10.00 : 70.00] \n",
|
|
|
|
|
"\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"Name Value Min Max Stderr Vary Expr Brute_Step\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"amp_bec 3.5 0 6.577 None True None None\n",
|
|
|
|
|
"amp_th 0.8824 0 6.577 None True None None\n",
|
|
|
|
|
"atom_number_bec 905.4 -inf inf None False amp_bec / 5 * 2 * 3.14159265359 * sigmax_bec * sigmay_bec None\n",
|
|
|
|
|
"atom_number_th 393.2 -inf inf None False amp_th * 2 * 3.14159265359 * 1.20206 / 1.643 * sigma_th * sigma_th None\n",
|
|
|
|
|
"condensate_fraction 0.6972 -inf inf None False atom_number_bec / (atom_number_bec + atom_number_th) None\n",
|
|
|
|
|
"rot_angle 40 10 70 None True None None\n",
|
|
|
|
|
"sigma_th 9.846 0 200 None True None None\n",
|
|
|
|
|
"sigmax_bec 18.85 0 46 None True None None\n",
|
|
|
|
|
"sigmay_bec 10.92 0 26 None True None None\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"x0_bec 99.5 89.5 109.5 None True None None\n",
|
|
|
|
|
"x0_th 99.5 89.5 109.5 None True None None\n",
|
|
|
|
|
"y0_bec 75.5 65.5 85.5 None True None None\n",
|
|
|
|
|
"y0_th 75.5 65.5 85.5 None True None None\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"amp_bec: 3.361, (init = 3.500), bounds = [0.00 : 6.58] \n",
|
|
|
|
|
"amp_th: 1.033, (init = 0.882), bounds = [0.00 : 6.58] \n",
|
|
|
|
|
"x0_bec: 100.041, (init = 99.497), bounds = [89.50 : 109.50] \n",
|
|
|
|
|
"y0_bec: 76.005, (init = 75.503), bounds = [65.50 : 85.50] \n",
|
|
|
|
|
"x0_th: 99.794, (init = 99.497), bounds = [89.50 : 109.50] \n",
|
|
|
|
|
"y0_th: 75.935, (init = 75.503), bounds = [65.50 : 85.50] \n",
|
|
|
|
|
"sigmax_bec: 23.817, (init = 18.852), bounds = [0.00 : 46.00] \n",
|
|
|
|
|
"sigmay_bec: 11.257, (init = 10.919), bounds = [0.00 : 26.00] \n",
|
|
|
|
|
"sigma_th: 9.384, (init = 9.846), bounds = [0.00 : 200.00] \n",
|
|
|
|
|
"rot_angle: 36.040, (init = 40.000), bounds = [10.00 : 70.00] \n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"Atom numbers:\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
" N_bec: 80595\n",
|
|
|
|
|
" N_th: 29742\n",
|
|
|
|
|
" N_ges: 110338\n",
|
|
|
|
|
" Cond. frac: 73.04 %\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"Temperature: 31.40 nK\n"
|
2023-09-14 14:13:49 +02:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"times = []\n",
|
|
|
|
|
"x = np.linspace(0,shape[2],shape[2])\n",
|
|
|
|
|
"y = np.linspace(0,shape[1], shape[1])\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"X,Y = np.meshgrid(x, y)\n",
|
|
|
|
|
"X_1d = X.flatten()\n",
|
|
|
|
|
"Y_1d = Y.flatten()\n",
|
|
|
|
|
"result = []\n",
|
|
|
|
|
"for i in range(0, shape[0]):\n",
|
|
|
|
|
"# for i in [0]:\n",
|
|
|
|
|
" print('\\n ')\n",
|
|
|
|
|
" print(f'file {file} \\n image: {i}')\n",
|
|
|
|
|
" start = time.time()\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
" \n",
|
|
|
|
|
" init = fitm.guess(cropOD[i].flatten(), X_1d, Y_1d, rot_angle=40, vary_rot=True, is_debug=True)\n",
|
|
|
|
|
"\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n",
|
|
|
|
|
" res = fitm.fit(cropOD[i].flatten(), x=X_1d, y=Y_1d, params=init)\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"\n",
|
|
|
|
|
" init.pretty_print()\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
" fitm.print_bval(res)\n",
|
|
|
|
|
" stop = time.time()\n",
|
|
|
|
|
" fitm.return_atom_number(res, X_1d, Y_1d)\n",
|
|
|
|
|
" fitm.return_temperature(res, omg=1036.5, tof=26e-3, is_print=False)\n",
|
|
|
|
|
" fitm.return_temperature(res, tof=26e-3)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" # print(f' time = {stop-start:.3f} s')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" result.append(res)\n",
|
|
|
|
|
" times.append(stop-start)\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
" break\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n",
|
|
|
|
|
"times = np.array(times)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"execution_count": 11,
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
2023-09-15 11:18:16 +02:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABtAAAAkfCAYAAADrN8yFAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOzdd3gURQPH8e+RDiEh9B56R5COSFFApQqKgBRBRBGwYBdbEnvhtYJYgFBUFAsCIkWa9N4RkI70noQQIGXfPy637CWXyqXB7/M892SzOzM7u7c7u7ezM2MzDMNARERERERERERERERERADIl9MZEBEREREREREREREREclNVIEmIiIiIiIiIiIiIiIiYqEKNBERERERERERERERERELVaCJiIiIiIiIiIiIiIiIWKgCTURERERERERERERERMRCFWgiIiIiIiIiIiIiIiIiFqpAExEREREREREREREREbFQBZqIiIiIiIiIiIiIiIiIhSrQRERERERERERERERERCxUgSYiIiIiIiIiIiIiIiJioQo0EREREREREREREREREQtVoN2gbDab+XGXChUqmGkePHjQbemmJSu2RbJemzZtzO9tyZIlOZ0dyQNGjBiBzWYjf/78HDlyJKezI5JrnD59moCAAGw2G48++mhOZ0dEJEVnz54lLCyMpk2bEhQUhIeHh3k/OHHixJzOnoiIiIiISIaoAk1E8rz4+Hi2bt3K+PHjGTp0KI0aNcLb29t8YNOmTZuczqKkYfv27YwZMwaAp59+mrJly2YqnWeffdap0r1ChQppxpk4caJTnPR8Bg8enKn8Xa+sPtavXr3KlClT6NixI8HBwfj6+lKqVCluu+02Ro0axZkzZ9yzIZmUFdt/8OBBvv32W/r160e9evUICgrCy8uLwoULc8sttzBkyBD+/vvv6877xo0befnll2nUqBGlSpXCx8eH0qVL06BBAwYNGsSUKVM4ceKEy7jFihXjueeeA2DChAmsX7/+uvNjZX3hITQ0NENxQ0ND81xZe/DgwQyf82l9Mrrf8oIzZ84wY8YMXn31Vbp27Urt2rXN8yN//vyUKVOGu+++m/fee4+jR49mOP3cXN5k5pzYunUrJUqUMOMVLlyYdevWZW1Gc5n9+/dTr149QkNDWbt2LRcuXCAhISGns5WlsuMacj3XD5HMyKvlf26+ruRG1mudzWajfPnyXLlyJV1xrfd/vXv3zuKc5jw9b0idu869vPS7XERuMobckADz4y7BwcFmmgcOHHBb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c2aNfH39ycgIIB69eoxcuRIzpw5k2b8ChUqYLPZsNlsaXbnGB8fz/jx42nXrh0lSpTA19eXChUqcO+99zJ9+nTzgXmbNm3MNJcsWZJt2+JukZGRfPHFF3Tp0oUKFSrg7++Pj48PpUuXpm3btoSFhbFjx44001m9ejVPPPEEtWvXJigoCF9fX8qWLcs999zD6NGjiY6OTld+HPvU2j2Mu/ZZQkICkyZNon379pQsWdLpu/3999/Tnc7NpGfPnub38fTTT6cYbsOGDXh7e2Oz2ahfv/5NcWP5/fffm9PdunXLcPyxY8eyYsUKAD766COKFy/urqzdFC5evMjChQvN/60PQVy5//778ff3B+w/rpcuXZql+ctNWrRoYU6ndQ386quvzOnhw4dTsGBBt+WjW7duZtn+ww8/mNfT3GrJkiVO16SMfCTvKFasmDmdUldyWVXeZOU9jyu//fYb9913H1euXAGgdu3a/P3338m678tqBw8eNLf70KFD5vyKFSu6PJ9Su8/O7P2n9fy2fp+TJk1Ktv6BAwe6a9PzpPReQ7Li+uHqHNm8eTNDhw6
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 2000x2800 with 42 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"# fig, axs = plt.subplots(shape[0] , 5, figsize=(14, 4 * shape[0] ),dpi = 100)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"fig, axs = plt.subplots(shape[0] , 6, figsize=(20,4 * shape[0] ),dpi = 100)\n",
|
|
|
|
|
"fig.suptitle(f'{file}: ν = ({data_x.trap_f[0]}, {data_x.trap_f[1]}, {data_x.trap_f[2]}) Hz, T = {data_x.temp[0]*1e9:.0f}nK, tof = {data_x.tof * 1e3:.0f}ms, a = {data_x.a_fac :.0f}a$_0$, N = {data_x.N:.0e} ', y=-0.005*shape[0]+0.965, fontsize=24)\n",
|
|
|
|
|
"# fig.suptitle('test', va='bottom')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"for i in range(0,shape[0]):\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" axs[i,0].set_title(f'image {i}, cond. frac = {fitm.cond_frac(result[i], X, Y) *1e2:.2f} %', loc='left', fontsize=18)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" lmfit.fit_report(result[i])\n",
|
|
|
|
|
" bval = result[i].best_values\n",
|
|
|
|
|
" fit = dp.density_profile_BEC_2d(X,Y, **bval)\n",
|
|
|
|
|
" vmax = np.max(fit)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" if bval['amp_bec'] > bval['amp_th']:\n",
|
|
|
|
|
" cen_str = 'bec'\n",
|
|
|
|
|
" else:\n",
|
|
|
|
|
" cen_str = 'th'\n",
|
|
|
|
|
" cen_x = round(bval[f'x0_{cen_str}'])\n",
|
|
|
|
|
" cen_y = round(bval[f'y0_{cen_str}'])\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax = axs[i,0]\n",
|
|
|
|
|
" ax.pcolormesh(X, Y, cropOD[i], vmin=0, vmax=vmax, cmap='jet', shading='auto')\n",
|
|
|
|
|
" #plt.colorbar(art, ax=ax, label='z')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" # Plot gaussian 2d Fit + legend including Width parameters\n",
|
|
|
|
|
" ax = axs[i,1]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax.pcolormesh(X, Y, fit, vmin=0, vmax=vmax, cmap='jet', shading='auto')\n",
|
|
|
|
|
" #plt.colorbar(art, ax=ax, label='z')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax = axs[i,2]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax.pcolormesh(X, Y, fit-cropOD[i], vmin=0, vmax=0.2, cmap='jet', shading='auto')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax = axs[i,3]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax.plot(x, cropOD[i, cen_y, :])\n",
|
|
|
|
|
" ax.plot(x, fit[cen_y, :], label='bimodal')\n",
|
|
|
|
|
" ax.plot(x, dp.thermal(x, bval['x0_th'], bval['amp_th'], bval['sigma_th']), label='thermal')\n",
|
|
|
|
|
" ax.legend(fontsize=8)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax = axs[i,4]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax.plot(y, cropOD[i, :, cen_x])\n",
|
|
|
|
|
" ax.plot(y, fit[:, cen_x], label='bimodal')\n",
|
|
|
|
|
" ax.plot(y, dp.thermal(y, bval['y0_th'], bval['amp_th'], bval['sigma_th']), label='thermal')\n",
|
|
|
|
|
" ax.legend(fontsize=8)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" ax = axs[i,5]\n",
|
|
|
|
|
" Na = fitm.return_atom_number(result[i], X, Y, is_print=False)\n",
|
|
|
|
|
" ax.axis('off')\n",
|
|
|
|
|
" col_labels = ['Sim', 'Fit']\n",
|
|
|
|
|
" row_labels = ['N', f'N$_{{bec}}$', f'N$_{{th}}$','f', 'T (nk)']\n",
|
|
|
|
|
" table_vals = [[f'{data_x.N:.2e}',f\"{Na['N']:.2e}\"],\n",
|
|
|
|
|
" [f'{data_x.cond_frac.data[i] * data_x.N:.2e}',f\"{Na['N_bec']:.2e}\"],\n",
|
|
|
|
|
" [f'{(1-data_x.cond_frac.data[i]) * data_x.N:.2e}',f\"{Na['N_th']:.2e}\"],\n",
|
|
|
|
|
" [f'{data_x.cond_frac.data[i] *1e2:.1f} %', f\"{Na['cond_f'] *1e2:.2f} %\"],\n",
|
|
|
|
|
" [f'{data_x.temp[i] *1e9:.0f} nK', f'{fitm.return_temperature(result[i], tof=data_x.tof, is_print=False)*1e9:.1f} nK']\n",
|
|
|
|
|
" ]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" my_table = ax.table(cellText=table_vals,\n",
|
|
|
|
|
" colWidths=[0.4]*2,\n",
|
|
|
|
|
" rowLabels=row_labels,\n",
|
|
|
|
|
" colLabels=col_labels,\n",
|
|
|
|
|
" loc='upper right')\n",
|
|
|
|
|
" my_table.scale(1,2)\n",
|
|
|
|
|
" ax.text(0.1,0.1,f'fitting time = {times[i]:.2f} s', fontsize=14)\n",
|
2023-09-15 11:18:16 +02:00
|
|
|
|
" ax.text(0.1,0,f'rot angle = {bval[\"rot_angle\"]}°', fontsize=14)\n",
|
2023-09-14 14:13:49 +02:00
|
|
|
|
"\n",
|
|
|
|
|
"t_fonts=20\n",
|
|
|
|
|
"axs[0,0].set_title(f'Data \\n ', fontsize=t_fonts)\n",
|
|
|
|
|
"axs[0,1].set_title('Fit \\n ', fontsize=t_fonts)\n",
|
|
|
|
|
"axs[0,2].set_title('Data - Fit \\n ', fontsize=t_fonts)\n",
|
|
|
|
|
"axs[0,3].set_title('cut along x \\n ', fontsize=t_fonts)\n",
|
|
|
|
|
"axs[0,4].set_title('cut along y \\n ', fontsize=t_fonts)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# plt.tight_layout()\n",
|
|
|
|
|
"# plt.savefig(f'fit_output/final/{file}_{saveprefix}.png')\n",
|
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 32,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/plain": [
|
|
|
|
|
"array([3.e-08, 3.e-08, 3.e-08, 3.e-08, 3.e-08, 3.e-08, 3.e-08])"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"execution_count": 32,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"data_x.temp"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"metadata": {
|
|
|
|
|
"kernelspec": {
|
|
|
|
|
"display_name": ".venv",
|
|
|
|
|
"language": "python",
|
|
|
|
|
"name": "python3"
|
|
|
|
|
},
|
|
|
|
|
"language_info": {
|
|
|
|
|
"codemirror_mode": {
|
|
|
|
|
"name": "ipython",
|
|
|
|
|
"version": 3
|
|
|
|
|
},
|
|
|
|
|
"file_extension": ".py",
|
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
|
"name": "python",
|
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
|
"version": "3.9.13"
|
|
|
|
|
},
|
|
|
|
|
"orig_nbformat": 4
|
|
|
|
|
},
|
|
|
|
|
"nbformat": 4,
|
|
|
|
|
"nbformat_minor": 2
|
|
|
|
|
}
|