2492 lines
155 KiB
Plaintext
2492 lines
155 KiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Import supporting package"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 1,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"import xarray as xr\n",
|
||
|
"import numpy as np\n",
|
||
|
"import copy\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",
|
||
|
"plt.rcParams['font.size'] = 18\n",
|
||
|
"\n",
|
||
|
"from DataContainer.ReadData import read_hdf5_file, read_hdf5_global, read_hdf5_run_time\n",
|
||
|
"from Analyser.ImagingAnalyser import ImageAnalyser\n",
|
||
|
"from Analyser.FitAnalyser import FitAnalyser\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()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Start a client for parallel computing"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"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-1ad26782-f4a3-11ed-8014-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;\">39ebed45</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> 14\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads:</strong> 56\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total memory:</strong> 782.31 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-5010ee37-2d62-418f-908a-3d869cf85668</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:54873\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Workers:</strong> 14\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> 56\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> 782.31 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:54920\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54937/status\" target=\"_blank\">http://127.0.0.1:54937/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54877\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-6k5w8crs\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:54966\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\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> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54878\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-_7zysh1d\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:54952\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\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> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54879\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-pivw5um_\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:54940\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54943/status\" target=\"_blank\">http://127.0.0.1:54943/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54880\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-4mhsz13r\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:54972\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54973/status\" target=\"_blank\">http://127.0.0.1:54973/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54881\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-7_6k4mgb\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:54961\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54964/status\" target=\"_blank\">http://127.0.0.1:54964/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54882\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-_vtk580o\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: 6</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> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54962/status\" target=\"_blank\">http://127.0.0.1:54962/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54883\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-ofu5zf80\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: 7</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:54939\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54941/status\" target=\"_blank\">http://127.0.0.1:54941/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54884\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-u45d30hc\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: 8</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:54953\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54958/status\" target=\"_blank\">http://127.0.0.1:54958/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54885\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-old86hcm\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: 9</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:54975\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54976/status\" target=\"_blank\">http://127.0.0.1:54976/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54886\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-0xsdxrw4\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: 10</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:54946\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54947/status\" target=\"_blank\">http://127.0.0.1:54947/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54887\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-hnelt761\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: 11</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:54969\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54970/status\" target=\"_blank\">http://127.0.0.1:54970/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54888\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-ywnxkrum\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: 12</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:54945\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54948/status\" target=\"_blank\">http://127.0.0.1:54948/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54889\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-07tq1zpz\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: 13</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:54951\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Total threads: </strong> 4\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54954/status\" target=\"_blank\">http://127.0.0.1:54954/status</a>\n",
|
||
|
" </td>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Memory: </strong> 55.88 GiB\n",
|
||
|
" </td>\n",
|
||
|
" </tr>\n",
|
||
|
" <tr>\n",
|
||
|
" <td style=\"text-align: left;\">\n",
|
||
|
" <strong>Nanny: </strong> tcp://127.0.0.1:54890\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-lfu5si46\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:54873' processes=14 threads=56, memory=782.31 GiB>"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 2,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"from dask.distributed import Client\n",
|
||
|
"client = Client(n_workers=14, threads_per_worker=4, processes=True, memory_limit='60GB')\n",
|
||
|
"client"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Set global path for experiment"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"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"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"img_dir = '//DyLabNAS/Data/'\n",
|
||
|
"SequenceName = \"Evaporative_Cooling\" + \"/\"\n",
|
||
|
"folderPath = img_dir + SequenceName + \"2023/05/09\" # get_date()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"# Check the stability of our BEC"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"The detected scaning axes and values are: \n",
|
||
|
"\n",
|
||
|
"{'runs': array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.,\n",
|
||
|
" 11., 12., 13., 14., 15., 16., 17., 18., 19., 20., 21.,\n",
|
||
|
" 22., 23., 24., 25., 26., 27., 28., 29., 30., 31., 32.,\n",
|
||
|
" 33., 34., 35., 36., 37., 38., 39., 40., 41., 42., 43.,\n",
|
||
|
" 44., 45., 46., 47., 48., 49., 50., 51., 52., 53., 54.,\n",
|
||
|
" 55., 56., 57., 58., 59., 60., 61., 62., 63., 64., 65.,\n",
|
||
|
" 66., 67., 68., 69., 70., 71., 72., 73., 74., 75., 76.,\n",
|
||
|
" 77., 78., 79., 80., 81., 82., 83., 84., 85., 86., 87.,\n",
|
||
|
" 88., 89., 90., 91., 92., 93., 94., 95., 96., 97., 98.,\n",
|
||
|
" 99., 100., 101., 102., 103., 104., 105., 106., 107., 108., 109.,\n",
|
||
|
" 110., 111., 112., 113., 114., 115., 116., 117., 118., 119., 120.,\n",
|
||
|
" 121., 122., 123., 124., 125., 126., 127., 128., 129., 130., 131.,\n",
|
||
|
" 132., 133., 134., 135., 136., 137., 138., 139., 140., 141., 142.,\n",
|
||
|
" 143., 144., 145., 146., 147., 148., 149., 150., 151., 152., 153.,\n",
|
||
|
" 154., 155., 156., 157., 158., 159., 160., 161., 162., 163., 164.,\n",
|
||
|
" 165., 166., 167., 168., 169., 170., 171., 172., 173., 174., 175.,\n",
|
||
|
" 176., 177., 178., 179., 180., 181., 182., 183., 184., 185., 186.,\n",
|
||
|
" 187., 188., 189., 190., 191., 192., 193., 194., 195., 196., 197.,\n",
|
||
|
" 198., 199., 200., 201., 202., 203., 204., 205., 206., 207., 208.,\n",
|
||
|
" 209., 210., 211., 212., 213., 214., 215., 216., 217., 218., 219.,\n",
|
||
|
" 220., 221., 222., 223., 224., 225., 226., 227., 228., 229., 230.,\n",
|
||
|
" 231., 232., 233., 234., 235., 236., 237., 238., 239., 240., 241.,\n",
|
||
|
" 242., 243., 244., 245., 246., 247., 248., 249., 250., 251., 252.,\n",
|
||
|
" 253., 254., 255., 256., 257., 258., 259., 260., 261., 262., 263.,\n",
|
||
|
" 264., 265., 266., 267., 268., 269., 270., 271., 272., 273., 274.,\n",
|
||
|
" 275., 276., 277., 278., 279., 280., 281., 282., 283., 284., 285.,\n",
|
||
|
" 286., 287., 288., 289., 290., 291., 292., 293., 294., 295., 296.,\n",
|
||
|
" 297., 298., 299., 300., 301., 302., 303., 304., 305., 306., 307.,\n",
|
||
|
" 308., 309., 310., 311., 312., 313., 314., 315., 316., 317., 318.,\n",
|
||
|
" 319., 320., 321., 322., 323., 324., 325., 326., 327., 328., 329.,\n",
|
||
|
" 330., 331., 332., 333., 334., 335., 336., 337., 338., 339., 340.,\n",
|
||
|
" 341., 342., 343., 344., 345., 346., 347., 348., 349., 350., 351.,\n",
|
||
|
" 352., 353., 354., 355., 356., 357., 358., 359., 360., 361., 362.,\n",
|
||
|
" 363., 364., 365., 366., 367., 368., 369., 370., 371., 372., 373.,\n",
|
||
|
" 374., 375., 376., 377., 378., 379., 380., 381., 382., 383., 384.,\n",
|
||
|
" 385., 386., 387., 388., 389., 390., 391., 392., 393., 394., 395.,\n",
|
||
|
" 396., 397., 398., 399., 400., 401., 402., 403., 404., 405., 406.,\n",
|
||
|
" 407., 408., 409., 410., 411., 412., 413., 414., 415., 416., 417.,\n",
|
||
|
" 418., 419., 420., 421., 422., 423., 424., 425., 426., 427., 428.,\n",
|
||
|
" 429., 430., 431., 432., 433., 434., 435., 436., 437., 438., 439.,\n",
|
||
|
" 440., 441., 442., 443., 444., 445., 446., 447., 448., 449., 450.,\n",
|
||
|
" 451., 452., 453., 454., 455., 456., 457., 458., 459., 460., 461.,\n",
|
||
|
" 462., 463., 464., 465., 466., 467., 468., 469., 470., 471., 472.,\n",
|
||
|
" 473., 474., 475., 476., 477., 478., 479., 480., 481., 482., 483.,\n",
|
||
|
" 484., 485., 486., 487., 488., 489., 490., 491., 492., 493., 494.,\n",
|
||
|
" 495., 496., 497., 498., 499., 500., 501., 502., 503., 504., 505.,\n",
|
||
|
" 506., 507., 508., 509., 510., 511., 512., 513., 514., 515., 516.,\n",
|
||
|
" 517., 518., 519., 520., 521., 522., 523., 524., 525., 526., 527.,\n",
|
||
|
" 528., 529., 530., 531., 532., 533., 534., 535., 536., 537., 538.,\n",
|
||
|
" 539., 540., 541., 542., 543., 544., 545., 546., 547., 548., 549.])}\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "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
|
||
|
"text/plain": [
|
||
|
"<Figure size 640x480 with 1 Axes>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"shotNum = \"0007\"\n",
|
||
|
"filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
|
||
|
"\n",
|
||
|
"dataSetOfGlobalDict = {\n",
|
||
|
" dskey[groupList[i]]: read_hdf5_global(filePath, groupList[i])\n",
|
||
|
" for i in [0]\n",
|
||
|
"}\n",
|
||
|
"\n",
|
||
|
"dataSetDict = {\n",
|
||
|
" dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i], datesetOfGlobal=dataSetOfGlobalDict[dskey[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",
|
||
|
"dataSet = swap_xy(dataSet)\n",
|
||
|
"\n",
|
||
|
"dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
|
||
|
"\n",
|
||
|
"imageAnalyser.center = (959, 876)\n",
|
||
|
"imageAnalyser.span = (100, 100)\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).load()\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"Ncount.plot.errorbar(ax=ax, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('NCount')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"dataSet_cropOD = auto_rechunk(dataSet_cropOD)\n",
|
||
|
"\n",
|
||
|
"fitAnalyser = FitAnalyser(\"Two Gaussian-2D\", fitDim=2)\n",
|
||
|
"params = fitAnalyser.guess(dataSet_cropOD, dask=\"parallelized\")\n",
|
||
|
"fitResult = fitAnalyser.fit(dataSet_cropOD, params, dask=\"parallelized\").load()\n",
|
||
|
"\n",
|
||
|
"fitValue = fitAnalyser.get_fit_value(fitResult)\n",
|
||
|
"fitStd = fitAnalyser.get_fit_std(fitResult)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"BEC_Ncount_val = fitValue['A_amplitude']\n",
|
||
|
"BEC_Ncount_std = fitStd['A_amplitude']\n",
|
||
|
"\n",
|
||
|
"thermal_Ncount_val = fitValue['B_amplitude']\n",
|
||
|
"thermal_Ncount_std = fitStd['B_amplitude']\n",
|
||
|
"\n",
|
||
|
"BEC_width_x_val = fitValue['A_sigmax']\n",
|
||
|
"BEC_width_x_std = fitStd['A_sigmax']\n",
|
||
|
"BEC_width_y_val = fitValue['A_sigmay']\n",
|
||
|
"BEC_width_y_std = fitStd['A_sigmay']\n",
|
||
|
"\n",
|
||
|
"thermal_width_x_val = fitValue['B_sigmax']\n",
|
||
|
"thermal_width_x_std = fitStd['B_sigmax']\n",
|
||
|
"thermal_width_y_val = fitValue['B_sigmay']\n",
|
||
|
"thermal_width_y_std = fitStd['B_sigmay']\n",
|
||
|
"\n",
|
||
|
"BEC_center_x_val = fitValue['A_centerx']\n",
|
||
|
"BEC_center_x_std = fitStd['A_centerx']\n",
|
||
|
"BEC_center_y_val = fitValue['A_centery']\n",
|
||
|
"BEC_center_y_std = fitStd['A_centery']\n",
|
||
|
"\n",
|
||
|
"thermal_center_x_val = fitValue['B_centerx']\n",
|
||
|
"thermal_center_x_std = fitStd['B_centerx']\n",
|
||
|
"thermal_center_y_val = fitValue['B_centery']\n",
|
||
|
"thermal_center_y_std = fitStd['B_centery']"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"total_Ncount_val = BEC_Ncount_val + thermal_Ncount_val\n",
|
||
|
"total_Ncount_std = BEC_Ncount_std + thermal_Ncount_std\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"total_Ncount_val.plot.errorbar(ax=ax, yerr=total_Ncount_std, fmt='ob')\n",
|
||
|
"# plt.ylim([0, 1100])\n",
|
||
|
"plt.ylabel('Ncount from fit')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()\n",
|
||
|
"\n",
|
||
|
"print(total_Ncount_val.mean())"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"BEC_Ncount_val.plot.errorbar(ax=ax, yerr=BEC_Ncount_std, fmt='ob')\n",
|
||
|
"plt.ylim([0, 750])\n",
|
||
|
"plt.ylabel('Ncount of BEC part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_Ncount_val.plot.errorbar(ax=ax, yerr=thermal_Ncount_std, fmt='or')\n",
|
||
|
"plt.ylim([0, 500])\n",
|
||
|
"plt.ylabel('Ncount of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"BEC_width_x_val.plot.errorbar(ax=ax, yerr=BEC_width_x_std, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis Width of BEC part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"BEC_width_y_val.plot.errorbar(ax=ax, yerr=BEC_width_y_std, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis Width of BEC part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_width_x_val.plot.errorbar(ax=ax, yerr=thermal_width_x_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis width of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_width_y_val.plot.errorbar(ax=ax, yerr=thermal_width_y_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis width of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"BEC_center_x_val.plot.errorbar(ax=ax, yerr=BEC_center_x_std, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis center of BEC part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"BEC_center_y_val.plot.errorbar(ax=ax, yerr=BEC_center_y_std, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis center of BEC part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_center_x_val.plot.errorbar(ax=ax, yerr=thermal_center_x_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis center of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_center_y_val.plot.errorbar(ax=ax, yerr=thermal_center_y_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis center of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fitFullResult = fitAnalyser.get_fit_full_result(fitResult)\n",
|
||
|
"condensateFraction = fitFullResult['A_amplitude'] / (fitFullResult['A_amplitude'] + fitFullResult['B_amplitude'])\n",
|
||
|
"condensateFraction_value, condensateFraction_std = seperate_uncertainty(condensateFraction)\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"condensateFraction_value.plot.errorbar(ax=ax, yerr=condensateFraction_std, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Condensate Fraction')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"val = Ncount.mean().item()\n",
|
||
|
"std = Ncount.std().item()\n",
|
||
|
"print(f'The total Ncount is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = total_Ncount_val.mean().item()\n",
|
||
|
"std = total_Ncount_val.std().item()\n",
|
||
|
"print(f'The total Ncount from fit is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = BEC_Ncount_val.mean().item()\n",
|
||
|
"std = BEC_Ncount_val.std().item()\n",
|
||
|
"print(f'The Ncount of the BEC part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_Ncount_val.mean().item()\n",
|
||
|
"std = thermal_Ncount_val.std().item()\n",
|
||
|
"print(f'The Ncount of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = BEC_width_x_val.mean().item()\n",
|
||
|
"std = BEC_width_x_val.std().item()\n",
|
||
|
"print(f'The x-axis width of the BEC part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = BEC_width_y_val.mean().item()\n",
|
||
|
"std = BEC_width_y_val.std().item()\n",
|
||
|
"print(f'The y-axis width of the BEC part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_width_x_val.mean().item()\n",
|
||
|
"std = thermal_width_x_val.std().item()\n",
|
||
|
"print(f'The x-axis width of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_width_y_val.mean().item()\n",
|
||
|
"std = thermal_width_y_val.std().item()\n",
|
||
|
"print(f'The y-axis width of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = BEC_center_x_val.mean().item()\n",
|
||
|
"std = BEC_center_x_val.std().item()\n",
|
||
|
"print(f'The x-axis center of the BEC part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = BEC_center_y_val.mean().item()\n",
|
||
|
"std = BEC_center_y_val.std().item()\n",
|
||
|
"print(f'The y-axis center of the BEC part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_center_x_val.mean().item()\n",
|
||
|
"std = thermal_center_x_val.std().item()\n",
|
||
|
"print(f'The x-axis center of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_center_y_val.mean().item()\n",
|
||
|
"std = thermal_center_y_val.std().item()\n",
|
||
|
"print(f'The y-axis center of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = condensateFraction_value.mean().item()\n",
|
||
|
"std = condensateFraction_value.std().item()\n",
|
||
|
"print(f'The condensate fraction is: {val: .4f} \\u00B1 {std: .4f}')"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"i=0\n",
|
||
|
"da_test = read_hdf5_run_time(filePath, datesetOfGlobal=dataSetOfGlobalDict[dskey[groupList[i]]])"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"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'><xarray.Dataset>\n",
|
||
|
"Dimensions: (runs: 550)\n",
|
||
|
"Coordinates:\n",
|
||
|
" * runs (runs) float64 0.0 1.0 2.0 3.0 4.0 ... 546.0 547.0 548.0 549.0\n",
|
||
|
"Data variables:\n",
|
||
|
" runTine (runs) datetime64[ns] 2023-05-09T14:30:03 ... 2023-05-09T15:56:53\n",
|
||
|
"Attributes: (12/101)\n",
|
||
|
" TOF_free: 0.02\n",
|
||
|
" abs_img_freq: 110.858\n",
|
||
|
" absorption_imaging_flag: True\n",
|
||
|
" backup_data: True\n",
|
||
|
" blink_off_time: nan\n",
|
||
|
" blink_on_time: nan\n",
|
||
|
" ... ...\n",
|
||
|
" y_offset_img: 0\n",
|
||
|
" z_offset: 0.189\n",
|
||
|
" z_offset_img: 0.189\n",
|
||
|
" runs: [ 0. 1. 2. 3. 4. 5. 6. ...\n",
|
||
|
" scanAxis: ['runs']\n",
|
||
|
" scanAxisLength: [550.]</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-48a9f3c0-8058-472d-b6dd-d77838f97bf4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-48a9f3c0-8058-472d-b6dd-d77838f97bf4' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>runs</span>: 550</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-56e33c2e-17c8-41e2-9f6a-492dbb387adb' class='xr-section-summary-in' type='checkbox' checked><label for='section-56e33c2e-17c8-41e2-9f6a-492dbb387adb' 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 class='xr-has-index'>runs</span></div><div class='xr-var-dims'>(runs)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 1.0 2.0 ... 547.0 548.0 549.0</div><input id='attrs-95ddd283-43e9-49e3-9244-bd9301859ca7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-95ddd283-43e9-49e3-9244-bd9301859ca7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-568be9f4-e430-43ef-af97-9b0f31a0c59e' class='xr-var-data-in' type='checkbox'><label for='data-568be9f4-e430-43ef-af97-9b0f31a0c59e' 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., 1., 2., ..., 547., 548., 549.])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ecfe7e58-5f25-4eaf-a947-6c77c3df6090' class='xr-section-summary-in' type='checkbox' checked><label for='section-ecfe7e58-5f25-4eaf-a947-6c77c3df6090' class='xr-section-summary' >Data variables: <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>runTine</span></div><div class='xr-var-dims'>(runs)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2023-05-09T14:30:03 ... 2023-05-...</div><input id='attrs-8d6d764e-aed8-492c-9acf-aca1a5f2c297' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8d6d764e-aed8-492c-9acf-aca1a5f2c297' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-11fe02a7-2ba8-46ae-a773-954af074c33b' class='xr-var-data-in' type='checkbox'><label for='data-11fe02a7-2ba8-46ae-a773-954af074c33b' 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(['2023-05-09T14:30:03.000000000', '2023-05-09T14:30:11.000000000',\n",
|
||
|
" '2023-05-09T14:30:19.000000000', '2023-05-09T14:30:27.000000000',\n",
|
||
|
" '2023-05-09T14:30:35.000000000', '2023-05-09T14:30:43.000000000',\n",
|
||
|
" '2023-05-09T14:30:52.000000000', '2023-05-09T14:31:00.000000000',\n",
|
||
|
" '2023-05-09T14:31:08.000000000', '2023-05-09T14:31:16.000000000',\n",
|
||
|
" '2023-05-09T14:31:24.000000000', '2023-05-09T14:31:33.000000000',\n",
|
||
|
" '2023-05-09T14:31:41.000000000', '2023-05-09T14:31:49.000000000',\n",
|
||
|
" '2023-05-09T14:31:57.000000000', '2023-05-09T14:32:05.000000000',\n",
|
||
|
" '2023-05-09T14:32:13.000000000', '2023-05-09T14:32:22.000000000',\n",
|
||
|
" '2023-05-09T14:32:30.000000000', '2023-05-09T14:32:38.000000000',\n",
|
||
|
" '2023-05-09T14:32:46.000000000', '2023-05-09T14:32:54.000000000',\n",
|
||
|
" '2023-05-09T14:33:03.000000000', '2023-05-09T14:33:11.000000000',\n",
|
||
|
" '2023-05-09T14:33:19.000000000', '2023-05-09T14:33:27.000000000',\n",
|
||
|
" '2023-05-09T14:33:35.000000000', '2023-05-09T14:33:44.000000000',\n",
|
||
|
" '2023-05-09T14:33:52.000000000', '2023-05-09T14:34:00.000000000',\n",
|
||
|
" '2023-05-09T14:34:08.000000000', '2023-05-09T14:34:16.000000000',\n",
|
||
|
" '2023-05-09T14:34:24.000000000', '2023-05-09T14:34:32.000000000',\n",
|
||
|
" '2023-05-09T14:34:41.000000000', '2023-05-09T14:34:49.000000000',\n",
|
||
|
" '2023-05-09T14:34:57.000000000', '2023-05-09T14:35:05.000000000',\n",
|
||
|
" '2023-05-09T14:35:13.000000000', '2023-05-09T14:35:21.000000000',\n",
|
||
|
"...\n",
|
||
|
" '2023-05-09T15:51:57.000000000', '2023-05-09T15:52:05.000000000',\n",
|
||
|
" '2023-05-09T15:52:13.000000000', '2023-05-09T15:52:21.000000000',\n",
|
||
|
" '2023-05-09T15:52:29.000000000', '2023-05-09T15:52:37.000000000',\n",
|
||
|
" '2023-05-09T15:52:45.000000000', '2023-05-09T15:52:53.000000000',\n",
|
||
|
" '2023-05-09T15:53:01.000000000', '2023-05-09T15:53:09.000000000',\n",
|
||
|
" '2023-05-09T15:53:17.000000000', '2023-05-09T15:53:25.000000000',\n",
|
||
|
" '2023-05-09T15:53:33.000000000', '2023-05-09T15:53:41.000000000',\n",
|
||
|
" '2023-05-09T15:53:49.000000000', '2023-05-09T15:53:57.000000000',\n",
|
||
|
" '2023-05-09T15:54:05.000000000', '2023-05-09T15:54:13.000000000',\n",
|
||
|
" '2023-05-09T15:54:21.000000000', '2023-05-09T15:54:29.000000000',\n",
|
||
|
" '2023-05-09T15:54:37.000000000', '2023-05-09T15:54:45.000000000',\n",
|
||
|
" '2023-05-09T15:54:53.000000000', '2023-05-09T15:55:01.000000000',\n",
|
||
|
" '2023-05-09T15:55:09.000000000', '2023-05-09T15:55:17.000000000',\n",
|
||
|
" '2023-05-09T15:55:25.000000000', '2023-05-09T15:55:33.000000000',\n",
|
||
|
" '2023-05-09T15:55:41.000000000', '2023-05-09T15:55:49.000000000',\n",
|
||
|
" '2023-05-09T15:55:57.000000000', '2023-05-09T15:56:05.000000000',\n",
|
||
|
" '2023-05-09T15:56:13.000000000', '2023-05-09T15:56:21.000000000',\n",
|
||
|
" '2023-05-09T15:56:29.000000000', '2023-05-09T15:56:37.000000000',\n",
|
||
|
" '2023-05-09T15:56:45.000000000', '2023-05-09T15:56:53.000000000'],\n",
|
||
|
" dtype='datetime64[ns]')</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-05906717-28b5-497c-902c-c36bd3036a2d' class='xr-section-summary-in' type='checkbox' ><label for='section-05906717-28b5-497c-902c-c36bd3036a2d' class='xr-section-summary' >Indexes: <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-index-name'><div>runs</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-02f070b0-2e04-448d-a877-f1c58408ca63' class='xr-index-data-in' type='checkbox'/><label for='index-02f070b0-2e04-448d-a877-f1c58408ca63' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Float64Index([ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0,\n",
|
||
|
" 9.0,\n",
|
||
|
" ...\n",
|
||
|
" 540.0, 541.0, 542.0, 543.0, 544.0, 545.0, 546.0, 547.0, 548.0,\n",
|
||
|
" 549.0],\n",
|
||
|
" dtype='float64', name='runs', length=550))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-42c8bc83-4912-46ad-afeb-9a6786420e97' class='xr-section-summary-in' type='checkbox' ><label for='section-42c8bc83-4912-46ad-afeb-9a6786420e97' class='xr-section-summary' >Attributes: <span>(101)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>TOF_free :</span></dt><dd>0.02</dd><dt><span>abs_img_freq :</span></dt><dd>110.858</dd><dt><span>absorption_imaging_flag :</span></dt><dd>True</dd><dt><span>backup_data :</span></dt><dd>True</dd><dt><span>blink_off_time :</span></dt><dd>nan</dd><dt><span>blink_on_time :</span></dt><dd>nan</dd><dt><span>c_duration :</span></dt><dd>0.2</dd><dt><span>cmot_final_current :</span></dt><dd>0.65</dd><dt><span>cmot_hold :</span></dt><dd>0.06</dd><dt><span>cmot_initial_current :</span></dt><dd>0.18</dd><dt><span>compX_current :</span></dt><dd>0.005</dd><dt><span>compX_current_sg :</span></dt><dd>0</dd><dt><span>compX_final_current :</span></dt><dd>0.005</dd><dt><span>compX_initial_current :</span></dt><dd>0.005</dd><dt><span>compY_current :</span></dt><dd>0</dd><dt><span>compY_current_sg :</span></dt><dd>0</dd><dt><span>compY_final_current :</span></dt><dd>0.0</dd><dt><span>compY_initial_current :</span></dt><dd>0</dd><dt><span>compZ_current :</span></dt><dd>0</dd><dt><span>compZ_current_sg :</span></dt><dd>0.189</dd><dt><span>compZ_final_current :</span></dt><dd>0.2729</dd><dt><span>compZ_initial_current :</span></dt><dd>0</dd><dt><span>default_camera :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_final_pow :</span></dt><dd>0.35</dd><dt><span>evap_1_arm_1_mod_depth_final :</span></dt><dd>0</dd><dt><span>evap_1_arm_1_mod_depth_initial :</span></dt><dd>1.0</dd><dt><span>evap_1_arm_1_mod_ramp_duration :</span></dt><dd>1.15</dd><dt><span>evap_1_arm_1_pow_ramp_duration :</span></dt><dd>1.65</dd><dt><span>evap_1_arm_1_start_pow :</span></dt><dd>7</dd><dt><span>evap_1_arm_2_final_pow :</span></dt><dd>5</dd><dt><span>evap_1_arm_2_ramp_duration :</span></dt><dd>0.5</dd><dt><span>evap_1_arm_2_start_pow :</span></dt><dd>0</dd><dt><span>evap_1_mod_ramp_trunc_value :</span></dt><dd>1</dd><dt><span>evap_1_pow_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_1_rate_constant_1 :</span></dt><dd>0.525</dd><dt><span>evap_1_rate_constant_2 :</span></dt><dd>0.51</dd><dt><span>evap_2_arm_1_final_pow :</span></dt><dd>0.037</dd><dt><span>evap_2_arm_1_start_pow :</span></dt><dd>0.35</dd><dt><span>evap_2_arm_2_final_pow :</span></dt><dd>0.09</dd><dt><span>evap_2_arm_2_start_pow :</span></dt><dd>5</dd><dt><span>evap_2_ramp_duration :</span></dt><dd>1.0</dd><dt><span>evap_2_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_2_rate_constant_1 :</span></dt><dd>0.37</dd><dt><span>evap_2_rate_constant_2 :</span></dt><dd>0.71</dd><dt><span>evap_3_arm_1_final_pow :</span></dt><dd>0.1038</dd><dt><span>evap_3_arm_1_mod_depth_final :</span></dt><dd>0.43</dd><dt><span>evap_3_arm_1_mod_depth_initial :</span></dt><dd>0</dd><dt><span>evap_3_arm_1_start_pow :</span></dt><dd>0.037</dd><dt><span>evap_3_ramp_duration :</span></dt><dd>0.1</dd><dt><span>evap_3_ramp_trunc_value :</span></dt><dd>1.0</dd><dt><span>evap_3_rate_constant_1 :</span></dt><dd>-0.879</dd><dt><span>evap_3_rate_constant_2 :</span></dt><dd>-0.297</dd><dt><span>final_amp :</span></dt><dd>0.0001</dd><dt><span>final_freq :</span></dt><dd>104.0</dd><dt><span>gradCoil_current :</span></dt><dd>0.18</dd><dt><span>gradCoil_current_sg :</span></dt><dd>0</dd><dt><span>imaging_method :</span></dt><dd>in_situ_absorption</dd><dt><span>imaging_pulse_duration :</span></dt><dd>2.5e-05</dd><dt><span>imaging_wavelength :</span></dt><dd>4.21291e-07</dd><dt><span>initial_amp :</span></dt><dd>0.62</dd><dt><span>initial_freq :</span></dt><dd>102.13</dd><dt><span>mod_depth_initial :</span></dt><dd>1.0</dd><dt><span>mot_3d_amp :</span></dt><dd>0.62</dd><dt><span>mot_3d_camera_exposure_time :</span></dt><dd>0.002</dd><dt><span>mot_3d_camera_tri
|
||
|
" 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27.\n",
|
||
|
" 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41.\n",
|
||
|
" 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55.\n",
|
||
|
" 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69.\n",
|
||
|
" 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83.\n",
|
||
|
" 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97.\n",
|
||
|
" 98. 99. 100. 101. 102. 103. 104. 105. 106. 107. 108. 109. 110. 111.\n",
|
||
|
" 112. 113. 114. 115. 116. 117. 118. 119. 120. 121. 122. 123. 124. 125.\n",
|
||
|
" 126. 127. 128. 129. 130. 131. 132. 133. 134. 135. 136. 137. 138. 139.\n",
|
||
|
" 140. 141. 142. 143. 144. 145. 146. 147. 148. 149. 150. 151. 152. 153.\n",
|
||
|
" 154. 155. 156. 157. 158. 159. 160. 161. 162. 163. 164. 165. 166. 167.\n",
|
||
|
" 168. 169. 170. 171. 172. 173. 174. 175. 176. 177. 178. 179. 180. 181.\n",
|
||
|
" 182. 183. 184. 185. 186. 187. 188. 189. 190. 191. 192. 193. 194. 195.\n",
|
||
|
" 196. 197. 198. 199. 200. 201. 202. 203. 204. 205. 206. 207. 208. 209.\n",
|
||
|
" 210. 211. 212. 213. 214. 215. 216. 217. 218. 219. 220. 221. 222. 223.\n",
|
||
|
" 224. 225. 226. 227. 228. 229. 230. 231. 232. 233. 234. 235. 236. 237.\n",
|
||
|
" 238. 239. 240. 241. 242. 243. 244. 245. 246. 247. 248. 249. 250. 251.\n",
|
||
|
" 252. 253. 254. 255. 256. 257. 258. 259. 260. 261. 262. 263. 264. 265.\n",
|
||
|
" 266. 267. 268. 269. 270. 271. 272. 273. 274. 275. 276. 277. 278. 279.\n",
|
||
|
" 280. 281. 282. 283. 284. 285. 286. 287. 288. 289. 290. 291. 292. 293.\n",
|
||
|
" 294. 295. 296. 297. 298. 299. 300. 301. 302. 303. 304. 305. 306. 307.\n",
|
||
|
" 308. 309. 310. 311. 312. 313. 314. 315. 316. 317. 318. 319. 320. 321.\n",
|
||
|
" 322. 323. 324. 325. 326. 327. 328. 329. 330. 331. 332. 333. 334. 335.\n",
|
||
|
" 336. 337. 338. 339. 340. 341. 342. 343. 344. 345. 346. 347. 348. 349.\n",
|
||
|
" 350. 351. 352. 353. 354. 355. 356. 357. 358. 359. 360. 361. 362. 363.\n",
|
||
|
" 364. 365. 366. 367. 368. 369. 370. 371. 372. 373. 374. 375. 376. 377.\n",
|
||
|
" 378. 379. 380. 381. 382. 383. 384. 385. 386. 387. 388. 389. 390. 391.\n",
|
||
|
" 392. 393. 394. 395. 396. 397. 398. 399. 400. 401. 402. 403. 404. 405.\n",
|
||
|
" 406. 407. 408. 409. 410. 411. 412. 413. 414. 415. 416. 417. 418. 419.\n",
|
||
|
" 420. 421. 422. 423. 424. 425. 426. 427. 428. 429. 430. 431. 432. 433.\n",
|
||
|
" 434. 435. 436. 437. 438. 439. 440. 441. 442. 443. 444. 445. 446. 447.\n",
|
||
|
" 448. 449. 450. 451. 452. 453. 454. 455. 456. 457. 458. 459. 460. 461.\n",
|
||
|
" 462. 463. 464. 465. 466. 467. 468. 469. 470. 471. 472. 473. 474. 475.\n",
|
||
|
" 476. 477. 478. 479. 480. 481. 482. 483. 484. 485. 486. 487. 488. 489.\n",
|
||
|
" 490. 491. 492. 493. 494. 495. 496. 497. 498. 499. 500. 501. 502. 503.\n",
|
||
|
" 504. 505. 506. 507. 508. 509. 510. 511. 512. 513. 514. 515. 516. 517.\n",
|
||
|
" 518. 519. 520. 521. 522. 523. 524. 525. 526. 527. 528. 529. 530. 531.\n",
|
||
|
" 532. 533. 534. 535. 536. 537. 538. 539. 540. 541. 542. 543. 544. 545.\n",
|
||
|
" 546. 547. 548. 549.]</dd><dt><span>scanAxis :</span></dt><dd>['runs']</dd><dt><span>scanAxisLength :</span></dt><dd>[550.]</dd></dl></div></li></ul></div></div>"
|
||
|
],
|
||
|
"text/plain": [
|
||
|
"<xarray.Dataset>\n",
|
||
|
"Dimensions: (runs: 550)\n",
|
||
|
"Coordinates:\n",
|
||
|
" * runs (runs) float64 0.0 1.0 2.0 3.0 4.0 ... 546.0 547.0 548.0 549.0\n",
|
||
|
"Data variables:\n",
|
||
|
" runTine (runs) datetime64[ns] 2023-05-09T14:30:03 ... 2023-05-09T15:56:53\n",
|
||
|
"Attributes: (12/101)\n",
|
||
|
" TOF_free: 0.02\n",
|
||
|
" abs_img_freq: 110.858\n",
|
||
|
" absorption_imaging_flag: True\n",
|
||
|
" backup_data: True\n",
|
||
|
" blink_off_time: nan\n",
|
||
|
" blink_on_time: nan\n",
|
||
|
" ... ...\n",
|
||
|
" y_offset_img: 0\n",
|
||
|
" z_offset: 0.189\n",
|
||
|
" z_offset_img: 0.189\n",
|
||
|
" runs: [ 0. 1. 2. 3. 4. 5. 6. ...\n",
|
||
|
" scanAxis: ['runs']\n",
|
||
|
" scanAxisLength: [550.]"
|
||
|
]
|
||
|
},
|
||
|
"execution_count": 8,
|
||
|
"metadata": {},
|
||
|
"output_type": "execute_result"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"da_test"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"filepath = '//DyLabNAS/Data/Evaporative_Cooling/2023/05/09/0007/2023-05-09_0007_Evaporative_Cooling_549.h5'"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Close to the BEC transition point, in evaporative cooling 2 with truncation value = 0.77"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"shotNum = \"0015\"\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 = (879, 956)\n",
|
||
|
"imageAnalyser.span = (200, 200)\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).load()\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"Ncount.plot.errorbar(ax=ax, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('NCount')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"Ncount.plot.errorbar(ax=ax, fmt='ob')\n",
|
||
|
"plt.ylim([0, 3000])\n",
|
||
|
"plt.ylabel('NCount')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"dataSet_cropOD = auto_rechunk(dataSet_cropOD)\n",
|
||
|
"\n",
|
||
|
"fitAnalyser = FitAnalyser(\"Gaussian-2D\", fitDim=2)\n",
|
||
|
"params = fitAnalyser.guess(dataSet_cropOD, dask=\"parallelized\")\n",
|
||
|
"fitResult = fitAnalyser.fit(dataSet_cropOD, params, dask=\"parallelized\").load()\n",
|
||
|
"\n",
|
||
|
"fitValue = fitAnalyser.get_fit_value(fitResult)\n",
|
||
|
"fitStd = fitAnalyser.get_fit_std(fitResult)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"thermal_Ncount_val = fitValue['amplitude']\n",
|
||
|
"thermal_Ncount_std = fitStd['amplitude']\n",
|
||
|
"\n",
|
||
|
"thermal_width_x_val = fitValue['sigmax']\n",
|
||
|
"thermal_width_x_std = fitStd['sigmax']\n",
|
||
|
"thermal_width_y_val = fitValue['sigmay']\n",
|
||
|
"thermal_width_y_std = fitStd['sigmay']\n",
|
||
|
"\n",
|
||
|
"thermal_center_x_val = fitValue['centerx']\n",
|
||
|
"thermal_center_x_std = fitStd['centerx']\n",
|
||
|
"thermal_center_y_val = fitValue['centery']\n",
|
||
|
"thermal_center_y_std = fitStd['centery']"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"total_Ncount_val = thermal_Ncount_val\n",
|
||
|
"total_Ncount_std = thermal_Ncount_std\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"total_Ncount_val.plot.errorbar(ax=ax, yerr=total_Ncount_std, fmt='ob')\n",
|
||
|
"plt.ylim([0, 3000])\n",
|
||
|
"plt.ylabel('Ncount from fit')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_width_x_val.plot.errorbar(ax=ax, yerr=thermal_width_x_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis width of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_width_y_val.plot.errorbar(ax=ax, yerr=thermal_width_y_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis width of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_center_x_val.plot.errorbar(ax=ax, yerr=thermal_center_x_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis center of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_center_y_val.plot.errorbar(ax=ax, yerr=thermal_center_y_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis center of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"val = Ncount.mean().item()\n",
|
||
|
"std = Ncount.std().item()\n",
|
||
|
"print(f'The total Ncount is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = total_Ncount_val.mean().item()\n",
|
||
|
"std = total_Ncount_val.std().item()\n",
|
||
|
"print(f'The total Ncount from fit is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_width_x_val.mean().item()\n",
|
||
|
"std = thermal_width_x_val.std().item()\n",
|
||
|
"print(f'The x-axis width of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_width_y_val.mean().item()\n",
|
||
|
"std = thermal_width_y_val.std().item()\n",
|
||
|
"print(f'The y-axis width of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_center_x_val.mean().item()\n",
|
||
|
"std = thermal_center_x_val.std().item()\n",
|
||
|
"print(f'The x-axis center of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_center_y_val.mean().item()\n",
|
||
|
"std = thermal_center_y_val.std().item()\n",
|
||
|
"print(f'The y-axis center of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## At the end of ODT loading"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {
|
||
|
"scrolled": false
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"shotNum = \"0020\"\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 = (550, 800)\n",
|
||
|
"imageAnalyser.span = (900, 1600)\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).load()\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"Ncount.plot.errorbar(ax=ax, fmt='ob')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('NCount')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"dataSet"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"Ncount.plot.errorbar(ax=ax, fmt='ob')\n",
|
||
|
"plt.ylim([0, 150000])\n",
|
||
|
"plt.ylabel('NCount')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"dataSet_cropOD = dataSet_cropOD.chunk((1, 900, 1600))\n",
|
||
|
"dataSet_cropOD"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {
|
||
|
"scrolled": false
|
||
|
},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"# dataSet_cropOD = auto_rechunk(dataSet_cropOD)\n",
|
||
|
"\n",
|
||
|
"fitAnalyser = FitAnalyser(\"Gaussian-2D\", fitDim=2)\n",
|
||
|
"params = fitAnalyser.guess(dataSet_cropOD, dask=\"parallelized\")\n",
|
||
|
"fitResult = fitAnalyser.fit(dataSet_cropOD, params, dask=\"parallelized\").load()\n",
|
||
|
"\n",
|
||
|
"fitValue = fitAnalyser.get_fit_value(fitResult)\n",
|
||
|
"fitStd = fitAnalyser.get_fit_std(fitResult)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"thermal_Ncount_val = fitValue['amplitude']\n",
|
||
|
"thermal_Ncount_std = fitStd['amplitude']\n",
|
||
|
"\n",
|
||
|
"thermal_width_x_val = fitValue['sigmax']\n",
|
||
|
"thermal_width_x_std = fitStd['sigmax']\n",
|
||
|
"thermal_width_y_val = fitValue['sigmay']\n",
|
||
|
"thermal_width_y_std = fitStd['sigmay']\n",
|
||
|
"\n",
|
||
|
"thermal_center_x_val = fitValue['centerx']\n",
|
||
|
"thermal_center_x_std = fitStd['centerx']\n",
|
||
|
"thermal_center_y_val = fitValue['centery']\n",
|
||
|
"thermal_center_y_std = fitStd['centery']"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"total_Ncount_val = thermal_Ncount_val\n",
|
||
|
"total_Ncount_std = thermal_Ncount_std\n",
|
||
|
"\n",
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"total_Ncount_val.plot.errorbar(ax=ax, yerr=total_Ncount_std, fmt='ob')\n",
|
||
|
"plt.ylim([0, 160000])\n",
|
||
|
"plt.ylabel('Ncount from fit')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_width_x_val.plot.errorbar(ax=ax, yerr=thermal_width_x_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis width of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_width_y_val.plot.errorbar(ax=ax, yerr=thermal_width_y_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis width of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_center_x_val.plot.errorbar(ax=ax, yerr=thermal_center_x_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('Y-axis center of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"fig = plt.figure()\n",
|
||
|
"ax = fig.gca()\n",
|
||
|
"\n",
|
||
|
"thermal_center_y_val.plot.errorbar(ax=ax, yerr=thermal_center_y_std, fmt='or')\n",
|
||
|
"\n",
|
||
|
"plt.ylabel('X-axis center of thermal part')\n",
|
||
|
"plt.tight_layout()\n",
|
||
|
"plt.grid(visible=1)\n",
|
||
|
"plt.show()"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"val = Ncount.mean().item()\n",
|
||
|
"std = Ncount.std().item()\n",
|
||
|
"print(f'The total Ncount is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = total_Ncount_val.mean().item()\n",
|
||
|
"std = total_Ncount_val.std().item()\n",
|
||
|
"print(f'The total Ncount from fit is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_width_x_val.mean().item()\n",
|
||
|
"std = thermal_width_x_val.std().item()\n",
|
||
|
"print(f'The y-axis width of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_width_y_val.mean().item()\n",
|
||
|
"std = thermal_width_y_val.std().item()\n",
|
||
|
"print(f'The x-axis width of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_center_x_val.mean().item()\n",
|
||
|
"std = thermal_center_x_val.std().item()\n",
|
||
|
"print(f'The y-axis center of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')\n",
|
||
|
"\n",
|
||
|
"val = thermal_center_y_val.mean().item()\n",
|
||
|
"std = thermal_center_y_val.std().item()\n",
|
||
|
"print(f'The x-axis center of the thermal part is: {val: .2f} \\u00B1 {std: .2f}')"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"l = list(np.arange(0.001, 0.025, 0.0005))\n",
|
||
|
"# l = np.logspace(np.log10(100e-3), np.log10(20), num=20)\n",
|
||
|
"\n",
|
||
|
"l = [round(item, 7) for item in l]\n",
|
||
|
"#random.shuffle(l)\n",
|
||
|
"\n",
|
||
|
"print(l)\n",
|
||
|
"print(len(l))\n",
|
||
|
"np.mean(l)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## ODT 1 Calibration"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"v_high = 2.7\n",
|
||
|
"\"\"\"High Power\"\"\"\n",
|
||
|
"P_arm1_high = 5.776 * v_high - 0.683\n",
|
||
|
"\n",
|
||
|
"v_mid = 0.2076\n",
|
||
|
"\"\"\"Intermediate Power\"\"\"\n",
|
||
|
"P_arm1_mid = 5.815 * v_mid - 0.03651\n",
|
||
|
"\n",
|
||
|
"v_low = 0.0587\n",
|
||
|
"\"\"\"Low Power\"\"\"\n",
|
||
|
"P_arm1_low = 5271 * v_low - 27.5\n",
|
||
|
"\n",
|
||
|
"print(round(P_arm1_high, 3))\n",
|
||
|
"print(round(P_arm1_mid, 3))\n",
|
||
|
"print(round(P_arm1_low, 3))"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"attachments": {},
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## ODT 2 Power Calibration"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"v = 0.7607\n",
|
||
|
"P_arm2 = 2.302 * v - 0.06452\n",
|
||
|
"print(round(P_arm2, 3))"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3 (ipykernel)",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.9.13"
|
||
|
},
|
||
|
"vscode": {
|
||
|
"interpreter": {
|
||
|
"hash": "c05913ad4f24fdc6b2418069394dc5835b1981849b107c9ba6df693aafd66650"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 2
|
||
|
}
|