analyseScript/backupScript/2D-MOT power.ipynb

3914 lines
589 KiB
Plaintext
Raw Normal View History

2023-07-01 09:21:45 +02:00
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Import supporting package"
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 2,
2023-07-01 09:21:45 +02:00
"metadata": {},
2023-07-12 17:23:18 +02:00
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'DataContainer'",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32mf:\\Jianshun\\analyseScript\\backupScript\\2D-MOT power.ipynb Cell 2\u001b[0m in \u001b[0;36m1\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=5'>6</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39muncertainties\u001b[39;00m \u001b[39mimport\u001b[39;00m umath\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=7'>8</a>\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39mmatplotlib\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mpyplot\u001b[39;00m \u001b[39mas\u001b[39;00m \u001b[39mplt\u001b[39;00m\n\u001b[1;32m---> <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=9'>10</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mDataContainer\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mReadData\u001b[39;00m \u001b[39mimport\u001b[39;00m read_hdf5_file\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=10'>11</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mAnalyser\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mImagingAnalyser\u001b[39;00m \u001b[39mimport\u001b[39;00m ImageAnalyser\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=11'>12</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mAnalyser\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mFitAnalyser\u001b[39;00m \u001b[39mimport\u001b[39;00m FitAnalyser\n",
"\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'DataContainer'"
]
}
],
2023-07-01 09:21:45 +02:00
"source": [
"import xarray as xr\n",
"import numpy as np\n",
"\n",
"from uncertainties import ufloat\n",
"from uncertainties import unumpy as unp\n",
"from uncertainties import umath\n",
"\n",
"import matplotlib.pyplot as plt\n",
"\n",
"from DataContainer.ReadData import read_hdf5_file\n",
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
"from Analyser.FitAnalyser import FitAnalyser\n",
"from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
"from Analyser.FitAnalyser import NewFitModel\n",
"from ToolFunction.ToolFunction import *\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()"
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 23,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"\n",
"from matplotlib.colors import ListedColormap, LinearSegmentedColormap\n",
"\n",
"import matplotlib.pyplot as plt\n",
"plt.rcParams[\"font.family\"] = \"arial\""
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 24,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [],
"source": [
"def Ncount_to_atoms():\n",
" return 1 / 8.4743e-14 / 0.3725 * 5.86e-6**2 / 0.6606**2"
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 25,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [],
"source": [
"import csv\n",
"\n",
"colormap = np.zeros((1024, 3))\n",
"\n",
"with open('smooth-cool-warm-table-float-1024.csv', newline='') as csvfile:\n",
" spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')\n",
" i = 0\n",
" for row in spamreader:\n",
" try:\n",
" a = row[0].split(',')\n",
" colormap[i, 0] = float(a[1])\n",
" colormap[i, 1] = float(a[2])\n",
" colormap[i, 2] = float(a[3])\n",
" i = i + 1\n",
" except:\n",
" pass\n",
"\n",
"colormap = ListedColormap(colormap)"
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 26,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [],
"source": [
"data_colors = colormap(np.linspace(0, 1, 7))\n",
"plot_blue = data_colors[0]\n",
"plot_red = data_colors[-1]\n",
"plot_red_alpha = 1"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Start a client for parallel computing"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-eb14457e-1720-11ee-8c04-80e82ce2fa8e</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
"\n",
" <tr>\n",
" \n",
" <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
" <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
" \n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" \n",
"\n",
" </table>\n",
"\n",
" \n",
"\n",
" \n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
" <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
" </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">c071fe85</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 6\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 60\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 55.88 GiB\n",
" </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
" <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
"</tr>\n",
"\n",
" \n",
" </table>\n",
"\n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\">\n",
" <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
" </summary>\n",
"\n",
" <div style=\"\">\n",
" <div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-d47e28b4-5276-45c0-964e-87f3987b2160</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm:</strong> tcp://127.0.0.1:54927\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 6\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 60\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Started:</strong> Just now\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 55.88 GiB\n",
" </td>\n",
" </tr>\n",
" </table>\n",
" </div>\n",
" </div>\n",
"\n",
" <details style=\"margin-left: 48px;\">\n",
" <summary style=\"margin-bottom: 20px;\">\n",
" <h3 style=\"display: inline;\">Workers</h3>\n",
" </summary>\n",
"\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:54966\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54967/status\" target=\"_blank\">http://127.0.0.1:54967/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:54930\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-cvobjmxg\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:54960\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54963/status\" target=\"_blank\">http://127.0.0.1:54963/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:54931\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-r0l_epl5\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:54965\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54968/status\" target=\"_blank\">http://127.0.0.1:54968/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:54932\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-mnfl9i_m\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:54954\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54955/status\" target=\"_blank\">http://127.0.0.1:54955/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:54933\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-qkxkq62s\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:54958\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54961/status\" target=\"_blank\">http://127.0.0.1:54961/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:54934\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-zk2j62q_\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://127.0.0.1:54971\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 10\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54972/status\" target=\"_blank\">http://127.0.0.1:54972/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 9.31 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:54935\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-641vd42d\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
"\n",
" </details>\n",
"</div>\n",
"\n",
" </details>\n",
" </div>\n",
"</div>\n",
" </details>\n",
" \n",
"\n",
" </div>\n",
"</div>"
],
"text/plain": [
"<Client: 'tcp://127.0.0.1:54927' processes=6 threads=60, memory=55.88 GiB>"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from dask.distributed import Client\n",
"client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
"client"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Set global path for experiment"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [],
"source": [
"groupList = [\n",
" \"images/MOT_3D_Camera/in_situ_absorption\",\n",
" \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
" \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
"]\n",
"\n",
"dskey = {\n",
" \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
" \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
" \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
"}\n"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Old Loading Rate"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
"img_dir = '//DyLabNAS/Data/'\n",
"SequenceName = \"MOT_3D_Imaging\" + \"/\""
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## With red push"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The detected scaning axes and values are: \n",
"\n",
"{'final_amp': array([0.16, 0.24, 0.32, 0.4 , 0.48, 0.56, 0.64, 0.72, 0.8 , 0.88, 0.96]), 'mot_load_duration': array([ 0.5, 1. , 1.5, 2. , 2.5, 3. , 3.5, 4. , 4.5, 5. , 6. ,\n",
" 7. , 8. , 9. , 10. ]), 'runs': array([0., 1., 2.])}\n"
]
}
],
"source": [
"folderPath = img_dir + SequenceName + '2022/10/14'# get_date()\n",
"\n",
"shotNum = \"0012\"\n",
"filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
"\n",
"dataSetDict = {\n",
" dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
" for i in [0]\n",
"}\n",
"\n",
"dataSet = dataSetDict[\"camera_0\"]\n",
"\n",
"print_scanAxis(dataSet)\n",
"\n",
"scanAxis = get_scanAxis(dataSet)\n",
"\n",
"dataSet = auto_rechunk(dataSet)\n",
"\n",
"dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
"\n",
"imageAnalyser.center = (600, 1150)\n",
"imageAnalyser.span = (1100, 1260)\n",
"imageAnalyser.fraction = (0.1, 0.1)\n",
"\n",
"dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
"dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
"\n",
"Ncount = imageAnalyser.get_Ncount(dataSet_cropOD)\n",
"Ncount_mean = calculate_mean(Ncount)\n",
"Ncount_std = calculate_std(Ncount)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAA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33XQTt956K6tXr+aKK67goYce4rbbbuPrr7/mmmuuYciQIYwZM4ZNmzZx1113sX79esaMGcNzzz3HpEmTOHz4MAaDgYcffpgvvviCrVu3Ehoayrx587jllltYt24dADNmzCAxMZHi4mJKSkqYNGkSy5cvZ+HChZ3xNggEAoGgi+L2SuRXWI8lMJSY2Vdm5lCFlZYSSaNM2kYWOJ8VLj02mFB912g1JegddHi5k19++YVx48ZRWlrqT9mtqqri6NGj/PDDDzz++OPs27fPP//222/HZrOxcuVKZs2ahcFgYMWKFf7xjIwMFi1axJw5c0hOTuaxxx7j+uuvB6C0tJT4+Hjy8vKQJIn09HSKiopISEgA4L333mPRokUcPny4VWsX5U7aFvGeCQSCzsYryRyutPqzTxt+8iusuL3Nfz2G6jUMjA0mPbY+Di7GJ+IiTboOXr2gt9Cly538/PPPZGZm+hvFW61WfvOb3/Dkk0+SnZ3NkCFDAuZnZmby2muvAZCdnc3NN9/cZHzHjh3U1tZSWFgYcH5sbCzh4eHs3LkThUJBRESEX9Q1nFtQUEBNTQ1hYWHt99BdnNNxUX/wwQcsXLiQgwcPBhx/8cUXefLJJykpKSE1NZVHH32UK6+8sr0fQSAQCE6IJMkU1djZ1ziJocTMgXILTk/zjd9NOrVPvMX6khgG1L+ODtaJJAZBl6XDhV1VVRU7d+5k9OjRbN++HZvNxg033MDs2bOJi4vDaDQGzDcYDFgsFgDMZnOL42azGeCE5zc3BmC
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"# ax = fig.gca()\n",
"Ncount_mean.plot.errorbar(hue='final_amp')\n",
"# plt.xlabel('MOT AOM Frequency (MHz)')\n",
"# plt.ylabel('MOT Gradient Coil Current (A)')\n",
"plt.tight_layout()\n",
"# plt.grid(visible=1)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAn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5NTxceCbTab/Z+PPvoor7/+OgUFBURFRdGhQwc8PT0xDOOSXnf58uVMmDCB3bt34+vry2WXXYavry9Apec+87Nl58p9NhEREX9Y1rhxYzZt2nTObc519SpAdHQ0Bw8ePOtYQEAA+fn5f1heUFCAv7//WbcpKytj+vTpDBs2jNdee82+/Prrr6d58+a88MILvPjiizz77LM0adKEL7/80n46+MYbb+Taa69l4sSJbNy48ZyZRaT6qdiJSL313HPP8a9//Yv//Oc/3HrrrfaS0qFDh0t63pSUFAYOHMiAAQP4/PPPad68OQCzZ8+2H8m7VGe7sCArK4vGjRufc5uffvrpnGPn+4xdy5Ytz3phxr59+875Xh09epTCwkI6d+5caXloaCitWrWyf17w0KFDtG/fvtLrOzk50bVrV15//fVzZhKRmqGrYkWk3vr+++9p27Yto0ePtpe6tLQ0tm/fbj+qdzF+/vlnioqKmDJlir3UASxduhTgkp77tJSUFHbu3Gn/Pj09nXXr1tmnDDmb9u3bn/ORmJh4zu1uvPFGdu3aVen1du7cya5du7jxxhvPuk3jxo0JCgr6w6nhnJwc9uzZQ2xsLACtWrViw4YN9qtjoeKI5rp16+zriEjtUbETkXqrQ4cObNu2jeeee45vvvmGOXPmcN1111FcXGz/HN7FuPLKK3FxceHhhx9m5cqVfP7559x666188cUXAJf03KcZhsGAAQNYsGABH3/8Mb179yYwMJD77rvvkp/794YMGUKLFi3o27cv8+fPZ/78+fTt25fExET++te/2tfbvHmzvfw5Ozvz1FNPMX/+fP7+97/z1VdfsWDBAm644QacnZ154IEHAJg6dSoZGRn07duXJUuW8OWXX/LXv/6VdevW8fTTT1f7vojI+anYiUi9NWXKFMaNG8crr7xC3759eeGFF7jzzjt58sknSU5O5sSJExf1vHFxccyfP58jR47Qv39//va3vwHY59o73wUOVdW0aVMeeOABJk6cyOjRo2nRogVr164lKCjokp/799zd3Vm5ciVXXXUV//d//8e9997Ltddey7Jly3Bx+e0TOYMGDeKee+6xf/+Pf/yD999/n/Xr19OvXz8mTZpEq1at2Lx5s/1IZvv27fnmm29wcXFh6NChDB8+nGPHjrF69WpuvfXWat8XETk/i3GpnzAWEZELMnLkSNasWXPOix1ERC6WLp4QkQbDZrNV6fNxZx7FEhGpT3QqVkQajNGjR+Pq6vqnDx1JE5H6SqdiRaTBOHjwIDk5OX+63mWXXYabm1stJBIRqV4qdiIiIiIOQqdiRURERByEip2IiIiIg9ClXxfAZrORnp6Or6/vWW+oLSIiIlLdDMPAarUSERFhv2f2uajYXYD09HSioqLMjiEiIiIN0OHDh4mMjDzvOip2F8DX1xeoeGP9/PxMTiMiIiINQX5+PlFRUfYecj4qdhfg9OlXPz8/FTsRERGpVVX5GJgunhARERFxECp2IiIiIg5CxU5ERETEQajYiYiIiDgIFTsRERERB6FiJyIiIuIgVOxEREREHISKnYiIiIiDMKXYHT9+nBEjRhAcHExgYCADBw4kIyMDgPXr19OxY0d8fHyIjY1lzpw5lbZNSkoiLi4Ob29v2rdvz7p16+xj5eXlPPTQQ4SGhuLr68uAAQPszwuQnZ3NwIEDCQgIICQkhAkTJlBWVlY7Oy0iIiJSw0wpdrfeeisFBQWkpKSQmpqKs7Mzd999NydOnKBfv36MGDGC3Nxc5syZw8SJE9mwYQMAa9asYfz48SQlJZGbm8uwYcPo378/hYWFAEyfPp0VK1a
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"data = Ncount_mean.sel(final_amp=0.88)\n",
"data_std = Ncount_std.sel(final_amp=0.88)\n",
"fig = plt.figure()\n",
"# ax = fig.gca()\n",
"data.plot.errorbar()\n",
"# plt.xlabel('MOT AOM Frequency (MHz)')\n",
"# plt.ylabel('MOT Gradient Coil Current (A)')\n",
"plt.tight_layout()\n",
"# plt.grid(visible=1)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"def factor_from_Ncounts_to_Natom():\n",
" return 1 / (8.474337362524987e-14 * 0.3725) * 5.86e-6**2 / 0.438**2"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"def mot_loading(x, A, tau):\n",
" return A * (1 - np.exp(-x / tau)) * np.heaviside(x, 0)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"data = data * factor_from_Ncounts_to_Natom()\n",
"data_std = data_std * factor_from_Ncounts_to_Natom()"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABk9ElEQVR4nO3de3zO9f/H8ce1IzsZxhw25zNDIZE5NqcOzpRTDpVUSjoXIen8E9909KUkimZ8c8ohFpUix5CwZGwzZnZmx+v3x5Ursw1juz7Xrj3vt9tu2/X+vK/P53XtnTy9P4e3yWw2mxERERGREs/J6AJEREREpGgo2ImIiIg4CAU7EREREQehYCciIiLiIBTsRERERByEgp2IiIiIg1CwExEREXEQCnYiIiIiDkLBTkRERMRBKNiJSJE6deoUnTp1okyZMlSuXJm1a9diMpkIDw8v8mOZTCamTZtW5PstSWJiYrj//vvx8/PDx8eHgQMHEhUVdc33bdu2jeDgYHx8fKhRowZPPvkkycnJufqcOHGCwYMHU7lyZfz8/Ojbty8RERHF9VFEpAi4GF2AiDiW2bNn8/PPP7N48WKqV69OUFAQ27dvp0mTJkaX5nCysrLo1asXKSkpfPTRR2RmZvLCCy/QvXt39u7di6ura77vO3DgACEhIXTo0IFly5Zx6tQpnnvuOf766y9WrVoFQFpaGiEhIWRlZfH+++9TpkwZpkyZQufOnfn999/x9fW14ScVkeulYCciRercuXNUq1aNwYMHW9tuv/12AytyXN988w379u3jwIEDNG3aFICWLVvSrFkzli5dyvDhw/N935IlSzCZTKxcuRI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/33nsvL7zwAufOnWPevHlMnDiR9evXA/DII4+QlpZGjRo1cHd3Z/LkyYSGhmq2TqQY3Xbbbezfv58333yTH374gfnz59OxY0fS09Ot1+HdiFtvvRUXFxeef/55Nm7cyOrVqxkwYABr1qwBuKl9X2I2m+nTpw9Lly5l+fLl9OjRg/Lly/PEE0/c9L6vNGTIEBo0aECvXr346quv+Oqrr+jVqxdBQUEMGjTI2m/Pnj3W8Ofs7Mz06dP56quveOSRR/j+++9ZunQpd955J87Ozjz99NMATJkyhZiYGHr16sW3337L2rVrGTRoENu3b2fGjBlF/llEpGiUmmBXpUoVXFzynnn+5JNP6NOnD/3798fZ2Zn27dvz0EMPMXfuXMByMXXnzp05fPgwycnJPPfccwwcOJDTp0/b+iOIlBovvvgi48ePZ86cOfTq1Yt33nmHESNGMG3aNA4ePHjV69Wupl69enz11VecOnWKe++9l3HjxgFYn7V3tRscrleNGjV4+umneeqppxgzZgwNGjTg559/pkKFCje97yu5u7uzceNGWrVqxcMPP8xjjz1Gu3bt+O6773L9/65fv348+uij1tePP/44ixYt4tdff6V3795MmjSJRo0asWfPHutMZuvWrfnhhx9wcXFh6NChDB8+nHPnzrFlyxYGDBhQ5J9FRIqGyXyzVyKXQCaTiS1bttC5c2d69+7N5s2bc83AZWdnU7duXfbu3UtQUBAvv/wy9913n3V7/fr1eeKJJ5gwYYIR5YuInRo1ahTh4eH8/fffRpciIqVUqbp5Ij8BAQGMGjWKjz/+2NoWExNjvTsuMjIy1zUmYLmDzc3NzaZ1ikjBLl0Hey35zdqLiDiSUnMqtiBjx45lyZIlbNiwgZycHI4ePUrHjh159913Abj33nt57bXX+Ouvv8jMzGTOnDnExMRw9913G1y5iFwyZsyYqz4y5NKXZtJExNGV+lOxAGvWrGHq1KkcPXoUT09P7r/
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fitModel = NewFitModel(mot_loading)\n",
"fitAnalyser = FitAnalyser(fitModel, fitDim=1)\n",
"\n",
"params = fitAnalyser.fitModel.make_params()\n",
"params.add(name=\"A\", value=1e8, max=np.inf, min=-np.inf, vary=True)\n",
"params.add(name=\"tau\", value=1, max=np.inf, min=-np.inf, vary=True)\n",
"\n",
"fitResult = fitAnalyser.fit(data, params, x='mot_load_duration').load()\n",
"freqdata = np.linspace(0, 10, 500)\n",
"fitCurve = fitAnalyser.eval(fitResult, x=freqdata, dask=\"parallelized\").load()\n",
"fitCurve = fitCurve.assign_coords({'x':np.array(freqdata)})\n",
"\n",
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"data.plot.errorbar(ax=ax, yerr = data_std, fmt='ob')\n",
"fitCurve.plot.errorbar(ax=ax, fmt='--g')\n",
"plt.xlabel('Push AOM Freq (MHz)')\n",
"plt.ylabel('NCount')\n",
"plt.tight_layout()\n",
"plt.grid(visible=1)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: ()\n",
"Coordinates:\n",
" final_amp float64 0.88\n",
"Data variables:\n",
" A float64 3.548e+08\n",
" tau float64 2.918</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-306565fe-c794-4807-9d12-42b0a94b6e46' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-306565fe-c794-4807-9d12-42b0a94b6e46' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-df5adb4c-20c8-4566-8e8d-a86a1f0f8f23' class='xr-section-summary-in' type='checkbox' checked><label for='section-df5adb4c-20c8-4566-8e8d-a86a1f0f8f23' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>final_amp</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.88</div><input id='attrs-46e0a84f-98ec-4515-8ae3-f47284f3bb80' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-46e0a84f-98ec-4515-8ae3-f47284f3bb80' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-728f29aa-4c6d-4813-bfb4-f25e88ee19b1' class='xr-var-data-in' type='checkbox'><label for='data-728f29aa-4c6d-4813-bfb4-f25e88ee19b1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.88)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-bcc4a974-46bb-4072-8c23-89fa6a78d769' class='xr-section-summary-in' type='checkbox' checked><label for='section-bcc4a974-46bb-4072-8c23-89fa6a78d769' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>3.548e+08</div><input id='attrs-e952e42d-4ebd-4c1a-8370-88315a4e1039' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e952e42d-4ebd-4c1a-8370-88315a4e1039' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ae3e1a27-1db7-44c3-8223-74f1032c0006' class='xr-var-data-in' type='checkbox'><label for='data-ae3e1a27-1db7-44c3-8223-74f1032c0006' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(3.54756438e+08)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.918</div><input id='attrs-173f8442-39e3-4477-b976-54be113fe968' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-173f8442-39e3-4477-b976-54be113fe968' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-16a309d6-1e1c-4753-8138-a305ff297155' class='xr-var-data-in' type='checkbox'><label for='data-16a309d6-1e1c-4753-8138-a305ff297155' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(2.91809259)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0a1d5298-df4e-4299-8163-fbaa9fb327b6' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0a1d5298-df4e-4299-8163-fbaa9fb327b6'
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" final_amp float64 0.88\n",
"Data variables:\n",
" A float64 3.548e+08\n",
" tau float64 2.918"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"val = fitAnalyser.get_fit_value(fitResult)\n",
"val"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: ()\n",
"Coordinates:\n",
" final_amp float64 0.88\n",
"Data variables:\n",
" A float64 2.776e+06\n",
" tau float64 0.05867</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-11c5cd5b-f73f-4855-a7a6-c2f7d26b992b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-11c5cd5b-f73f-4855-a7a6-c2f7d26b992b' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-9070dfd9-5691-4d56-afbe-ea45a13da857' class='xr-section-summary-in' type='checkbox' checked><label for='section-9070dfd9-5691-4d56-afbe-ea45a13da857' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>final_amp</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.88</div><input id='attrs-5e6f08c9-a13b-414c-8f0e-f69366ce99ab' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5e6f08c9-a13b-414c-8f0e-f69366ce99ab' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a61baea4-47a3-4bb0-abae-0f21c5b981e7' class='xr-var-data-in' type='checkbox'><label for='data-a61baea4-47a3-4bb0-abae-0f21c5b981e7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.88)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-29c4a383-1ce7-4a2e-a4a8-445563d27ef6' class='xr-section-summary-in' type='checkbox' checked><label for='section-29c4a383-1ce7-4a2e-a4a8-445563d27ef6' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.776e+06</div><input id='attrs-667a112d-177c-4a07-ad4d-8ff370431006' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-667a112d-177c-4a07-ad4d-8ff370431006' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-77ad3d5f-cffb-47d3-97fc-ae92496f9a2f' class='xr-var-data-in' type='checkbox'><label for='data-77ad3d5f-cffb-47d3-97fc-ae92496f9a2f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(2776453.58029856)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.05867</div><input id='attrs-7eddaa69-a7ac-4e0e-9dcc-bc1faf26f824' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7eddaa69-a7ac-4e0e-9dcc-bc1faf26f824' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b3f9db1e-7125-465b-b8b5-3864b935dc4a' class='xr-var-data-in' type='checkbox'><label for='data-b3f9db1e-7125-465b-b8b5-3864b935dc4a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.05867137)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-bdb7c108-f4fe-4ec3-afb5-1b3ba4661daa' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-bdb7c108-f4fe-4ec3-afb5-1b3ba466
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Coordinates:\n",
" final_amp float64 0.88\n",
"Data variables:\n",
" A float64 2.776e+06\n",
" tau float64 0.05867"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"std = fitAnalyser.get_fit_std(fitResult)\n",
"std"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray ()&gt;\n",
"array(1.2157134383410748+/-0.02622973148346536, dtype=object)\n",
"Coordinates:\n",
" final_amp float64 0.88</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'></div></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-5f93dfa3-52ec-495e-92cf-d730bb50a676' class='xr-array-in' type='checkbox' checked><label for='section-5f93dfa3-52ec-495e-92cf-d730bb50a676' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>1.216+/-0.026</span></div><div class='xr-array-data'><pre>array(1.2157134383410748+/-0.02622973148346536, dtype=object)</pre></div></div></li><li class='xr-section-item'><input id='section-fa458166-a05a-4e93-858d-3935c8899d5f' class='xr-section-summary-in' type='checkbox' checked><label for='section-fa458166-a05a-4e93-858d-3935c8899d5f' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>final_amp</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.88</div><input id='attrs-3a363972-1acf-477b-87b0-7dd33ed4bbcb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3a363972-1acf-477b-87b0-7dd33ed4bbcb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f6589cbf-4c1c-40d0-9976-2b9ae8db4d3b' class='xr-var-data-in' type='checkbox'><label for='data-f6589cbf-4c1c-40d0-9976-2b9ae8db4d3b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.88)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-41ec6a75-61b8-47c6-80f4-7d80b3e49d40' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-41ec6a75-61b8-47c6-80f4-7d80b3e49d40' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-c2222dfd-faf3-4012-ae97-78b5ac9ee3da' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c2222dfd-faf3-4012-ae97-78b5ac9ee3da' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.DataArray ()>\n",
"array(1.2157134383410748+/-0.02622973148346536, dtype=object)\n",
"Coordinates:\n",
" final_amp float64 0.88"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res = fitAnalyser.get_fit_full_result(fitResult)\n",
"res.A / res.tau / 1e8"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## Without push"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The detected scaning axes and values are: \n",
"\n",
"{'mot_load_duration': array([ 0.5, 1. , 1.5, 2. , 2.5, 3. , 3.5, 4. , 4.5, 5. , 5.5,\n",
" 6. , 6.5, 7. , 8. , 9. , 10. , 11. , 12. , 13. , 14. , 15. ,\n",
" 16. ]), 'runs': array([0., 1.])}\n"
]
}
],
"source": [
"folderPath = img_dir + SequenceName + '2022/10/11'# get_date()\n",
"\n",
"shotNum = \"0018\"\n",
"filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
"\n",
"dataSetDict = {\n",
" dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
" for i in [0]\n",
"}\n",
"\n",
"dataSet = dataSetDict[\"camera_0\"]\n",
"\n",
"print_scanAxis(dataSet)\n",
"\n",
"scanAxis = get_scanAxis(dataSet)\n",
"\n",
"dataSet = auto_rechunk(dataSet)\n",
"\n",
"dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
"\n",
"imageAnalyser.center = (600, 1125)\n",
"imageAnalyser.span = (1100, 1200)\n",
"imageAnalyser.fraction = (0.1, 0.1)\n",
"\n",
"dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
"dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
"\n",
"Ncount = imageAnalyser.get_Ncount(dataSet_cropOD)\n",
"Ncount_mean = calculate_mean(Ncount)\n",
"Ncount_std = calculate_std(Ncount)"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"image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pKyO48vdufw9f5jlFY6XGP+Pt5c3i6KwR2bMrhTDC2jgkxM6p68vLxobmlCc0sTs6O4DRU7ERGReuJwGvyYcfzUKdY8dh2teuFD87AmDOrUjMGdmnFlYhRB/voxLTWjvzEiIiJ1qLCkgi/35pGyO5cv9+ZxvOTnuzN4ecGlCeEM7tSMQZ2akRQb1qAveBDzqdiJiIjUIsMw2Jtz8sKHlN25bDlcwJlLyoU1OXnhw5DOzRjQoRmRwf7mhRWPo2InIiLyK5VVOvgmLf9Umcsjq7DqhQ8dYkJOnmLt2IwerSLw1YUPUkdU7ERERGrAVlbJ7mwbO48UsfNIEalHrezNLqbC4XTtE+DrTd92UQzp1IyBHZuREKkLH6R+qNiJiIicw+mlNHYetZKaVcTOoycfh4+VnHP/FpafL3y4ol207oYgplCxExGRRs/ucHIg/8TJo3BHi1y/Fpxxh4czxVqakBQbRlKLMLq0CKNzbBgtI89eeF+kvqnYiYhIo3Ki3M7u7KIqJW53to1yu/OsfX28vWjXNJguLSyuItc5NkwXPIjbUrETERGPZBgGebZyUs84ArfrSBEHj53gXPdcCvb3ofOp8na6xHWICaWJn06pSsOhYiciIg2ew2lwMP+E6whc6hEru44WkV987lOpMWEBrvKWFGshqUUYrSKD8PbWqVRp2FTsRETErZRVOigsqeR4SQXHSyqwllRy/NTX1tJKjp+o4HhJJYUlFRSWnvq1pBK78+zDcN5e0LZpyFmfh4sOCTBhZiJ1T8VORETqhN3
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure()\n",
"# ax = fig.gca()\n",
"Ncount_mean.plot.errorbar()\n",
"# plt.xlabel('MOT AOM Frequency (MHz)')\n",
"# plt.ylabel('MOT Gradient Coil Current (A)')\n",
"plt.tight_layout()\n",
"# plt.grid(visible=1)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgA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c3i6KwR2bMrhTDC2jgkxM6p68vLxobmlCc0sTs6O4DRU7ERGReuJwGvyYcfzUKdY8dh2teuFD87AmDOrUjMGdmnFlYhRB/voxLTWjvzEiIiJ1qLCkgi/35pGyO5cv9+ZxvOTnuzN4ecGlCeEM7tSMQZ2akRQb1qAveBDzqdiJiIjUIsMw2Jtz8sKHlN25bDlcwJlLyoU1OXnhw5DOzRjQoRmRwf7mhRWPo2InIiLyK5VVOvgmLf9Umcsjq7DqhQ8dYkJOnmLt2IwerSLw1YUPUkdU7ERERGrAVlbJ7mwbO48UsfNIEalHrezNLqbC4XTtE+DrTd92UQzp1IyBHZuREKkLH6R+qNiJiIicw+mlNHYetZKaVcTOoycfh4+VnHP/FpafL3y4ol207oYgplCxExGRRs/ucHIg/8TJo3BHi1y/Fpxxh4czxVqakBQbRlKLMLq0CKNzbBgtI89eeF+kvqnYiYhIo3Ki3M7u7KIqJW53to1yu/OsfX28vWjXNJguLSyuItc5NkwXPIjbUrETERGPZBgGebZyUs84ArfrSBEHj53gXPdcCvb3ofOp8na6xHWICaWJn06pSsOhYiciIg2ew2lwMP+E6whc6hEru44WkV987lOpMWEBrvKWFGshqUUYrSKD8PbWqVRp2FTsRETErZRVOigsqeR4SQXHSyqwllRy/NTX1tJKjp+o4HhJJYUlFRSWnvq1pBK78+zDcN5e0LZpyFmfh4sOCTBhZiJ1T8VORETqhN3
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"data = Ncount_mean\n",
"data_std = Ncount_std\n",
"fig = plt.figure()\n",
"# ax = fig.gca()\n",
"data.plot.errorbar()\n",
"# plt.xlabel('MOT AOM Frequency (MHz)')\n",
"# plt.ylabel('MOT Gradient Coil Current (A)')\n",
"plt.tight_layout()\n",
"# plt.grid(visible=1)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
"data = data * factor_from_Ncounts_to_Natom()\n",
"data_std = data_std * factor_from_Ncounts_to_Natom()"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABZC0lEQVR4nO3deVxU9f7H8dewiLKJiikIbrkkri1mlrjlvmVoWlpqeb1p3RKt7s26XjVbbt5SKTOtm9Y1zRLRW6alpahZZpvlkjc1FcQVFdkUh+H8/pgfkwgoKDMHZt7Px4MHzHe+c87nAwbvvmfOORbDMAxEREREpMLzMrsAERERESkbCnYiIiIibkLBTkRERMRNKNiJiIiIuAkFOxERERE3oWAnIiIi4iYU7ERERETchIKdiIiIiJtQsBMRERFxEx4X7E6ePEmjRo1ITEws0fy8vDyeffZZIiIiqFq1KrfddhsbN250bpEiIiIiV8Gjgt2WLVto3749+/fvL/Fr5s+fz8qVK/n22285c+YMQ4cOpW/fvpw/f96JlYqIiIiUnscEu/fee49hw4bxwgsvFHruiy++4NZbbyUkJITmzZuzePFix3O//voreXl55OXlYRgGXl5e+Pv7u7J0ERERkRKxGIZhmF2EKxw7dozQ0FB8fHywWCxs2LCBzp078/PPP9O+fXvef/997rrrLr799lvuuusu3n//fXr27Mnu3bvp3bs3SUlJeHt7U6VKFT799FM6duxodksiIiIiBXjMil3t2rXx8fEpND5//nzuuusuYmJi8Pb25vbbb2fMmDHMmTMHgAsXLtC5c2f27NlDRkYGf/3rXxk8eDDHjh1zdQsiIiIil+Uxwa44Bw8eZMWKFYSEhDg+Xn/9dZKTkwF44IEH6N27N02bNqVKlSpMnjyZqlWrsmzZMpMrFxERESmo8BKWh4mIiGDUqFHMmzfPMXb06FHyj1AnJSWRk5NT4DW+vr5UqlTJpXWKiIiIXInHr9iNHj2aJUuWsHbtWvLy8ti7dy8dO3bklVdeAWDAgAE8//zz/P7771itVuLi4jh69Cj9+vUzuXIRERGRgjw+2LVr144PPviAZ555hmrVqtGpUycGDBjAP//5TwDefPNN+vTpQ8eOHbnuuutISEhg7dq11KlTx+TKRURERArymLNiRURERNydx6/YiYiIiLgLBTsRERERN+H2Z8Xm5eVx5MgRgoKCsFgsZpcjIiIiUiqGYZCRkUF4eDheXpdfk3P7YHfkyBEiIyPNLkNERETkmiQnJxMREXHZOW4f7IKCggD7NyM4ONgp+7Baraxdu5YePXrg6+vrlH2UZ+pf/at/9a/+1b/6d17/6enpREZGOjLN5bh9sMs//BocHOzUYOfv709wcLDH/sNW/+pf/at/9a/+PY2r+y/JW8p08oSIiIiIm1CwExEREXETCnYiIiIibkLBTkRERMRNKNiJiIiIuAlTg93Jkydp1KgRiYmJxc6ZN28eTZs2JSgoiCZNmjB37lzXFSgiIiJSgZh2uZMtW7YwcuRI9u/fX+yclStXMmnSJNasWUO7du3YunUrffr0oVatWgwaNMiF1YqIiIiUf6as2L333nsMGzaMF1544bLzjhw5wtNPP81tt92GxWKhffv2dOnShU2bNrmoUhEREZGKw5QVu549ezJ8+HB8fHy49957i533yCOPFHh84sQJNm3axMyZM4t9TU5ODjk5OY7H6enpgP0iglar9RorL1r+dp21/fJO/av/iz97GvWv/i/+7GnUv2v6L832LYZhGE6s5coFWCxs2LCBzp07X3besWPH6Nu3L6GhoXz66af4+BSdSadOncq0adMKjS9ZsgR/f/+yKFlERETEZbKzsxk2bBhnz5694l20KkSw27p1K/fccw/R0dEsXLgQPz+/YucWtWIXGRlJamqqU28ptm7dOrp37+6xt1RR/+pf/at/9a/+PY2r+k9PTyc0NLREwa7c3yt2wYIFPPbYYzz33HM88cQTV5zv5+dXZPDz9fV1+j86V+yjPFP/6l/9q39Ppf7VvzP7L822y3WwW758OePGjePjjz+mZ8+eZpcjIiIiUq6VuwsUBwYGsnjxYgCmTZtGbm4ugwYNIjAw0PExduxYk6sUERERKX9MX7G79C1+mZmZj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IiUmNkrZjp54Q8BAfYVUsNAwVIcFOxERKTEysOKWf7JC3XqFBzXyQsiukCxiIiUQv6K2eDB9hB38UkUrlwxi4mBu+5y/Z0nRMo7BTsRESmV/BWzou78MHu261bMvL11P1aRSynYiYhIqeWvmG3YkMuaNdvp3bsNXbr4aMVMxGQKdiIiUmp5Rh47Tv5Cp07NycpKoVOn1gp1IuWAgp2IiJRI5oVM1u1fxye/fcKnez/lRNYJfv/L72aXJSIXUbATEZFiHc04SsKvCazau4r1B9ZzwXbB8VywXzB7Tu0xsToRuZSCnYiIOOQZeeTk5lDFtwoAGw9t5C9r/uJ4/vpq19O/SX/6N+1PdN1oyIPVv642q1wRuYSCnYiIh7ParGw8tJGEXxNYsWcFf2n7F57t+CwAvRr1olO9TvRp3If+TfpzQ+gNWC66iJ01z2pW2SJSBAU7EREPdD73POv2ryNhTwIf/+9jTp877Xhu/cH1jmAXUjmExFGJJlUpIqWlYCci4mFseTYaxjXkaOYfN3QN9Q9lYNOBDIoaRNcGXU2sTkSuhYKdiIgby7qQxarfVrE5aTNz+swBwNvLmw51O/B18tfENIthULNB3FH3Dny89CdBpKLTf8UiIm4mJzeHz/d/zgc7P+Dj/31MtjUbgEfbPkqzms0AeKv/WwT7BeNl0S3DRdyJgp2IyFXKyoLAQF/gLs6csRISYm49Px/7mbhv40j4NYGzOWcd4w2rNeTe5vcS7BfsGAupHGJChSLibAp2IiIVVJ6Rx/nc8/j7+gOQnJ7Mwu0LAQgPCmd
"text/plain": [
"<Figure size 640x480 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fitModel = NewFitModel(mot_loading)\n",
"fitAnalyser = FitAnalyser(fitModel, fitDim=1)\n",
"\n",
"params = fitAnalyser.fitModel.make_params()\n",
"params.add(name=\"A\", value=1e8, max=np.inf, min=-np.inf, vary=True)\n",
"params.add(name=\"tau\", value=1, max=np.inf, min=-np.inf, vary=True)\n",
"\n",
"fitResult = fitAnalyser.fit(data, params, x='mot_load_duration').load()\n",
"freqdata = np.linspace(0, 10, 500)\n",
"fitCurve = fitAnalyser.eval(fitResult, x=freqdata, dask=\"parallelized\").load()\n",
"fitCurve = fitCurve.assign_coords({'x':np.array(freqdata)})\n",
"\n",
"fig = plt.figure()\n",
"ax = fig.gca()\n",
"\n",
"data.plot.errorbar(ax=ax, yerr = data_std, fmt='ob')\n",
"fitCurve.plot.errorbar(ax=ax, fmt='--g')\n",
"plt.xlabel('Push AOM Freq (MHz)')\n",
"plt.ylabel('NCount')\n",
"plt.tight_layout()\n",
"plt.grid(visible=1)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: ()\n",
"Data variables:\n",
" A float64 1.193e+08\n",
" tau float64 4.666</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-3e8b8706-d701-41ad-8200-e1caf324ff4f' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-3e8b8706-d701-41ad-8200-e1caf324ff4f' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-48c4bb83-68b0-49be-94ac-b96b366e2a21' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-48c4bb83-68b0-49be-94ac-b96b366e2a21' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-c2d074f7-2a4c-4728-8200-18cb7daecd27' class='xr-section-summary-in' type='checkbox' checked><label for='section-c2d074f7-2a4c-4728-8200-18cb7daecd27' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.193e+08</div><input id='attrs-d11e30e4-f834-4f05-9d5f-d03a106fad86' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d11e30e4-f834-4f05-9d5f-d03a106fad86' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bdb6f408-a6e6-4edb-8486-2c3ccaaed511' class='xr-var-data-in' type='checkbox'><label for='data-bdb6f408-a6e6-4edb-8486-2c3ccaaed511' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(1.19289449e+08)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>4.666</div><input id='attrs-8730b129-dbfe-44dc-87d2-e8279113e974' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8730b129-dbfe-44dc-87d2-e8279113e974' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6e38aadd-38e6-4f9d-a670-31f988ae90aa' class='xr-var-data-in' type='checkbox'><label for='data-6e38aadd-38e6-4f9d-a670-31f988ae90aa' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(4.66646868)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0e6a306c-69c4-4e2d-a06e-f91190fd01d3' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0e6a306c-69c4-4e2d-a06e-f91190fd01d3' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-7c126d51-7bce-44d7-a8e5-f8285ece4e46' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7c126d51-7bce-44d7-a8e5-f8285ece4e46' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Data variables:\n",
" A float64 1.193e+08\n",
" tau float64 4.666"
]
},
"execution_count": 30,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"val = fitAnalyser.get_fit_value(fitResult)\n",
"val"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
"Dimensions: ()\n",
"Data variables:\n",
" A float64 1.591e+06\n",
" tau float64 0.1586</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-38c68664-9f21-47e9-ae7b-e2791ad41bc4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-38c68664-9f21-47e9-ae7b-e2791ad41bc4' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-15885cae-358f-44e6-b2c7-152bbe3484eb' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-15885cae-358f-44e6-b2c7-152bbe3484eb' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-8e6f4849-f4ef-4966-8549-1e26327a3a91' class='xr-section-summary-in' type='checkbox' checked><label for='section-8e6f4849-f4ef-4966-8549-1e26327a3a91' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.591e+06</div><input id='attrs-f987e1c1-8bbd-4837-aea6-81f1f3631bb5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f987e1c1-8bbd-4837-aea6-81f1f3631bb5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2cea5ed4-cd11-4731-92f1-a9f83e88f20a' class='xr-var-data-in' type='checkbox'><label for='data-2cea5ed4-cd11-4731-92f1-a9f83e88f20a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(1591103.66003124)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.1586</div><input id='attrs-e050af12-da09-4017-b33d-295dda743e20' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e050af12-da09-4017-b33d-295dda743e20' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-413af6b2-77de-4114-ab8c-180f8e3f6dad' class='xr-var-data-in' type='checkbox'><label for='data-413af6b2-77de-4114-ab8c-180f8e3f6dad' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.15857749)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-636e37ff-da1b-49df-af26-ab46778e7ee3' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-636e37ff-da1b-49df-af26-ab46778e7ee3' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-84a633aa-a33c-4e99-ba4d-8c38d3dadea4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-84a633aa-a33c-4e99-ba4d-8c38d3dadea4' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: ()\n",
"Data variables:\n",
" A float64 1.591e+06\n",
" tau float64 0.1586"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"std = fitAnalyser.get_fit_std(fitResult)\n",
"std"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
"<defs>\n",
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
"</symbol>\n",
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
"</symbol>\n",
"</defs>\n",
"</svg>\n",
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
" *\n",
" */\n",
"\n",
":root {\n",
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
" --xr-background-color: var(--jp-layout-color0, white);\n",
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
"}\n",
"\n",
"html[theme=dark],\n",
"body[data-theme=dark],\n",
"body.vscode-dark {\n",
" --xr-font-color0: rgba(255, 255, 255, 1);\n",
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
" --xr-border-color: #1F1F1F;\n",
" --xr-disabled-color: #515151;\n",
" --xr-background-color: #111111;\n",
" --xr-background-color-row-even: #111111;\n",
" --xr-background-color-row-odd: #313131;\n",
"}\n",
"\n",
".xr-wrap {\n",
" display: block !important;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: 'â–º';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: 'â–¼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-index-preview {\n",
" grid-column: 2 / 5;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-name,\n",
".xr-var-dims,\n",
".xr-var-dtype,\n",
".xr-preview,\n",
".xr-attrs dt {\n",
" white-space: nowrap;\n",
" overflow: hidden;\n",
" text-overflow: ellipsis;\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-var-name:hover,\n",
".xr-var-dims:hover,\n",
".xr-var-dtype:hover,\n",
".xr-attrs dt:hover {\n",
" overflow: visible;\n",
" width: auto;\n",
" z-index: 1;\n",
"}\n",
"\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" display: none;\n",
" background-color: var(--xr-background-color) !important;\n",
" padding-bottom: 5px !important;\n",
"}\n",
"\n",
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
".xr-var-data-in:checked ~ .xr-var-data,\n",
".xr-index-data-in:checked ~ .xr-index-data {\n",
" display: block;\n",
"}\n",
"\n",
".xr-var-data > table {\n",
" float: right;\n",
"}\n",
"\n",
".xr-var-name span,\n",
".xr-var-data,\n",
".xr-index-name div,\n",
".xr-index-data,\n",
".xr-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-data,\n",
".xr-index-data {\n",
" grid-column: 1 / -1;\n",
"}\n",
"\n",
"dl.xr-attrs {\n",
" padding: 0;\n",
" margin: 0;\n",
" display: grid;\n",
" grid-template-columns: 125px auto;\n",
"}\n",
"\n",
".xr-attrs dt,\n",
".xr-attrs dd {\n",
" padding: 0;\n",
" margin: 0;\n",
" float: left;\n",
" padding-right: 10px;\n",
" width: auto;\n",
"}\n",
"\n",
".xr-attrs dt {\n",
" font-weight: normal;\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-attrs dt:hover span {\n",
" display: inline-block;\n",
" background: var(--xr-background-color);\n",
" padding-right: 10px;\n",
"}\n",
"\n",
".xr-attrs dd {\n",
" grid-column: 2;\n",
" white-space: pre-wrap;\n",
" word-break: break-all;\n",
"}\n",
"\n",
".xr-icon-database,\n",
".xr-icon-file-text2,\n",
".xr-no-icon {\n",
" display: inline-block;\n",
" vertical-align: middle;\n",
" width: 1em;\n",
" height: 1.5em !important;\n",
" stroke-width: 0;\n",
" stroke: currentColor;\n",
" fill: currentColor;\n",
"}\n",
"</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray ()&gt;\n",
"array(0.2556310933363963+/-0.009332131323758952, dtype=object)</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'></div></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-0f74fa61-81d9-43b3-8dfa-efeee1be9233' class='xr-array-in' type='checkbox' checked><label for='section-0f74fa61-81d9-43b3-8dfa-efeee1be9233' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>0.256+/-0.009</span></div><div class='xr-array-data'><pre>array(0.2556310933363963+/-0.009332131323758952, dtype=object)</pre></div></div></li><li class='xr-section-item'><input id='section-c5825fc5-54fe-44a0-94bf-b6406a837c7f' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c5825fc5-54fe-44a0-94bf-b6406a837c7f' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-596126cf-96e8-460c-b70b-6f0af94bbaef' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-596126cf-96e8-460c-b70b-6f0af94bbaef' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-8562ca1f-db6a-4c04-acc5-429ba0b0bb3a' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-8562ca1f-db6a-4c04-acc5-429ba0b0bb3a' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.DataArray ()>\n",
"array(0.2556310933363963+/-0.009332131323758952, dtype=object)"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"res = fitAnalyser.get_fit_full_result(fitResult)\n",
"res.A / res.tau / 1e8"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"# Loading rate"
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 27,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [],
"source": [
"img_dir = '//DyLabNAS/Data/'\n",
"SequenceName = \"Repetition_scan\" + \"/\""
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 39,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2492.803132748206"
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"Ncount_to_atoms()"
]
},
{
"cell_type": "code",
"execution_count": 28,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [],
"source": [
"powers = [150, 200, 250, 300, 350, 400]\n",
"ncounts_withpush = np.array([5072.7, 9171.8, 16721.7, 23160.8, 27965.0, 32395.8]) * Ncount_to_atoms()\n",
"ncount_withpush_errors = np.array([80.7, 146.9, 142.1, 514.9, 433.6, 631.2]) * Ncount_to_atoms()\n",
"\n",
"ncounts_withoutpush = np.array([629.0, 1567.6, 3063.7, 4426.5, 4755.4, 4920.9]) * Ncount_to_atoms()\n",
"ncount_withoutpush_errors = np.array([22.9, 53.8, 79.9, 63.7, 191.5, 190.9]) * Ncount_to_atoms()\n",
"\n",
"sat_ncount_withpush = np.array([23921.7, 39196.8, 60078.6, 75443.0, 84752.0, 91294.0]) * Ncount_to_atoms()\n",
"sat_ncount_withpush_errors = np.array([88.3, 138.8, 89.0, 278.0, 210.1, 355.1]) * Ncount_to_atoms()\n",
"\n",
"sat_ncount_withoutpush = np.array([4224.1, 9672.3, 17949.6, 24080.9, 25218.2, 26968.5]) * Ncount_to_atoms()\n",
"sat_ncount_withoutpush_errors = np.array([37.5, 77.2, 105.9, 75.3, 217.6, 265.0]) * Ncount_to_atoms()"
]
},
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 29,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1.50000000e+02, 2.00000000e+02, 2.50000000e+02, 3.00000000e+02,\n",
" 3.50000000e+02, 4.00000000e+02],\n",
" [1.26452425e+07, 2.28634918e+07, 4.16839061e+07, 5.77353148e+07,\n",
" 6.97112396e+07, 8.07563517e+07],\n",
" [1.26452425e+07, 2.28634918e+07, 4.16839061e+07, 5.77353148e+07,\n",
" 6.97112396e+07, 8.07563517e+07]])"
]
},
2023-07-12 17:23:18 +02:00
"execution_count": 29,
2023-07-01 09:21:45 +02:00
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.array([powers, ncounts_withpush, ncounts_withpush])"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('loading_rate_withpush.txt', \n",
" np.array([powers, ncounts_withpush, ncount_withpush_errors]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('loading_rate_withoutpush.txt', \n",
" np.array([powers, ncounts_withoutpush, ncount_withoutpush_errors]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('sat_ncount_withpush.txt', \n",
" np.array([powers, sat_ncount_withpush, sat_ncount_withpush_errors]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('sat_ncount_withoutpush.txt', \n",
" np.array([powers, sat_ncount_withoutpush, sat_ncount_withoutpush_errors]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('old_loading_rate_withpush.txt', \n",
" np.array([[430], [1.2157134383410748e8], [0.02622973148346536e8]]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('old_loading_rate_withoutpush.txt', \n",
" np.array([[430], [0.2556310933363963e8], [0.009332131323758952e8]]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('old_sat_ncount_withpush.txt', \n",
" np.array([[430], [3.54756438e8], [2776453.58029856]]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"outputs": [],
"source": [
"np.savetxt('old_sat_ncount_withoutpush.txt', \n",
" np.array([[430], [1.19289449e8], [1591103.66003124]]),\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_axes.errorbar([430], [1.2157134383410748e8], yerr=[0.02622973148346536e8], color=plot_red, marker='^', **plot_kwarg)\n",
"plot_axes.errorbar([430], [0.2556310933363963e8], yerr=[0.009332131323758952e8], color='k', marker='*', markersize=15)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_axes.errorbar([430], [3.54756438], yerr=[2776453.58029856/1e8], color=plot_red, marker='^', **plot_kwarg)\n",
"plot_axes.errorbar([430], [1.19289449], yerr=[1591103.66003124/1e8], color=\"k\", marker='*', markersize=15)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
2023-07-12 17:23:18 +02:00
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## V1"
]
},
2023-07-01 09:21:45 +02:00
{
"cell_type": "code",
2023-07-12 17:23:18 +02:00
"execution_count": 6,
2023-07-01 09:21:45 +02:00
"metadata": {},
"outputs": [
{
"data": {
2023-07-12 17:23:18 +02:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAvsAAAVeCAYAAADv9/SdAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAEAAElEQVR4nOzdd1RU1/c28OfSERyKBVARRMXeKxJFsQH2bmxBU0xMTL6aGI0lGo0xJrElMUWjYhJN7BXFWLCLFbuIIiooohQpIv2+f/ByfzMytHE6z2ct1roz95x79oDCnjPn7iOIoiiCiIiIiIiMjomuAyAiIiIiIs1gsk9EREREZKSY7BMRERERGSkm+0RERERERorJPhERERGRkWKyT0RERERkpJjsExEREREZKSb7RERERERGisk+EREREZGRYrJPRERERGSkmOwTERERERkptSb7kydPhiAI+PDDD9V5WUl6ejpq1KgBMzMzhIWFaWQMIiIiIiJjIYiiKKrjQgcOHIC/vz/s7e1x584dVKlSRR2XLWL9+vUIDAxE3bp1cfnyZdja2mpkHCIiIiIiQ6eWmf0XL17gnXfegSiKmDVrlsYSfQAYO3YsWrVqhaioKMycOVNj4xARERERGTq1zOx//vnn+P7771GrVi3cvXsXlpaW6oitWCEhIfD394epqSkuXLiAli1banQ8IiIiIiJD9Noz+/fv38fy5csBANOnT9d4og8Afn5+aN++PfLy8vDpp59qfDwiIiIiIkP02sn+ggULkJOTAxsbG7z11lvqiKlMJk2aBAA4cuQIjh07prVxiYiIiIgMxWsl+3Fxcfjrr78AACNGjEDlypVL7XPkyBFMnjwZrVq1gpOTEywsLGBnZwcPDw8MHz4c//zzD/Ly8kq9zrBhw2BnZwcA+Pbbb1/nZRARERERGaXXWrO/YMECfPnllwCAgwcPokePHsW2jYuLw/Dhw3Hy5MlSr9umTRsEBwfDycmpxHZvvfUW/vzzTwiCgLt378LDw6N8L4CIiIiIyIi9VrJfr149REVFwcbGBomJicWu13/x4gVatGiBqKgoAICDgwP69OmD+vXrw8LCAnFxcTh48CBu3bol9enTpw/27t1b4vgbN27E6NGjAQDz5s3D3LlzVX0pRERERERGR+Vk/8aNG2jatCmAghtm9+/fX2zbuXPnYv78+QCAdu3a4cCBA3BwcCjS7vvv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UrMHToUERERCArKwtXr15F3759ERQUhG7duiExMVHXoRIRERGpBZN9qjC+/fZbREZGokuXLvj333/RoEEDWFhYoFmzZti5cyfatWuH27dv44cfftB1qERERERqwWSfKoxdu3YBAD7//PMi50xMTDBz5kwAwLZt27QaFxEREZGmMNmnCiM2NhYA4OnpqfR8w4YNAbDOPhERERkPJvtUYchkMgDAkydPlJ4vfL5y5cpai4mIiIhIk5jsU4XRpUsXAMD69euVnt+wYYNCOyIiIiJDx2SfKozPP/8cpqamWLt2LRYvXozs7GwAQH5+Pr777jusWbMGpqammD59uo4jJSIiIlIPbqpFFcqqVaswadIk5OXlwdHREe7u7rh79y5SU1NhamqKX375Be+9956uwyQiIiJSC87sk9aJoghvb28IgoCgoKBy9Y2NjcX06dPRvHlz2NrawsbGBp6ennj//fcRHh5eav/33nsPp0+fxtChQ2FmZoarV6/C2toaQ4cOxenTp5noExERkVHhzD5p3cKFCzF79mwAwLp16xAYGFimftu3b0dgYCDS0tKUnjc1NcWsWbPw1VdfqStUIiIiIoNmpusAqGJZt24d5syZU+5+hw4dwvDhw5GXlwcAaNW
2023-07-01 09:21:45 +02:00
"text/plain": [
"<Figure size 816x1615.68 with 4 Axes>"
]
},
2023-07-12 17:23:18 +02:00
"metadata": {},
2023-07-01 09:21:45 +02:00
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure(figsize=(6.8, 6.8/4*3*2*(1 + 16/50)), dpi=120)\n",
"grid = fig.add_gridspec(4, 1, height_ratios=[2, 50, 10, 50], wspace=0.4, hspace=0.1)\n",
"\n",
"######################\n",
"# fig.a\n",
"######################\n",
"\n",
"plot_axes = plt.subplot(grid[1, 0])\n",
"\n",
"plot_kwarg = {\n",
" # 'fmt': 'o',\n",
" \n",
" # Style of line\n",
" 'linestyle': 'None',\n",
" 'linewidth': 2,\n",
" \n",
" # Style of markder\n",
" # 'marker': '.',\n",
" 'markersize': 5,\n",
" # 'markerfacecolor': plot_blue,\n",
" # 'markeredgecolor': plot_blue,\n",
" 'markeredgewidth': 4,\n",
" \n",
" # Style of errorbar\n",
" 'capsize': 0,\n",
" # 'ecolor': plot_blue, # color of errorbar line\n",
" 'capthick': 1.5,\n",
" 'elinewidth': 3,\n",
" \n",
" # text for legend\n",
" 'label': 'Experiment',\n",
" }\n",
"\n",
"\n",
"# 1.2157134383410748+/-0.02622973148346536\n",
"# 0.2556310933363963+/-0.009332131323758952\n",
"\n",
"plot_axes.errorbar(powers, ncounts_withpush, yerr=ncount_withpush_errors, color=plot_red, marker='o', **plot_kwarg)\n",
"plot_axes.errorbar(powers, ncounts_withoutpush, yerr=ncount_withoutpush_errors, color=\"k\", marker='s', **plot_kwarg)\n",
"plot_axes.errorbar([430], [1.2157134383410748e8], yerr=[0.02622973148346536e8], color=plot_red, marker='^', **plot_kwarg)\n",
"plot_axes.errorbar([430], [0.2556310933363963e8], yerr=[0.009332131323758952e8], color='k', marker='*', markersize=15)\n",
"\n",
"plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
"plot_axes.set_ylabel(\"Loading rate $\\Phi_\\mathrm{3D}$ (atoms/s)\", fontsize=20)\n",
"\n",
"plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
"plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
"plot_axes.xaxis.offsetText.set_fontsize(20)\n",
"plot_axes.yaxis.offsetText.set_fontsize(20)\n",
"\n",
"plt.setp(plot_axes.spines.values(), linewidth=3)\n",
"plot_axes.xaxis.set_tick_params(width=3)\n",
"plot_axes.yaxis.set_tick_params(width=3)\n",
"plot_axes.tick_params(direction='in', length=10)\n",
"\n",
"if np.max(plot_axes.get_xticks()) < 1000:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
"else:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
"if np.max(plot_axes.get_yticks()) < 1000:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
"else:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
"\n",
"# plot_axes.set_ylim([-0.1e8, 9e7])\n",
"\n",
"######################\n",
"\n",
"plot_axes.legend( [\"with red push\", \"without push\"],\n",
" fontsize=20, loc = 'lower right', bbox_to_anchor=(0.1, 0.7, 0.5, 0.5), shadow=False, \n",
" facecolor='white', framealpha=1, edgecolor='gray')\n",
"\n",
"######################\n",
"\n",
"######################\n",
"# fig.b\n",
"######################\n",
"\n",
"plot_axes = plt.subplot(grid[3, 0])\n",
"\n",
"plot_kwarg = {\n",
" # 'fmt': 'o',\n",
" \n",
" # Style of line\n",
" 'linestyle': 'None',\n",
" 'linewidth': 2,\n",
" \n",
" # Style of markder\n",
" # 'marker': '.',\n",
" 'markersize': 5,\n",
" # 'markerfacecolor': plot_blue,\n",
" # 'markeredgecolor': plot_blue,\n",
" 'markeredgewidth': 4,\n",
" \n",
" # Style of errorbar\n",
" 'capsize': 0,\n",
" # 'ecolor': plot_blue, # color of errorbar line\n",
" 'capthick': 1.5,\n",
" 'elinewidth': 3,\n",
" \n",
" # text for legend\n",
" # 'label': 'Experiment',\n",
" }\n",
"\n",
"plot_axes.errorbar([430], [3.54756438], yerr=[2776453.58029856/1e8], color=plot_red, marker='^', **plot_kwarg)\n",
"plot_axes.errorbar([430], [1.19289449], yerr=[1591103.66003124/1e8], color=\"k\", marker='*', markersize=15)\n",
"\n",
"plot_axes.errorbar(powers, sat_ncount_withpush / 1e8, yerr=sat_ncount_withpush_errors / 1e8, color=plot_red, marker='o', **plot_kwarg)\n",
"plot_axes.errorbar(powers, sat_ncount_withoutpush / 1e8, yerr=sat_ncount_withoutpush_errors / 1e8, color=\"k\", marker='s', **plot_kwarg)\n",
"\n",
"plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
"plot_axes.set_ylabel(\"Saturation atom $N_\\mathrm{sat}$ $(10^8)$\", fontsize=20)\n",
"\n",
"plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
"plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
"plot_axes.xaxis.offsetText.set_fontsize(20)\n",
"plot_axes.yaxis.offsetText.set_fontsize(20)\n",
"\n",
"plt.setp(plot_axes.spines.values(), linewidth=3)\n",
"plot_axes.xaxis.set_tick_params(width=3)\n",
"plot_axes.yaxis.set_tick_params(width=3)\n",
"plot_axes.tick_params(direction='in', length=10)\n",
"\n",
"if np.max(plot_axes.get_xticks()) < 1000:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
"else:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
"if np.max(plot_axes.get_yticks()) < 1000:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
"else:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
"\n",
"plot_axes.set_ylim([0, 4])\n",
"\n",
"plt.setp(plot_axes.get_yticklabels()[0], visible=False)\n",
"\n",
"######################################\n",
"\n",
"plot_axes = plt.subplot(grid[0, 0])\n",
"plot_axes.text(-0.17, 0.8, '(a)', va='bottom', fontsize=20)\n",
"plot_axes.set_axis_off()\n",
"\n",
"plot_axes = plt.subplot(grid[2, 0])\n",
"plot_axes.text(-0.17, 0.1, '(b)', va='bottom', fontsize=20)\n",
"plot_axes.set_axis_off()\n",
"\n",
"fig.savefig('figS1_v2.pdf', bbox_inches = \"tight\")\n",
"\n",
"plt.show()"
]
},
2023-07-12 17:23:18 +02:00
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"## V2"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
"def curve(A, P0, Psat, x):\n",
" return A*(1-np.exp(-(x-P0)/Psat))"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA1oAAAKdCAYAAAA6OBgmAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAEAAElEQVR4nOzdd3hUVbfH8e+kd1KA0CH03iFAqIIKCKKiYAFFRRH1tSNKESwgggW7qAhWFJCmgIooIIQWKdJrQgsEQoA00ibn/pGbkUhC2kkm5fd5njz3zDl7n7My3pfMmr332hbDMAxERERERETENA72DkBERERERKSsUaIlIiIiIiJiMiVaIiIiIiIiJlOiJSIiIiIiYjIlWiIiIiIiIiZToiUiIiIiImIyJVoiIiIiIiImU6IlIiIiIiJiMiVaIiIiIiIiJlOiJSIiIiIiYjIlWiIiIiIiIiYrd4mWYRiEhIRgsViYO3eu6ff+8ccfGTJkCEFBQbi7u+Pj40Pr1q0ZM2YMx44dM/V5IiIiIiJSMjnZO4DiNnXqVEJDQ02/74kTJ7jrrrvYsGFDlvNJSUns3LmTnTt38tFHH/Hxxx9z7733mv58EREREREpOcpVojVnzhwmTpxo+n1PnTpFjx49CA8PB8DHx4fBgwdTt25doqOjWbp0KRERESQmJjJixAgqVKjAoEGDTI9DRERERERKBothGIa9gyhqhmEwZcoUXnrpJa78defMmcOIESMKff8BAwawfPlyAHr37s2CBQvw8/OzXU9NTeXRRx/l888/B6Bq1aocO3YMZ2fnQj9bRERERERKnjK/RisqKoqbbrqJiRMnUhQ55c8//2xLsjp16sTy5cuzJFkAzs7OfPjhhzRs2BCA06dPs3LlStNjERERERGRkqHMJlqXL1/mtddeo379+rakxtvbmx49epj6nNmzZwPg6OjIxx9/jKura7btXFxcGD16NM2aNaN79+7Ex8ebGoeIiIiIiJQcZTbR+uGHH5g4caItoWnbti0bN26kZ8+epj0jNjaWFStWAHD99dfTunXra7Z/6qmn2L17N2vXruXuu+82LQ4RERERESlZymyilcnf35+3336bzZs306xZM1Pv/ffff5OSkgJkJFoiIiIiIiJQhhOtwMBAXn/9dY4cOcLTTz+Nk5P5BRZ37dplO85M4sLDwxk3bhwtW7bEx8eHChUq0K5dO1599VUuXbpkegwiIiIiIlLylNny7v369aNfv35F+oz9+/fbjqtWrcrHH3/Mc889R2JiYpZ227ZtY9u2bXzwwQf8+OOPdO3a9Zr3tVgsRRKviIiIiIiYI7dCe2U20SoOFy9etB1/++23TJ8+HYAmTZrQr18//P39OXLkCEuWLOHChQucPXuWPn36sHbtWoKDg+0UtYiIiIiIFDUlWoVwZeXA6dOn4+DgwIwZM3jqqadwcPh3Vuabb77J0KFD+f3330lOTmbo0KEcOHAgxwqFIiIiIiJSupXZNVrF4b9TBCdOnMgzzzyTJcmCjIIcS5YsoV69egAcO3aMuXPnFleYIiIiIiJSzJRoFYKbm5vt2N/fn7Fjx+bY1tPTkzFjxtheL126tEhjExERERER+9HUwULw9va2HXfv3h13d/drtu/Tp4/teNu2bfl6Vm6L7UREREREpGgUpFidRrQKISAgwHZcrVq1XNvXqFHDdhwdHV0kMYmIiIiIiP0p0SqEpk2b2o6vrECYk7S0NNvxlaNhIiIiIiJStijRKoTWrVvbjq/cvDgn4eHhtuOaNWsWRUgiIiIiIlICKNEqhI4dO1K5cmUgI9Has2fPNdsvX77cdty9e/cijU1EREREROxHiVYhODk5cc8999heP/XUUzkWrYiOjuadd96xvR42bFiRxyciIiIiIvahRKuQxo0bZxvV+v3337n33nuv2l/rzJkzDBgwgKioKAAGDBhAp06dij1WEREREREpHkq0cmGxWGw/2W0yXLFiRb766itcXV0B+Oabb6hduzajRo1iypQpjBw5kkaNGrF582YAAgMD+fTTT4vzVxARERERkWKmfbRMcOONN/LLL79w3333cfz4caKjo7NNplq2bMmyZcuoWrWqHaIUEREREZHiohEtk/Ts2ZP9+/fz/vvvc9111xEYGIiTkxN+fn706tWLWbNmsXXrVmrXrm3vUEVEREREpIhZjJyqN4jdZLfztP4ziYiIiIjYR0E+n2tES0RERERExGRKtEREREREREymREtERERERMRkqjooBRYXF8e+ffs4dOgQ8fHxWK1We4ckIsXE0dERNzc3qlevToMGDahRowaOjo72DktERKTEUDGMEqg0FMNYu3Yta9asATI+cHl7e+Ps7GzfoESk2KSlpZGQkEBKSgoAnp6eDB06lJo1a9o5MhEREfMV5PO5Eq0SqKQnWplJVmBgIN26daNBgwa4uLjYOywRKWaGYRAZGcmhQ4cIDQ0lPT2dW2+9lWbNmtk7NBEREVMp0SojSnKiFRcXx9tvv01gYCD33Xcf7u7u9g5JREqA06dP891335Gamsqzzz6rEW4RESlTVN5dity+ffsA6Natm5IsEbGpWrUqXbt2JTk52fbvhIiISHmmREvy5dChQzg6OtKgQQN7hyIiJUzLli1xcHBg79699g5FRETE7pRoSb7Ex8fj7e2tNVkichV3d3e8vb2JjY21dygiIiJ2p0RL8sVqtWrthYjkyNnZmbS0NHuHISIiYndKtERExDTZLRYWEREpj5RoiYiIiIiImEyJloiIiIiIiMmUaImIiIiIiJhMiZaIiIiIiIjJlGiJiIiIiIiYTImWiIiIiIiIyZRoiYiIiIiImEyJloiInZw4cQIfHx8sFgsWi4WIiIgc227cuJHBgwcTGBiIm5sbQUFBPProo5w6dSrX5xSmr4iIiBSMEi0RETt5+OGHiYuLy7Xd559/TteuXVm0aBHp6ek0b96cmJgYPv74Y1q0aMHOnTuLpK+IiIgUnBItERE7mDNnDr/88gu33XbbNdvt2rWLRx55hPT0dMaOHUtkZCRhYWGcPn2ae+65hwsXLnDrrbeSnJxsal8REREpHCVaUuYdfOX9q35E7On06dM888wz1KlTh1deeeWabV9++WWsVitdunRh2rRpODs7A+Dh4cHs2bMJCgoiPDycOXPmmNpXRERECkeJlpR5h1794KofEXsaPXo0Fy9eZNasWXh6eubYLiEhgeXLl9v6/JerqysjRowA4Pvvvzetr4iIiBSeEi0RAWDy5Mm2ogw9e/a0dzimu/XWW7FYLDg6OnL27Nk89zP7fZk3bx5Lly5l2LBh3HDDDddsu337dpKSkgDo3r17tm169OgBwObNm0lPTzelr4iIiBSeEi0RKfOSk5NZtWoVAB07dqRy5cp2iePcuXM88cQTVKxYkXfeeSfX9gcPHgTAxcWFmjVrZtumXr16ACQlJXHs2DFT+oqIiEjhKdESKeeSk5P5559/bB/MAaKjo9m0aROxsbF2jMw8q1evJiEhAYCBAwfmqU9RvC+PP/440dHRzJw5k4oVK+baPiYmBgA/Pz8sFku2bfz9/W3HFy5cMKWviIiIFJ4SLZFyatmyZQwaNAg/Pz9atWrFvHnzbNf27NlD586d8fPzo1u3bnz00UelujLdTz/9ZDu++eabr9m2qN6XJUuWMH/+fG688UbuueeePPW5fPkykDEqlRM3NzfbcWJioil9RUREpPCUaImUMwcOHKBjx44MGjSIZcuW2T6QZyc9PZ3169fz2GOPUbduXX7++edijNQ8mXEHBQXRvHnzbNsU5fty4cIFRo8ejaenJ5988kme43Z3dwcgJSUlxzaZ67Ago5qgGX1FRESk8JRoiZQjq1evpl27dmzdutV2zs3NjZtvvpmuXbvaztWpU4d77703y1qmyMhIBg4cyJQpU4o15sLatm0bJ0+eBHKeNljU78uYMWM4c+YMr732GnXq1Mlz7H5+fkBGomYYRrZtMqcIXtm+sH1FRESk8JRoiZQT27Zt45ZbbrGtVXJwcOC5557j9OnTLF26lN69e9va1q5dmy+//JJTp07x+ee
"text/plain": [
"<Figure size 960x720 with 1 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"fig = plt.figure(figsize=(8, 6), dpi=120)\n",
"\n",
"plot_axes = fig.gca()\n",
"\n",
"plot_kwarg = {\n",
" # 'fmt': 'o',\n",
" \n",
" # Style of line\n",
" 'linestyle': 'None',\n",
" 'linewidth': 2,\n",
" \n",
" # Style of markder\n",
" # 'marker': '.',\n",
" 'markersize': 5,\n",
" # 'markerfacecolor': plot_blue,\n",
" # 'markeredgecolor': plot_blue,\n",
" 'markeredgewidth': 4,\n",
" \n",
" # Style of errorbar\n",
" 'capsize': 0,\n",
" # 'ecolor': plot_blue, # color of errorbar line\n",
" 'capthick': 1.5,\n",
" 'elinewidth': 3,\n",
" \n",
" # text for legend\n",
" 'label': 'Experiment',\n",
" }\n",
"\n",
"\n",
"# 1.2157134383410748+/-0.02622973148346536\n",
"# 0.2556310933363963+/-0.009332131323758952\n",
"\n",
"Nmax = np.max(ncounts_withpush)\n",
"plot_axes.errorbar(powers, ncounts_withpush / Nmax, yerr=ncount_withpush_errors / Nmax, color=plot_red, marker='^', **plot_kwarg)\n",
"\n",
"Nmax = np.max(sat_ncount_withpush)\n",
"plot_axes.errorbar(powers, sat_ncount_withpush / Nmax, yerr=sat_ncount_withpush_errors / Nmax, color=plot_blue, marker='o', **plot_kwarg)\n",
"\n",
"x = np.linspace(100, 550, 1000)\n",
"fit_line = curve(1.422, 105.9, 234.2, x)\n",
"plot_axes.errorbar(x, fit_line, color=plot_blue, fmt='--')\n",
"\n",
"x = np.linspace(100, 550, 1000)\n",
"fit_line = curve(3.843, 117.4, 923.4, x)\n",
"plot_axes.errorbar(x, fit_line, color=plot_red, fmt='--')\n",
"\n",
"plot_axes.set_xlim([50, 550])\n",
"plot_axes.set_ylim([-0, 1.6])\n",
"\n",
"plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
"plot_axes.set_ylabel(\"Relative performance\", fontsize=20)\n",
"\n",
"plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
"plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
"plot_axes.xaxis.offsetText.set_fontsize(20)\n",
"plot_axes.yaxis.offsetText.set_fontsize(20)\n",
"\n",
"plt.setp(plot_axes.spines.values(), linewidth=3)\n",
"plot_axes.xaxis.set_tick_params(width=3)\n",
"plot_axes.yaxis.set_tick_params(width=3)\n",
"plot_axes.tick_params(direction='in', length=10)\n",
"\n",
"if np.max(plot_axes.get_xticks()) < 1000:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
"else:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
"if np.max(plot_axes.get_yticks()) < 1000:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
"else:\n",
" plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
"\n",
"plt.setp(plot_axes.get_xticklabels()[0], visible=False)\n",
"plt.setp(plot_axes.get_yticklabels()[0], visible=False)\n",
"\n",
"plot_axes.legend( [\"$\\Phi_\\mathrm{3D}/\\Phi_\\mathrm{3D}^{400}$\", \"$N_\\mathrm{sat}/N_\\mathrm{sat}^{400}$\"],\n",
" fontsize=20, loc = 'lower right', bbox_to_anchor=(-0.07, 0.7, 0.5, 0.5), shadow=False, \n",
" facecolor='white', framealpha=1, edgecolor='gray')\n",
"\n",
"fig.savefig('figS1_v3.pdf', bbox_inches = \"tight\")\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([1.26452425, 2.28634918, 4.16839061, 5.77353148, 6.97112396,\n",
" 8.07563517])"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ncounts_withpush/1e7"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0.02011692, 0.03661928, 0.03542273, 0.12835443, 0.10808794,\n",
" 0.15734573])"
]
},
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ncount_withpush_errors/1e7"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0.59632089, 0.97709906, 1.49764122, 1.88064547, 2.11270051,\n",
" 2.27577969])"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sat_ncount_withpush/1e8"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0.00220115, 0.00346001, 0.00221859, 0.00692999, 0.00523738,\n",
" 0.00885194])"
]
},
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sat_ncount_withpush_errors/1e8"
]
},
2023-07-01 09:21:45 +02:00
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"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.12"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}