You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4037 lines
681 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. {
  2. "cells": [
  3. {
  4. "attachments": {},
  5. "cell_type": "markdown",
  6. "metadata": {},
  7. "source": [
  8. "# Import supporting package"
  9. ]
  10. },
  11. {
  12. "cell_type": "code",
  13. "execution_count": 1,
  14. "metadata": {},
  15. "outputs": [
  16. {
  17. "ename": "ModuleNotFoundError",
  18. "evalue": "No module named 'DataContainer'",
  19. "output_type": "error",
  20. "traceback": [
  21. "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
  22. "\u001b[1;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
  23. "\u001b[1;32mf:\\Jianshun\\analyseScript\\backupScript\\2D-MOT power.ipynb Cell 2\u001b[0m in \u001b[0;36m1\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=5'>6</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39muncertainties\u001b[39;00m \u001b[39mimport\u001b[39;00m umath\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=7'>8</a>\u001b[0m \u001b[39mimport\u001b[39;00m \u001b[39mmatplotlib\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mpyplot\u001b[39;00m \u001b[39mas\u001b[39;00m \u001b[39mplt\u001b[39;00m\n\u001b[1;32m---> <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=9'>10</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mDataContainer\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mReadData\u001b[39;00m \u001b[39mimport\u001b[39;00m read_hdf5_file\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=10'>11</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mAnalyser\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mImagingAnalyser\u001b[39;00m \u001b[39mimport\u001b[39;00m ImageAnalyser\n\u001b[0;32m <a href='vscode-notebook-cell:/f%3A/Jianshun/analyseScript/backupScript/2D-MOT%20power.ipynb#W1sZmlsZQ%3D%3D?line=11'>12</a>\u001b[0m \u001b[39mfrom\u001b[39;00m \u001b[39mAnalyser\u001b[39;00m\u001b[39m.\u001b[39;00m\u001b[39mFitAnalyser\u001b[39;00m \u001b[39mimport\u001b[39;00m FitAnalyser\n",
  24. "\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'DataContainer'"
  25. ]
  26. }
  27. ],
  28. "source": [
  29. "import xarray as xr\n",
  30. "import numpy as np\n",
  31. "\n",
  32. "from uncertainties import ufloat\n",
  33. "from uncertainties import unumpy as unp\n",
  34. "from uncertainties import umath\n",
  35. "\n",
  36. "import matplotlib.pyplot as plt\n",
  37. "\n",
  38. "from DataContainer.ReadData import read_hdf5_file\n",
  39. "from Analyser.ImagingAnalyser import ImageAnalyser\n",
  40. "from Analyser.FitAnalyser import FitAnalyser\n",
  41. "from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
  42. "from Analyser.FitAnalyser import NewFitModel\n",
  43. "from ToolFunction.ToolFunction import *\n",
  44. "\n",
  45. "from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
  46. "xr.plot.dataarray_plot.errorbar = errorbar\n",
  47. "xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
  48. "\n",
  49. "imageAnalyser = ImageAnalyser()"
  50. ]
  51. },
  52. {
  53. "cell_type": "code",
  54. "execution_count": 11,
  55. "metadata": {},
  56. "outputs": [],
  57. "source": [
  58. "import numpy as np\n",
  59. "\n",
  60. "from matplotlib.colors import ListedColormap, LinearSegmentedColormap\n",
  61. "\n",
  62. "import matplotlib.pyplot as plt\n",
  63. "plt.rcParams[\"font.family\"] = \"arial\""
  64. ]
  65. },
  66. {
  67. "cell_type": "code",
  68. "execution_count": 12,
  69. "metadata": {},
  70. "outputs": [],
  71. "source": [
  72. "def Ncount_to_atoms():\n",
  73. " return 1 / 8.4743e-14 / 0.3725 * 5.86e-6**2 / 0.6606**2"
  74. ]
  75. },
  76. {
  77. "cell_type": "code",
  78. "execution_count": 13,
  79. "metadata": {},
  80. "outputs": [],
  81. "source": [
  82. "import csv\n",
  83. "\n",
  84. "colormap = np.zeros((1024, 3))\n",
  85. "\n",
  86. "with open('smooth-cool-warm-table-float-1024.csv', newline='') as csvfile:\n",
  87. " spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')\n",
  88. " i = 0\n",
  89. " for row in spamreader:\n",
  90. " try:\n",
  91. " a = row[0].split(',')\n",
  92. " colormap[i, 0] = float(a[1])\n",
  93. " colormap[i, 1] = float(a[2])\n",
  94. " colormap[i, 2] = float(a[3])\n",
  95. " i = i + 1\n",
  96. " except:\n",
  97. " pass\n",
  98. "\n",
  99. "colormap = ListedColormap(colormap)"
  100. ]
  101. },
  102. {
  103. "cell_type": "code",
  104. "execution_count": 14,
  105. "metadata": {},
  106. "outputs": [],
  107. "source": [
  108. "data_colors = colormap(np.linspace(0, 1, 7))\n",
  109. "plot_blue = data_colors[0]\n",
  110. "plot_red = data_colors[-1]\n",
  111. "plot_red_alpha = 1"
  112. ]
  113. },
  114. {
  115. "attachments": {},
  116. "cell_type": "markdown",
  117. "metadata": {},
  118. "source": [
  119. "## Start a client for parallel computing"
  120. ]
  121. },
  122. {
  123. "cell_type": "code",
  124. "execution_count": 12,
  125. "metadata": {},
  126. "outputs": [
  127. {
  128. "data": {
  129. "text/html": [
  130. "<div>\n",
  131. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
  132. " <div style=\"margin-left: 48px;\">\n",
  133. " <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
  134. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-eb14457e-1720-11ee-8c04-80e82ce2fa8e</p>\n",
  135. " <table style=\"width: 100%; text-align: left;\">\n",
  136. "\n",
  137. " <tr>\n",
  138. " \n",
  139. " <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
  140. " <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
  141. " \n",
  142. " </tr>\n",
  143. "\n",
  144. " \n",
  145. " <tr>\n",
  146. " <td style=\"text-align: left;\">\n",
  147. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  148. " </td>\n",
  149. " <td style=\"text-align: left;\"></td>\n",
  150. " </tr>\n",
  151. " \n",
  152. "\n",
  153. " </table>\n",
  154. "\n",
  155. " \n",
  156. "\n",
  157. " \n",
  158. " <details>\n",
  159. " <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
  160. " <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
  161. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
  162. " </div>\n",
  163. " <div style=\"margin-left: 48px;\">\n",
  164. " <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
  165. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">c071fe85</p>\n",
  166. " <table style=\"width: 100%; text-align: left;\">\n",
  167. " <tr>\n",
  168. " <td style=\"text-align: left;\">\n",
  169. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  170. " </td>\n",
  171. " <td style=\"text-align: left;\">\n",
  172. " <strong>Workers:</strong> 6\n",
  173. " </td>\n",
  174. " </tr>\n",
  175. " <tr>\n",
  176. " <td style=\"text-align: left;\">\n",
  177. " <strong>Total threads:</strong> 60\n",
  178. " </td>\n",
  179. " <td style=\"text-align: left;\">\n",
  180. " <strong>Total memory:</strong> 55.88 GiB\n",
  181. " </td>\n",
  182. " </tr>\n",
  183. " \n",
  184. " <tr>\n",
  185. " <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
  186. " <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
  187. "</tr>\n",
  188. "\n",
  189. " \n",
  190. " </table>\n",
  191. "\n",
  192. " <details>\n",
  193. " <summary style=\"margin-bottom: 20px;\">\n",
  194. " <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
  195. " </summary>\n",
  196. "\n",
  197. " <div style=\"\">\n",
  198. " <div>\n",
  199. " <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
  200. " <div style=\"margin-left: 48px;\">\n",
  201. " <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
  202. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-d47e28b4-5276-45c0-964e-87f3987b2160</p>\n",
  203. " <table style=\"width: 100%; text-align: left;\">\n",
  204. " <tr>\n",
  205. " <td style=\"text-align: left;\">\n",
  206. " <strong>Comm:</strong> tcp://127.0.0.1:54927\n",
  207. " </td>\n",
  208. " <td style=\"text-align: left;\">\n",
  209. " <strong>Workers:</strong> 6\n",
  210. " </td>\n",
  211. " </tr>\n",
  212. " <tr>\n",
  213. " <td style=\"text-align: left;\">\n",
  214. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  215. " </td>\n",
  216. " <td style=\"text-align: left;\">\n",
  217. " <strong>Total threads:</strong> 60\n",
  218. " </td>\n",
  219. " </tr>\n",
  220. " <tr>\n",
  221. " <td style=\"text-align: left;\">\n",
  222. " <strong>Started:</strong> Just now\n",
  223. " </td>\n",
  224. " <td style=\"text-align: left;\">\n",
  225. " <strong>Total memory:</strong> 55.88 GiB\n",
  226. " </td>\n",
  227. " </tr>\n",
  228. " </table>\n",
  229. " </div>\n",
  230. " </div>\n",
  231. "\n",
  232. " <details style=\"margin-left: 48px;\">\n",
  233. " <summary style=\"margin-bottom: 20px;\">\n",
  234. " <h3 style=\"display: inline;\">Workers</h3>\n",
  235. " </summary>\n",
  236. "\n",
  237. " \n",
  238. " <div style=\"margin-bottom: 20px;\">\n",
  239. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  240. " <div style=\"margin-left: 48px;\">\n",
  241. " <details>\n",
  242. " <summary>\n",
  243. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
  244. " </summary>\n",
  245. " <table style=\"width: 100%; text-align: left;\">\n",
  246. " <tr>\n",
  247. " <td style=\"text-align: left;\">\n",
  248. " <strong>Comm: </strong> tcp://127.0.0.1:54966\n",
  249. " </td>\n",
  250. " <td style=\"text-align: left;\">\n",
  251. " <strong>Total threads: </strong> 10\n",
  252. " </td>\n",
  253. " </tr>\n",
  254. " <tr>\n",
  255. " <td style=\"text-align: left;\">\n",
  256. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54967/status\" target=\"_blank\">http://127.0.0.1:54967/status</a>\n",
  257. " </td>\n",
  258. " <td style=\"text-align: left;\">\n",
  259. " <strong>Memory: </strong> 9.31 GiB\n",
  260. " </td>\n",
  261. " </tr>\n",
  262. " <tr>\n",
  263. " <td style=\"text-align: left;\">\n",
  264. " <strong>Nanny: </strong> tcp://127.0.0.1:54930\n",
  265. " </td>\n",
  266. " <td style=\"text-align: left;\"></td>\n",
  267. " </tr>\n",
  268. " <tr>\n",
  269. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  270. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-cvobjmxg\n",
  271. " </td>\n",
  272. " </tr>\n",
  273. "\n",
  274. " \n",
  275. "\n",
  276. " \n",
  277. "\n",
  278. " </table>\n",
  279. " </details>\n",
  280. " </div>\n",
  281. " </div>\n",
  282. " \n",
  283. " <div style=\"margin-bottom: 20px;\">\n",
  284. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  285. " <div style=\"margin-left: 48px;\">\n",
  286. " <details>\n",
  287. " <summary>\n",
  288. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
  289. " </summary>\n",
  290. " <table style=\"width: 100%; text-align: left;\">\n",
  291. " <tr>\n",
  292. " <td style=\"text-align: left;\">\n",
  293. " <strong>Comm: </strong> tcp://127.0.0.1:54960\n",
  294. " </td>\n",
  295. " <td style=\"text-align: left;\">\n",
  296. " <strong>Total threads: </strong> 10\n",
  297. " </td>\n",
  298. " </tr>\n",
  299. " <tr>\n",
  300. " <td style=\"text-align: left;\">\n",
  301. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54963/status\" target=\"_blank\">http://127.0.0.1:54963/status</a>\n",
  302. " </td>\n",
  303. " <td style=\"text-align: left;\">\n",
  304. " <strong>Memory: </strong> 9.31 GiB\n",
  305. " </td>\n",
  306. " </tr>\n",
  307. " <tr>\n",
  308. " <td style=\"text-align: left;\">\n",
  309. " <strong>Nanny: </strong> tcp://127.0.0.1:54931\n",
  310. " </td>\n",
  311. " <td style=\"text-align: left;\"></td>\n",
  312. " </tr>\n",
  313. " <tr>\n",
  314. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  315. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-r0l_epl5\n",
  316. " </td>\n",
  317. " </tr>\n",
  318. "\n",
  319. " \n",
  320. "\n",
  321. " \n",
  322. "\n",
  323. " </table>\n",
  324. " </details>\n",
  325. " </div>\n",
  326. " </div>\n",
  327. " \n",
  328. " <div style=\"margin-bottom: 20px;\">\n",
  329. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  330. " <div style=\"margin-left: 48px;\">\n",
  331. " <details>\n",
  332. " <summary>\n",
  333. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
  334. " </summary>\n",
  335. " <table style=\"width: 100%; text-align: left;\">\n",
  336. " <tr>\n",
  337. " <td style=\"text-align: left;\">\n",
  338. " <strong>Comm: </strong> tcp://127.0.0.1:54965\n",
  339. " </td>\n",
  340. " <td style=\"text-align: left;\">\n",
  341. " <strong>Total threads: </strong> 10\n",
  342. " </td>\n",
  343. " </tr>\n",
  344. " <tr>\n",
  345. " <td style=\"text-align: left;\">\n",
  346. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54968/status\" target=\"_blank\">http://127.0.0.1:54968/status</a>\n",
  347. " </td>\n",
  348. " <td style=\"text-align: left;\">\n",
  349. " <strong>Memory: </strong> 9.31 GiB\n",
  350. " </td>\n",
  351. " </tr>\n",
  352. " <tr>\n",
  353. " <td style=\"text-align: left;\">\n",
  354. " <strong>Nanny: </strong> tcp://127.0.0.1:54932\n",
  355. " </td>\n",
  356. " <td style=\"text-align: left;\"></td>\n",
  357. " </tr>\n",
  358. " <tr>\n",
  359. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  360. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-mnfl9i_m\n",
  361. " </td>\n",
  362. " </tr>\n",
  363. "\n",
  364. " \n",
  365. "\n",
  366. " \n",
  367. "\n",
  368. " </table>\n",
  369. " </details>\n",
  370. " </div>\n",
  371. " </div>\n",
  372. " \n",
  373. " <div style=\"margin-bottom: 20px;\">\n",
  374. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  375. " <div style=\"margin-left: 48px;\">\n",
  376. " <details>\n",
  377. " <summary>\n",
  378. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
  379. " </summary>\n",
  380. " <table style=\"width: 100%; text-align: left;\">\n",
  381. " <tr>\n",
  382. " <td style=\"text-align: left;\">\n",
  383. " <strong>Comm: </strong> tcp://127.0.0.1:54954\n",
  384. " </td>\n",
  385. " <td style=\"text-align: left;\">\n",
  386. " <strong>Total threads: </strong> 10\n",
  387. " </td>\n",
  388. " </tr>\n",
  389. " <tr>\n",
  390. " <td style=\"text-align: left;\">\n",
  391. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54955/status\" target=\"_blank\">http://127.0.0.1:54955/status</a>\n",
  392. " </td>\n",
  393. " <td style=\"text-align: left;\">\n",
  394. " <strong>Memory: </strong> 9.31 GiB\n",
  395. " </td>\n",
  396. " </tr>\n",
  397. " <tr>\n",
  398. " <td style=\"text-align: left;\">\n",
  399. " <strong>Nanny: </strong> tcp://127.0.0.1:54933\n",
  400. " </td>\n",
  401. " <td style=\"text-align: left;\"></td>\n",
  402. " </tr>\n",
  403. " <tr>\n",
  404. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  405. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-qkxkq62s\n",
  406. " </td>\n",
  407. " </tr>\n",
  408. "\n",
  409. " \n",
  410. "\n",
  411. " \n",
  412. "\n",
  413. " </table>\n",
  414. " </details>\n",
  415. " </div>\n",
  416. " </div>\n",
  417. " \n",
  418. " <div style=\"margin-bottom: 20px;\">\n",
  419. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  420. " <div style=\"margin-left: 48px;\">\n",
  421. " <details>\n",
  422. " <summary>\n",
  423. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
  424. " </summary>\n",
  425. " <table style=\"width: 100%; text-align: left;\">\n",
  426. " <tr>\n",
  427. " <td style=\"text-align: left;\">\n",
  428. " <strong>Comm: </strong> tcp://127.0.0.1:54958\n",
  429. " </td>\n",
  430. " <td style=\"text-align: left;\">\n",
  431. " <strong>Total threads: </strong> 10\n",
  432. " </td>\n",
  433. " </tr>\n",
  434. " <tr>\n",
  435. " <td style=\"text-align: left;\">\n",
  436. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54961/status\" target=\"_blank\">http://127.0.0.1:54961/status</a>\n",
  437. " </td>\n",
  438. " <td style=\"text-align: left;\">\n",
  439. " <strong>Memory: </strong> 9.31 GiB\n",
  440. " </td>\n",
  441. " </tr>\n",
  442. " <tr>\n",
  443. " <td style=\"text-align: left;\">\n",
  444. " <strong>Nanny: </strong> tcp://127.0.0.1:54934\n",
  445. " </td>\n",
  446. " <td style=\"text-align: left;\"></td>\n",
  447. " </tr>\n",
  448. " <tr>\n",
  449. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  450. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-zk2j62q_\n",
  451. " </td>\n",
  452. " </tr>\n",
  453. "\n",
  454. " \n",
  455. "\n",
  456. " \n",
  457. "\n",
  458. " </table>\n",
  459. " </details>\n",
  460. " </div>\n",
  461. " </div>\n",
  462. " \n",
  463. " <div style=\"margin-bottom: 20px;\">\n",
  464. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  465. " <div style=\"margin-left: 48px;\">\n",
  466. " <details>\n",
  467. " <summary>\n",
  468. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
  469. " </summary>\n",
  470. " <table style=\"width: 100%; text-align: left;\">\n",
  471. " <tr>\n",
  472. " <td style=\"text-align: left;\">\n",
  473. " <strong>Comm: </strong> tcp://127.0.0.1:54971\n",
  474. " </td>\n",
  475. " <td style=\"text-align: left;\">\n",
  476. " <strong>Total threads: </strong> 10\n",
  477. " </td>\n",
  478. " </tr>\n",
  479. " <tr>\n",
  480. " <td style=\"text-align: left;\">\n",
  481. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54972/status\" target=\"_blank\">http://127.0.0.1:54972/status</a>\n",
  482. " </td>\n",
  483. " <td style=\"text-align: left;\">\n",
  484. " <strong>Memory: </strong> 9.31 GiB\n",
  485. " </td>\n",
  486. " </tr>\n",
  487. " <tr>\n",
  488. " <td style=\"text-align: left;\">\n",
  489. " <strong>Nanny: </strong> tcp://127.0.0.1:54935\n",
  490. " </td>\n",
  491. " <td style=\"text-align: left;\"></td>\n",
  492. " </tr>\n",
  493. " <tr>\n",
  494. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  495. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-641vd42d\n",
  496. " </td>\n",
  497. " </tr>\n",
  498. "\n",
  499. " \n",
  500. "\n",
  501. " \n",
  502. "\n",
  503. " </table>\n",
  504. " </details>\n",
  505. " </div>\n",
  506. " </div>\n",
  507. " \n",
  508. "\n",
  509. " </details>\n",
  510. "</div>\n",
  511. "\n",
  512. " </details>\n",
  513. " </div>\n",
  514. "</div>\n",
  515. " </details>\n",
  516. " \n",
  517. "\n",
  518. " </div>\n",
  519. "</div>"
  520. ],
  521. "text/plain": [
  522. "<Client: 'tcp://127.0.0.1:54927' processes=6 threads=60, memory=55.88 GiB>"
  523. ]
  524. },
  525. "execution_count": 12,
  526. "metadata": {},
  527. "output_type": "execute_result"
  528. }
  529. ],
  530. "source": [
  531. "from dask.distributed import Client\n",
  532. "client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
  533. "client"
  534. ]
  535. },
  536. {
  537. "attachments": {},
  538. "cell_type": "markdown",
  539. "metadata": {},
  540. "source": [
  541. "## Set global path for experiment"
  542. ]
  543. },
  544. {
  545. "cell_type": "code",
  546. "execution_count": 13,
  547. "metadata": {},
  548. "outputs": [],
  549. "source": [
  550. "groupList = [\n",
  551. " \"images/MOT_3D_Camera/in_situ_absorption\",\n",
  552. " \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
  553. " \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
  554. "]\n",
  555. "\n",
  556. "dskey = {\n",
  557. " \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
  558. " \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
  559. " \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
  560. "}\n"
  561. ]
  562. },
  563. {
  564. "attachments": {},
  565. "cell_type": "markdown",
  566. "metadata": {},
  567. "source": [
  568. "# Old Loading Rate"
  569. ]
  570. },
  571. {
  572. "cell_type": "code",
  573. "execution_count": 14,
  574. "metadata": {},
  575. "outputs": [],
  576. "source": [
  577. "img_dir = '//DyLabNAS/Data/'\n",
  578. "SequenceName = \"MOT_3D_Imaging\" + \"/\""
  579. ]
  580. },
  581. {
  582. "attachments": {},
  583. "cell_type": "markdown",
  584. "metadata": {},
  585. "source": [
  586. "## With red push"
  587. ]
  588. },
  589. {
  590. "cell_type": "code",
  591. "execution_count": 15,
  592. "metadata": {},
  593. "outputs": [
  594. {
  595. "name": "stdout",
  596. "output_type": "stream",
  597. "text": [
  598. "The detected scaning axes and values are: \n",
  599. "\n",
  600. "{'final_amp': array([0.16, 0.24, 0.32, 0.4 , 0.48, 0.56, 0.64, 0.72, 0.8 , 0.88, 0.96]), 'mot_load_duration': array([ 0.5, 1. , 1.5, 2. , 2.5, 3. , 3.5, 4. , 4.5, 5. , 6. ,\n",
  601. " 7. , 8. , 9. , 10. ]), 'runs': array([0., 1., 2.])}\n"
  602. ]
  603. }
  604. ],
  605. "source": [
  606. "folderPath = img_dir + SequenceName + '2022/10/14'# get_date()\n",
  607. "\n",
  608. "shotNum = \"0012\"\n",
  609. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  610. "\n",
  611. "dataSetDict = {\n",
  612. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  613. " for i in [0]\n",
  614. "}\n",
  615. "\n",
  616. "dataSet = dataSetDict[\"camera_0\"]\n",
  617. "\n",
  618. "print_scanAxis(dataSet)\n",
  619. "\n",
  620. "scanAxis = get_scanAxis(dataSet)\n",
  621. "\n",
  622. "dataSet = auto_rechunk(dataSet)\n",
  623. "\n",
  624. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  625. "\n",
  626. "imageAnalyser.center = (600, 1150)\n",
  627. "imageAnalyser.span = (1100, 1260)\n",
  628. "imageAnalyser.fraction = (0.1, 0.1)\n",
  629. "\n",
  630. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  631. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  632. "\n",
  633. "Ncount = imageAnalyser.get_Ncount(dataSet_cropOD)\n",
  634. "Ncount_mean = calculate_mean(Ncount)\n",
  635. "Ncount_std = calculate_std(Ncount)"
  636. ]
  637. },
  638. {
  639. "cell_type": "code",
  640. "execution_count": 16,
  641. "metadata": {},
  642. "outputs": [
  643. {
  644. "data": {
  645. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHR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tXr+aKK67goYce4rbbbuPrr7/mmmuuYciQIYwZM4ZNmzZx1113sX79esaMGcNzzz3HpEmTOHz4MAaDgYcffpgvvviCrVu3Ehoayrx587jllltYt24dADNmzCAxMZHi4mJKSkqYNGkSy5cvZ+HChZ3xNggEAoGgi+L2SuRXWI8lMJSY2Vdm5lCFlZYSSaNM2kYWOJ8VLj02mFB912g1JegddHi5k19++YVx48ZRWlrqT9mtqqri6NGj/PDDDzz++OPs27fPP//222/HZrOxcuVKZs2ahcFgYMWKFf7xjIwMFi1axJw5c0hOTuaxxx7j+uuvB6C0tJT4+Hjy8vKQJIn09HSKiopISEgA4L333mPRokUcPny4VWsX5U7aFvGeCQSCzsYryRyutPqzTxt+8iusuL3Nfz2G6jUMjA0mPbY+Di7GJ+IiTboOXr2gt9Cly538/PPPZGZm+hvFW61WfvOb3/Dkk0+SnZ3NkCFDAuZnZmby2muvAZCdnc3NN9/cZHzHjh3U1tZSWFgYcH5sbCzh4eHs3LkThUJBRESEX9Q1nFtQUEBNTQ1hYWHt99BdnNNxUX/wwQcsXLiQgwcPBhx/8cUXefLJJykpKSE1NZVHH32UK6+8sr0fQSAQCE6IJMkU1djZ1ziJocTMgXILTk/zjd9NOrVPvMX6khgG1L+ODtaJJAZBl6XDhV1VVRU7d+5k9OjRbN++HZvNxg033MDs2bOJi4vDaDQGzDcYDFgsFgDMZnOL42azGeCE5zc3BmC
  646. "text/plain": [
  647. "<Figure size 640x480 with 1 Axes>"
  648. ]
  649. },
  650. "metadata": {},
  651. "output_type": "display_data"
  652. }
  653. ],
  654. "source": [
  655. "fig = plt.figure()\n",
  656. "# ax = fig.gca()\n",
  657. "Ncount_mean.plot.errorbar(hue='final_amp')\n",
  658. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  659. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  660. "plt.tight_layout()\n",
  661. "# plt.grid(visible=1)\n",
  662. "plt.show()"
  663. ]
  664. },
  665. {
  666. "cell_type": "code",
  667. "execution_count": 17,
  668. "metadata": {},
  669. "outputs": [
  670. {
  671. "data": {
  672. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABZp0lEQVR4nO3dd3wUdeL/8dem9w4pJCSBhJqIBUEpIiBSPCnKiQIize8deiigoqiInihiOdFTvJ+KEhWR4nlioSrYQBDpAQRCCaQSIMmGkLrz+yOyEgUMkGSSzfv5eOzDZD4zu+/ZaPJ2ZuczFsMwDERERESk3nMyO4CIiIiIVA8VOxEREREHoWInIiIi4iBU7EREREQchIqdiIiIiINQsRMRERFxECp2IiIiIg5CxU5ERETEQajYiYiIiDgIFTsRMcWRI0fo1q0bHh4eNG7cmC+//BKLxcKaNWuq/bUsFgtPPvlktT9vfZKRkcEdd9xBSEgIfn5+DB48mLS0tD/d7rvvvqNr1674+fnRtGlT7r//fqxWa6V1Dh06xG233Ubjxo0JCQlh4MCBpKSk1NSuiMh5uJgdQEQaplmzZrF27VrmzZtHkyZNSExMZN26dbRp08bsaA6nrKyMvn37UlBQwBtvvEFpaSmPPPIIN954I1u2bMHV1fWs2+3YsYNevXrRpUsXFi5cyJEjR5g8eTL79+/ns88+A6CwsJBevXpRVlbGv//9bzw8PJg6dSrXX38927dvJyAgoBb3VERU7ETEFMeOHSMiIoLbbrvNvuyaa64xMZHjWrRoEVu3bmXHjh20bdsWgMsvv5yEhAQWLFjA8OHDz7rdhx9+iMVi4X//+x8+Pj5ARUkcN24chw4dIjo6mu+//569e/eyatUqevbsCUDLli1p3bo1n376KXfddVft7KSIADoVKyImiImJYe7cuaSmptpPk65Zs6bSqdgnn3ySuLg4vvjiCy677DLc3d1p0aIFSUlJlZ5r27Zt3HLLLTRq1AhXV1eaNGnCfffdx6lTpy4p46lTp5gyZQrx8fG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p5+mZ8+efPfdd4SGhrJmzRr69OlD586dmTRpEs7OzrzxxhsMGjSIpUuX0rVr13M+v4hUPxU7EanTzvx8l5NTxceCbTab/Z+PPvoor7/+OgUFBURFRdGhQwc8PT0xDOOSXnf58uVMmDCB3bt34+vry2WXXYavry9Apec+87Nl58p9NhEREX9Y1rhxYzZt2nTObc519SpAdHQ0Bw8ePOtYQEAA+fn5f1heUFCAv7//WbcpKytj+vTpDBs2jNdee82+/Prrr6d58+a88MILvPjiizz77LM0adKEL7/80n46+MYbb+Taa69l4sSJbNy48ZyZRaT6qdiJSL313HPP8a9//Yv//Oc/3HrrrfaS0qFDh0t63pSUFAYOHMiAAQP4/PPPad68OQCzZ8+2H8m7VGe7sCArK4vGjRufc5uffvrpnGPn+4xdy5Ytz3phxr59+875Xh09epTCwkI6d+5caXloaCitWrWyf17w0KFDtG/fvtLrOzk50bVrV15//fVzZhKRmqGrYkWk3vr+++9p27Yto0ePtpe6tLQ0tm/fbj+qdzF+/vlnioqKmDJlir3UASxduhTgkp77tJSUFHbu3Gn/Pj09nXXr1tmnDDmb9u3bn/ORmJh4zu1uvPFGdu3aVen1du7cya5du7jxxhvPuk3jxo0JCgr6w6nhnJwc9uzZQ2xsLACtWrViw4YN9qtjoeKI5rp16+zriEjtUbETkXqrQ4cObNu2jeeee45vvvmGOXPmcN1111FcXGz/HN7FuPLKK3FxceHhhx9m5cqVfP7559x666188cUXAJf03KcZhsGAAQNYsGABH3/8Mb179yYwMJD77rvvkp/794YMGUKLFi3o27cv8+fPZ/78+fTt25fExET++te/2tfbvHmzvfw5Ozvz1FNPMX/+fP7+97/z1VdfsWDBAm644QacnZ154IEHAJg6dSoZGRn07duXJUuW8OWXX/LXv/6VdevW8fTTT1f7vojI+anYiUi9NWXKFMaNG8crr7xC3759eeGFF7jzzjt58sknSU5O5sSJExf1vHFxccyfP58jR47Qv39//va3vwHY59o73wUOVdW0aVMeeOABJk6cyOjRo2nRogVr164lKCjokp/799zd3Vm5ciVXXXUV//d//8e9997Ltddey7Jly3Bx+e0TOYMGDeKee+6xf/+Pf/yD999/n/Xr19OvXz8mTZpEq1at2Lx5s/1IZvv27fnmm29wcXFh6NChDB8+nGPHjrF69WpuvfXWat8XETk/i3GpnzAWEZELMnLkSNasWXPOix1ERC6WLp4QkQbDZrNV6fNxZx7FEhGpT3QqVkQajNGjR+Pq6vqnDx1JE5H6SqdiRaTBOHjwIDk5OX+63mWXXYabm1stJBIRqV4qdiIiIiIOQqdiRURERByEip2IiIiIg9ClXxfAZrORnp6Or6/vWW+oLSIiIlLdDMPAarUSERFhv2f2uajYXYD09HSioqLMjiEiIiIN0OHDh4mMjDzvOip2F8DX1xeoeGP9/PxMTiMiIiINQX5+PlFRUfYecj4qdhfg9OlXPz8/FTsRERGpVVX5GJgunhARERFxECp2IiIiIg5CxU5ERETEQajYiYiIiDgIFTsRERERB6FiJyIiIuIgVOxEREREHISKnYiIiIiDMKXYHT9+nBEjRhAcHExgYCADBw4kIyMDgPXr19OxY0d8fHyIjY1lzpw5lbZNSkoiLi4Ob29v2rdvz7p16+xj5eXlPPTQQ4SGhuLr68uAAQPszwuQnZ3NwIEDCQgIICQkhAkTJlBWVlY7Oy0iIiJSw0wpdrfeeisFBQWkpKSQmpqKs7Mzd999NydOnKBfv36MGDGC3Nxc5syZw8SJE9mwYQMAa9asYfz48SQlJZGbm8uwYcPo378/hYWFAEyfPp0VK1a
  673. "text/plain": [
  674. "<Figure size 640x480 with 1 Axes>"
  675. ]
  676. },
  677. "metadata": {},
  678. "output_type": "display_data"
  679. }
  680. ],
  681. "source": [
  682. "data = Ncount_mean.sel(final_amp=0.88)\n",
  683. "data_std = Ncount_std.sel(final_amp=0.88)\n",
  684. "fig = plt.figure()\n",
  685. "# ax = fig.gca()\n",
  686. "data.plot.errorbar()\n",
  687. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  688. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  689. "plt.tight_layout()\n",
  690. "# plt.grid(visible=1)\n",
  691. "plt.show()"
  692. ]
  693. },
  694. {
  695. "cell_type": "code",
  696. "execution_count": 18,
  697. "metadata": {},
  698. "outputs": [],
  699. "source": [
  700. "def factor_from_Ncounts_to_Natom():\n",
  701. " return 1 / (8.474337362524987e-14 * 0.3725) * 5.86e-6**2 / 0.438**2"
  702. ]
  703. },
  704. {
  705. "cell_type": "code",
  706. "execution_count": 19,
  707. "metadata": {},
  708. "outputs": [],
  709. "source": [
  710. "def mot_loading(x, A, tau):\n",
  711. " return A * (1 - np.exp(-x / tau)) * np.heaviside(x, 0)"
  712. ]
  713. },
  714. {
  715. "cell_type": "code",
  716. "execution_count": 20,
  717. "metadata": {},
  718. "outputs": [],
  719. "source": [
  720. "data = data * factor_from_Ncounts_to_Natom()\n",
  721. "data_std = data_std * factor_from_Ncounts_to_Natom()"
  722. ]
  723. },
  724. {
  725. "cell_type": "code",
  726. "execution_count": 21,
  727. "metadata": {},
  728. "outputs": [
  729. {
  730. "data": {
  731. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABk9ElEQVR4nO3de3zO9f/H8ce1IzsZxhw25zNDIZE5NqcOzpRTDpVUSjoXIen8E9909KUkimZ8c8ohFpUix5CwZGwzZnZmx+v3x5Ursw1juz7Xrj3vt9tu2/X+vK/P53XtnTy9P4e3yWw2mxERERGREs/J6AJEREREpGgo2ImIiIg4CAU7EREREQehYCciIiLiIBTsRERERByEgp2IiIiIg1CwExEREXEQCnYiIiIiDkLBTkRERMRBKNiJSJE6deoUnTp1okyZMlSuXJm1a9diMpkIDw8v8mOZTCamTZtW5PstSWJiYrj//vvx8/PDx8eHgQMHEhUVdc33bdu2jeDgYHx8fKhRowZPPvkkycnJufqcOHGCwYMHU7lyZfz8/Ojb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ZNm6x9Tpw4YQbM7777rtlsNpvXr19v7tixozkxMTHXvoOCgszdu3e3vgbMU6dOve7a0tPTzT169DB//fXXudr/7//+zwyYo6OjrZ8BMP/xxx/WPuPGjTMD5u+//97a9u6775oB8/nz53O974cffrD2iY6ONpcpU8b8zDPPXHed16tBgwbmYcOG5WkfNmyYuX79+ld974cffmh2cnIyA2bAXLNmTXNkZGSuPj///LO5YsWK1j7u7u7mDRs2FOlnEJGipRk7ETFEu3btrD8HBAQAkJqaCkD37t3p3r07mZmZHDlyhCNHjrB//37OnDlDxYoVb/iYbm5ufPfdd4Bl1vDo0aMcPnyY1atXA5CRkWHtW758eRo1amR9XaVKFSD39YKXaklISLDeTFCjRg06duxo7VO1alXat2/Ptm3bCqwrKyurwG0mkwlnZ+d8t+Xk5FhnGC9nNpsLfA/AG2+8wUsvvcRjjz1G//79OXv2LDNmzKBbt25s27YNf39/wsPD6dmzJ3fccQeTJk3C2dmZjz76iH79+rFu3TqCg4ML3L+IGKfUXWN39uxZ6tWrd92PXsjJyeHll18mICCAcuXKcfvtt/PDDz8Ub5EipcDl13c5OVn+V5STk2P9/sILL1ChQgUaNmzIo48+yu7duylbtixms/mmjrt+/XoaN25MtWrVuPvuu/niiy+spzsv3/fl15YVVHd+qlWrlqetcuXKnD9/vsD3uLq6FvhVt27dAt/n6+tLUlJSnvaUlBTKlSuX73uysrJ47bXXGDZsGHPnzqVr164MGTKE77//nujoaN555x0AXn/9dapXr87atWu566676NmzJytWrKBp06Y89dRTV/0diIhxStWM3U8//cQDDzxQqOcwffLJJ6xcuZJff/2VqlWrMmfOHO666y7i4uIoU6ZMMVYrUnq9+eabzJo1i48//pgBAwZYQ8ptt912U/uNiIigb9++9OnTh9WrV1tD04cffmidybtZ+d1YEBsbS+XKlQt8z86dOwvcdrVr7Bo2bJjvjRnHjh0r8Hd19uxZ0tLSuOOOO3K1+/v706hRI+v1gidOnKB169a5ju/k5ERwcDAffPBBgTWJiLFKzYzdwoULGTp0KDNnzsyzb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mDzc3NzaZ1ikjBLl0Hey35zdqLiDiSUnMqtiBjx45lyZIlbNiwgZycHI4ePUrHjh159913Abj33nt57bXX+Ouvv8jMzGTOnDnExMRw9913G1y5iFwyZsyYqz4y5NKXZtJExNGV+lOxAGvWrGHq1KkcPXoUT09P7r/
  732. "text/plain": [
  733. "<Figure size 640x480 with 1 Axes>"
  734. ]
  735. },
  736. "metadata": {},
  737. "output_type": "display_data"
  738. }
  739. ],
  740. "source": [
  741. "fitModel = NewFitModel(mot_loading)\n",
  742. "fitAnalyser = FitAnalyser(fitModel, fitDim=1)\n",
  743. "\n",
  744. "params = fitAnalyser.fitModel.make_params()\n",
  745. "params.add(name=\"A\", value=1e8, max=np.inf, min=-np.inf, vary=True)\n",
  746. "params.add(name=\"tau\", value=1, max=np.inf, min=-np.inf, vary=True)\n",
  747. "\n",
  748. "fitResult = fitAnalyser.fit(data, params, x='mot_load_duration').load()\n",
  749. "freqdata = np.linspace(0, 10, 500)\n",
  750. "fitCurve = fitAnalyser.eval(fitResult, x=freqdata, dask=\"parallelized\").load()\n",
  751. "fitCurve = fitCurve.assign_coords({'x':np.array(freqdata)})\n",
  752. "\n",
  753. "fig = plt.figure()\n",
  754. "ax = fig.gca()\n",
  755. "\n",
  756. "data.plot.errorbar(ax=ax, yerr = data_std, fmt='ob')\n",
  757. "fitCurve.plot.errorbar(ax=ax, fmt='--g')\n",
  758. "plt.xlabel('Push AOM Freq (MHz)')\n",
  759. "plt.ylabel('NCount')\n",
  760. "plt.tight_layout()\n",
  761. "plt.grid(visible=1)\n",
  762. "plt.show()"
  763. ]
  764. },
  765. {
  766. "cell_type": "code",
  767. "execution_count": 22,
  768. "metadata": {},
  769. "outputs": [
  770. {
  771. "data": {
  772. "text/html": [
  773. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  774. "<defs>\n",
  775. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  776. "<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",
  777. "<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",
  778. "<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",
  779. "</symbol>\n",
  780. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  781. "<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",
  782. "<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",
  783. "<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",
  784. "<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",
  785. "</symbol>\n",
  786. "</defs>\n",
  787. "</svg>\n",
  788. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  789. " *\n",
  790. " */\n",
  791. "\n",
  792. ":root {\n",
  793. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  794. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  795. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  796. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  797. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  798. " --xr-background-color: var(--jp-layout-color0, white);\n",
  799. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  800. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  801. "}\n",
  802. "\n",
  803. "html[theme=dark],\n",
  804. "body[data-theme=dark],\n",
  805. "body.vscode-dark {\n",
  806. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  807. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  808. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  809. " --xr-border-color: #1F1F1F;\n",
  810. " --xr-disabled-color: #515151;\n",
  811. " --xr-background-color: #111111;\n",
  812. " --xr-background-color-row-even: #111111;\n",
  813. " --xr-background-color-row-odd: #313131;\n",
  814. "}\n",
  815. "\n",
  816. ".xr-wrap {\n",
  817. " display: block !important;\n",
  818. " min-width: 300px;\n",
  819. " max-width: 700px;\n",
  820. "}\n",
  821. "\n",
  822. ".xr-text-repr-fallback {\n",
  823. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  824. " display: none;\n",
  825. "}\n",
  826. "\n",
  827. ".xr-header {\n",
  828. " padding-top: 6px;\n",
  829. " padding-bottom: 6px;\n",
  830. " margin-bottom: 4px;\n",
  831. " border-bottom: solid 1px var(--xr-border-color);\n",
  832. "}\n",
  833. "\n",
  834. ".xr-header > div,\n",
  835. ".xr-header > ul {\n",
  836. " display: inline;\n",
  837. " margin-top: 0;\n",
  838. " margin-bottom: 0;\n",
  839. "}\n",
  840. "\n",
  841. ".xr-obj-type,\n",
  842. ".xr-array-name {\n",
  843. " margin-left: 2px;\n",
  844. " margin-right: 10px;\n",
  845. "}\n",
  846. "\n",
  847. ".xr-obj-type {\n",
  848. " color: var(--xr-font-color2);\n",
  849. "}\n",
  850. "\n",
  851. ".xr-sections {\n",
  852. " padding-left: 0 !important;\n",
  853. " display: grid;\n",
  854. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  855. "}\n",
  856. "\n",
  857. ".xr-section-item {\n",
  858. " display: contents;\n",
  859. "}\n",
  860. "\n",
  861. ".xr-section-item input {\n",
  862. " display: none;\n",
  863. "}\n",
  864. "\n",
  865. ".xr-section-item input + label {\n",
  866. " color: var(--xr-disabled-color);\n",
  867. "}\n",
  868. "\n",
  869. ".xr-section-item input:enabled + label {\n",
  870. " cursor: pointer;\n",
  871. " color: var(--xr-font-color2);\n",
  872. "}\n",
  873. "\n",
  874. ".xr-section-item input:enabled + label:hover {\n",
  875. " color: var(--xr-font-color0);\n",
  876. "}\n",
  877. "\n",
  878. ".xr-section-summary {\n",
  879. " grid-column: 1;\n",
  880. " color: var(--xr-font-color2);\n",
  881. " font-weight: 500;\n",
  882. "}\n",
  883. "\n",
  884. ".xr-section-summary > span {\n",
  885. " display: inline-block;\n",
  886. " padding-left: 0.5em;\n",
  887. "}\n",
  888. "\n",
  889. ".xr-section-summary-in:disabled + label {\n",
  890. " color: var(--xr-font-color2);\n",
  891. "}\n",
  892. "\n",
  893. ".xr-section-summary-in + label:before {\n",
  894. " display: inline-block;\n",
  895. " content: 'â–º';\n",
  896. " font-size: 11px;\n",
  897. " width: 15px;\n",
  898. " text-align: center;\n",
  899. "}\n",
  900. "\n",
  901. ".xr-section-summary-in:disabled + label:before {\n",
  902. " color: var(--xr-disabled-color);\n",
  903. "}\n",
  904. "\n",
  905. ".xr-section-summary-in:checked + label:before {\n",
  906. " content: 'â–¼';\n",
  907. "}\n",
  908. "\n",
  909. ".xr-section-summary-in:checked + label > span {\n",
  910. " display: none;\n",
  911. "}\n",
  912. "\n",
  913. ".xr-section-summary,\n",
  914. ".xr-section-inline-details {\n",
  915. " padding-top: 4px;\n",
  916. " padding-bottom: 4px;\n",
  917. "}\n",
  918. "\n",
  919. ".xr-section-inline-details {\n",
  920. " grid-column: 2 / -1;\n",
  921. "}\n",
  922. "\n",
  923. ".xr-section-details {\n",
  924. " display: none;\n",
  925. " grid-column: 1 / -1;\n",
  926. " margin-bottom: 5px;\n",
  927. "}\n",
  928. "\n",
  929. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  930. " display: contents;\n",
  931. "}\n",
  932. "\n",
  933. ".xr-array-wrap {\n",
  934. " grid-column: 1 / -1;\n",
  935. " display: grid;\n",
  936. " grid-template-columns: 20px auto;\n",
  937. "}\n",
  938. "\n",
  939. ".xr-array-wrap > label {\n",
  940. " grid-column: 1;\n",
  941. " vertical-align: top;\n",
  942. "}\n",
  943. "\n",
  944. ".xr-preview {\n",
  945. " color: var(--xr-font-color3);\n",
  946. "}\n",
  947. "\n",
  948. ".xr-array-preview,\n",
  949. ".xr-array-data {\n",
  950. " padding: 0 5px !important;\n",
  951. " grid-column: 2;\n",
  952. "}\n",
  953. "\n",
  954. ".xr-array-data,\n",
  955. ".xr-array-in:checked ~ .xr-array-preview {\n",
  956. " display: none;\n",
  957. "}\n",
  958. "\n",
  959. ".xr-array-in:checked ~ .xr-array-data,\n",
  960. ".xr-array-preview {\n",
  961. " display: inline-block;\n",
  962. "}\n",
  963. "\n",
  964. ".xr-dim-list {\n",
  965. " display: inline-block !important;\n",
  966. " list-style: none;\n",
  967. " padding: 0 !important;\n",
  968. " margin: 0;\n",
  969. "}\n",
  970. "\n",
  971. ".xr-dim-list li {\n",
  972. " display: inline-block;\n",
  973. " padding: 0;\n",
  974. " margin: 0;\n",
  975. "}\n",
  976. "\n",
  977. ".xr-dim-list:before {\n",
  978. " content: '(';\n",
  979. "}\n",
  980. "\n",
  981. ".xr-dim-list:after {\n",
  982. " content: ')';\n",
  983. "}\n",
  984. "\n",
  985. ".xr-dim-list li:not(:last-child):after {\n",
  986. " content: ',';\n",
  987. " padding-right: 5px;\n",
  988. "}\n",
  989. "\n",
  990. ".xr-has-index {\n",
  991. " font-weight: bold;\n",
  992. "}\n",
  993. "\n",
  994. ".xr-var-list,\n",
  995. ".xr-var-item {\n",
  996. " display: contents;\n",
  997. "}\n",
  998. "\n",
  999. ".xr-var-item > div,\n",
  1000. ".xr-var-item label,\n",
  1001. ".xr-var-item > .xr-var-name span {\n",
  1002. " background-color: var(--xr-background-color-row-even);\n",
  1003. " margin-bottom: 0;\n",
  1004. "}\n",
  1005. "\n",
  1006. ".xr-var-item > .xr-var-name:hover span {\n",
  1007. " padding-right: 5px;\n",
  1008. "}\n",
  1009. "\n",
  1010. ".xr-var-list > li:nth-child(odd) > div,\n",
  1011. ".xr-var-list > li:nth-child(odd) > label,\n",
  1012. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1013. " background-color: var(--xr-background-color-row-odd);\n",
  1014. "}\n",
  1015. "\n",
  1016. ".xr-var-name {\n",
  1017. " grid-column: 1;\n",
  1018. "}\n",
  1019. "\n",
  1020. ".xr-var-dims {\n",
  1021. " grid-column: 2;\n",
  1022. "}\n",
  1023. "\n",
  1024. ".xr-var-dtype {\n",
  1025. " grid-column: 3;\n",
  1026. " text-align: right;\n",
  1027. " color: var(--xr-font-color2);\n",
  1028. "}\n",
  1029. "\n",
  1030. ".xr-var-preview {\n",
  1031. " grid-column: 4;\n",
  1032. "}\n",
  1033. "\n",
  1034. ".xr-index-preview {\n",
  1035. " grid-column: 2 / 5;\n",
  1036. " color: var(--xr-font-color2);\n",
  1037. "}\n",
  1038. "\n",
  1039. ".xr-var-name,\n",
  1040. ".xr-var-dims,\n",
  1041. ".xr-var-dtype,\n",
  1042. ".xr-preview,\n",
  1043. ".xr-attrs dt {\n",
  1044. " white-space: nowrap;\n",
  1045. " overflow: hidden;\n",
  1046. " text-overflow: ellipsis;\n",
  1047. " padding-right: 10px;\n",
  1048. "}\n",
  1049. "\n",
  1050. ".xr-var-name:hover,\n",
  1051. ".xr-var-dims:hover,\n",
  1052. ".xr-var-dtype:hover,\n",
  1053. ".xr-attrs dt:hover {\n",
  1054. " overflow: visible;\n",
  1055. " width: auto;\n",
  1056. " z-index: 1;\n",
  1057. "}\n",
  1058. "\n",
  1059. ".xr-var-attrs,\n",
  1060. ".xr-var-data,\n",
  1061. ".xr-index-data {\n",
  1062. " display: none;\n",
  1063. " background-color: var(--xr-background-color) !important;\n",
  1064. " padding-bottom: 5px !important;\n",
  1065. "}\n",
  1066. "\n",
  1067. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1068. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1069. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1070. " display: block;\n",
  1071. "}\n",
  1072. "\n",
  1073. ".xr-var-data > table {\n",
  1074. " float: right;\n",
  1075. "}\n",
  1076. "\n",
  1077. ".xr-var-name span,\n",
  1078. ".xr-var-data,\n",
  1079. ".xr-index-name div,\n",
  1080. ".xr-index-data,\n",
  1081. ".xr-attrs {\n",
  1082. " padding-left: 25px !important;\n",
  1083. "}\n",
  1084. "\n",
  1085. ".xr-attrs,\n",
  1086. ".xr-var-attrs,\n",
  1087. ".xr-var-data,\n",
  1088. ".xr-index-data {\n",
  1089. " grid-column: 1 / -1;\n",
  1090. "}\n",
  1091. "\n",
  1092. "dl.xr-attrs {\n",
  1093. " padding: 0;\n",
  1094. " margin: 0;\n",
  1095. " display: grid;\n",
  1096. " grid-template-columns: 125px auto;\n",
  1097. "}\n",
  1098. "\n",
  1099. ".xr-attrs dt,\n",
  1100. ".xr-attrs dd {\n",
  1101. " padding: 0;\n",
  1102. " margin: 0;\n",
  1103. " float: left;\n",
  1104. " padding-right: 10px;\n",
  1105. " width: auto;\n",
  1106. "}\n",
  1107. "\n",
  1108. ".xr-attrs dt {\n",
  1109. " font-weight: normal;\n",
  1110. " grid-column: 1;\n",
  1111. "}\n",
  1112. "\n",
  1113. ".xr-attrs dt:hover span {\n",
  1114. " display: inline-block;\n",
  1115. " background: var(--xr-background-color);\n",
  1116. " padding-right: 10px;\n",
  1117. "}\n",
  1118. "\n",
  1119. ".xr-attrs dd {\n",
  1120. " grid-column: 2;\n",
  1121. " white-space: pre-wrap;\n",
  1122. " word-break: break-all;\n",
  1123. "}\n",
  1124. "\n",
  1125. ".xr-icon-database,\n",
  1126. ".xr-icon-file-text2,\n",
  1127. ".xr-no-icon {\n",
  1128. " display: inline-block;\n",
  1129. " vertical-align: middle;\n",
  1130. " width: 1em;\n",
  1131. " height: 1.5em !important;\n",
  1132. " stroke-width: 0;\n",
  1133. " stroke: currentColor;\n",
  1134. " fill: currentColor;\n",
  1135. "}\n",
  1136. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  1137. "Dimensions: ()\n",
  1138. "Coordinates:\n",
  1139. " final_amp float64 0.88\n",
  1140. "Data variables:\n",
  1141. " A float64 3.548e+08\n",
  1142. " tau float64 2.918</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-306565fe-c794-4807-9d12-42b0a94b6e46' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-306565fe-c794-4807-9d12-42b0a94b6e46' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-df5adb4c-20c8-4566-8e8d-a86a1f0f8f23' class='xr-section-summary-in' type='checkbox' checked><label for='section-df5adb4c-20c8-4566-8e8d-a86a1f0f8f23' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>final_amp</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.88</div><input id='attrs-46e0a84f-98ec-4515-8ae3-f47284f3bb80' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-46e0a84f-98ec-4515-8ae3-f47284f3bb80' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-728f29aa-4c6d-4813-bfb4-f25e88ee19b1' class='xr-var-data-in' type='checkbox'><label for='data-728f29aa-4c6d-4813-bfb4-f25e88ee19b1' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.88)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-bcc4a974-46bb-4072-8c23-89fa6a78d769' class='xr-section-summary-in' type='checkbox' checked><label for='section-bcc4a974-46bb-4072-8c23-89fa6a78d769' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>3.548e+08</div><input id='attrs-e952e42d-4ebd-4c1a-8370-88315a4e1039' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e952e42d-4ebd-4c1a-8370-88315a4e1039' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ae3e1a27-1db7-44c3-8223-74f1032c0006' class='xr-var-data-in' type='checkbox'><label for='data-ae3e1a27-1db7-44c3-8223-74f1032c0006' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(3.54756438e+08)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.918</div><input id='attrs-173f8442-39e3-4477-b976-54be113fe968' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-173f8442-39e3-4477-b976-54be113fe968' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-16a309d6-1e1c-4753-8138-a305ff297155' class='xr-var-data-in' type='checkbox'><label for='data-16a309d6-1e1c-4753-8138-a305ff297155' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(2.91809259)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0a1d5298-df4e-4299-8163-fbaa9fb327b6' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0a1d5298-df4e-4299-8163-fbaa9fb327b6'
  1143. ],
  1144. "text/plain": [
  1145. "<xarray.Dataset>\n",
  1146. "Dimensions: ()\n",
  1147. "Coordinates:\n",
  1148. " final_amp float64 0.88\n",
  1149. "Data variables:\n",
  1150. " A float64 3.548e+08\n",
  1151. " tau float64 2.918"
  1152. ]
  1153. },
  1154. "execution_count": 22,
  1155. "metadata": {},
  1156. "output_type": "execute_result"
  1157. }
  1158. ],
  1159. "source": [
  1160. "val = fitAnalyser.get_fit_value(fitResult)\n",
  1161. "val"
  1162. ]
  1163. },
  1164. {
  1165. "cell_type": "code",
  1166. "execution_count": 23,
  1167. "metadata": {},
  1168. "outputs": [
  1169. {
  1170. "data": {
  1171. "text/html": [
  1172. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  1173. "<defs>\n",
  1174. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  1175. "<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",
  1176. "<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",
  1177. "<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",
  1178. "</symbol>\n",
  1179. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  1180. "<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",
  1181. "<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",
  1182. "<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",
  1183. "<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",
  1184. "</symbol>\n",
  1185. "</defs>\n",
  1186. "</svg>\n",
  1187. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  1188. " *\n",
  1189. " */\n",
  1190. "\n",
  1191. ":root {\n",
  1192. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  1193. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  1194. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  1195. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  1196. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  1197. " --xr-background-color: var(--jp-layout-color0, white);\n",
  1198. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  1199. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  1200. "}\n",
  1201. "\n",
  1202. "html[theme=dark],\n",
  1203. "body[data-theme=dark],\n",
  1204. "body.vscode-dark {\n",
  1205. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  1206. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  1207. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  1208. " --xr-border-color: #1F1F1F;\n",
  1209. " --xr-disabled-color: #515151;\n",
  1210. " --xr-background-color: #111111;\n",
  1211. " --xr-background-color-row-even: #111111;\n",
  1212. " --xr-background-color-row-odd: #313131;\n",
  1213. "}\n",
  1214. "\n",
  1215. ".xr-wrap {\n",
  1216. " display: block !important;\n",
  1217. " min-width: 300px;\n",
  1218. " max-width: 700px;\n",
  1219. "}\n",
  1220. "\n",
  1221. ".xr-text-repr-fallback {\n",
  1222. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  1223. " display: none;\n",
  1224. "}\n",
  1225. "\n",
  1226. ".xr-header {\n",
  1227. " padding-top: 6px;\n",
  1228. " padding-bottom: 6px;\n",
  1229. " margin-bottom: 4px;\n",
  1230. " border-bottom: solid 1px var(--xr-border-color);\n",
  1231. "}\n",
  1232. "\n",
  1233. ".xr-header > div,\n",
  1234. ".xr-header > ul {\n",
  1235. " display: inline;\n",
  1236. " margin-top: 0;\n",
  1237. " margin-bottom: 0;\n",
  1238. "}\n",
  1239. "\n",
  1240. ".xr-obj-type,\n",
  1241. ".xr-array-name {\n",
  1242. " margin-left: 2px;\n",
  1243. " margin-right: 10px;\n",
  1244. "}\n",
  1245. "\n",
  1246. ".xr-obj-type {\n",
  1247. " color: var(--xr-font-color2);\n",
  1248. "}\n",
  1249. "\n",
  1250. ".xr-sections {\n",
  1251. " padding-left: 0 !important;\n",
  1252. " display: grid;\n",
  1253. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  1254. "}\n",
  1255. "\n",
  1256. ".xr-section-item {\n",
  1257. " display: contents;\n",
  1258. "}\n",
  1259. "\n",
  1260. ".xr-section-item input {\n",
  1261. " display: none;\n",
  1262. "}\n",
  1263. "\n",
  1264. ".xr-section-item input + label {\n",
  1265. " color: var(--xr-disabled-color);\n",
  1266. "}\n",
  1267. "\n",
  1268. ".xr-section-item input:enabled + label {\n",
  1269. " cursor: pointer;\n",
  1270. " color: var(--xr-font-color2);\n",
  1271. "}\n",
  1272. "\n",
  1273. ".xr-section-item input:enabled + label:hover {\n",
  1274. " color: var(--xr-font-color0);\n",
  1275. "}\n",
  1276. "\n",
  1277. ".xr-section-summary {\n",
  1278. " grid-column: 1;\n",
  1279. " color: var(--xr-font-color2);\n",
  1280. " font-weight: 500;\n",
  1281. "}\n",
  1282. "\n",
  1283. ".xr-section-summary > span {\n",
  1284. " display: inline-block;\n",
  1285. " padding-left: 0.5em;\n",
  1286. "}\n",
  1287. "\n",
  1288. ".xr-section-summary-in:disabled + label {\n",
  1289. " color: var(--xr-font-color2);\n",
  1290. "}\n",
  1291. "\n",
  1292. ".xr-section-summary-in + label:before {\n",
  1293. " display: inline-block;\n",
  1294. " content: 'â–º';\n",
  1295. " font-size: 11px;\n",
  1296. " width: 15px;\n",
  1297. " text-align: center;\n",
  1298. "}\n",
  1299. "\n",
  1300. ".xr-section-summary-in:disabled + label:before {\n",
  1301. " color: var(--xr-disabled-color);\n",
  1302. "}\n",
  1303. "\n",
  1304. ".xr-section-summary-in:checked + label:before {\n",
  1305. " content: 'â–¼';\n",
  1306. "}\n",
  1307. "\n",
  1308. ".xr-section-summary-in:checked + label > span {\n",
  1309. " display: none;\n",
  1310. "}\n",
  1311. "\n",
  1312. ".xr-section-summary,\n",
  1313. ".xr-section-inline-details {\n",
  1314. " padding-top: 4px;\n",
  1315. " padding-bottom: 4px;\n",
  1316. "}\n",
  1317. "\n",
  1318. ".xr-section-inline-details {\n",
  1319. " grid-column: 2 / -1;\n",
  1320. "}\n",
  1321. "\n",
  1322. ".xr-section-details {\n",
  1323. " display: none;\n",
  1324. " grid-column: 1 / -1;\n",
  1325. " margin-bottom: 5px;\n",
  1326. "}\n",
  1327. "\n",
  1328. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  1329. " display: contents;\n",
  1330. "}\n",
  1331. "\n",
  1332. ".xr-array-wrap {\n",
  1333. " grid-column: 1 / -1;\n",
  1334. " display: grid;\n",
  1335. " grid-template-columns: 20px auto;\n",
  1336. "}\n",
  1337. "\n",
  1338. ".xr-array-wrap > label {\n",
  1339. " grid-column: 1;\n",
  1340. " vertical-align: top;\n",
  1341. "}\n",
  1342. "\n",
  1343. ".xr-preview {\n",
  1344. " color: var(--xr-font-color3);\n",
  1345. "}\n",
  1346. "\n",
  1347. ".xr-array-preview,\n",
  1348. ".xr-array-data {\n",
  1349. " padding: 0 5px !important;\n",
  1350. " grid-column: 2;\n",
  1351. "}\n",
  1352. "\n",
  1353. ".xr-array-data,\n",
  1354. ".xr-array-in:checked ~ .xr-array-preview {\n",
  1355. " display: none;\n",
  1356. "}\n",
  1357. "\n",
  1358. ".xr-array-in:checked ~ .xr-array-data,\n",
  1359. ".xr-array-preview {\n",
  1360. " display: inline-block;\n",
  1361. "}\n",
  1362. "\n",
  1363. ".xr-dim-list {\n",
  1364. " display: inline-block !important;\n",
  1365. " list-style: none;\n",
  1366. " padding: 0 !important;\n",
  1367. " margin: 0;\n",
  1368. "}\n",
  1369. "\n",
  1370. ".xr-dim-list li {\n",
  1371. " display: inline-block;\n",
  1372. " padding: 0;\n",
  1373. " margin: 0;\n",
  1374. "}\n",
  1375. "\n",
  1376. ".xr-dim-list:before {\n",
  1377. " content: '(';\n",
  1378. "}\n",
  1379. "\n",
  1380. ".xr-dim-list:after {\n",
  1381. " content: ')';\n",
  1382. "}\n",
  1383. "\n",
  1384. ".xr-dim-list li:not(:last-child):after {\n",
  1385. " content: ',';\n",
  1386. " padding-right: 5px;\n",
  1387. "}\n",
  1388. "\n",
  1389. ".xr-has-index {\n",
  1390. " font-weight: bold;\n",
  1391. "}\n",
  1392. "\n",
  1393. ".xr-var-list,\n",
  1394. ".xr-var-item {\n",
  1395. " display: contents;\n",
  1396. "}\n",
  1397. "\n",
  1398. ".xr-var-item > div,\n",
  1399. ".xr-var-item label,\n",
  1400. ".xr-var-item > .xr-var-name span {\n",
  1401. " background-color: var(--xr-background-color-row-even);\n",
  1402. " margin-bottom: 0;\n",
  1403. "}\n",
  1404. "\n",
  1405. ".xr-var-item > .xr-var-name:hover span {\n",
  1406. " padding-right: 5px;\n",
  1407. "}\n",
  1408. "\n",
  1409. ".xr-var-list > li:nth-child(odd) > div,\n",
  1410. ".xr-var-list > li:nth-child(odd) > label,\n",
  1411. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1412. " background-color: var(--xr-background-color-row-odd);\n",
  1413. "}\n",
  1414. "\n",
  1415. ".xr-var-name {\n",
  1416. " grid-column: 1;\n",
  1417. "}\n",
  1418. "\n",
  1419. ".xr-var-dims {\n",
  1420. " grid-column: 2;\n",
  1421. "}\n",
  1422. "\n",
  1423. ".xr-var-dtype {\n",
  1424. " grid-column: 3;\n",
  1425. " text-align: right;\n",
  1426. " color: var(--xr-font-color2);\n",
  1427. "}\n",
  1428. "\n",
  1429. ".xr-var-preview {\n",
  1430. " grid-column: 4;\n",
  1431. "}\n",
  1432. "\n",
  1433. ".xr-index-preview {\n",
  1434. " grid-column: 2 / 5;\n",
  1435. " color: var(--xr-font-color2);\n",
  1436. "}\n",
  1437. "\n",
  1438. ".xr-var-name,\n",
  1439. ".xr-var-dims,\n",
  1440. ".xr-var-dtype,\n",
  1441. ".xr-preview,\n",
  1442. ".xr-attrs dt {\n",
  1443. " white-space: nowrap;\n",
  1444. " overflow: hidden;\n",
  1445. " text-overflow: ellipsis;\n",
  1446. " padding-right: 10px;\n",
  1447. "}\n",
  1448. "\n",
  1449. ".xr-var-name:hover,\n",
  1450. ".xr-var-dims:hover,\n",
  1451. ".xr-var-dtype:hover,\n",
  1452. ".xr-attrs dt:hover {\n",
  1453. " overflow: visible;\n",
  1454. " width: auto;\n",
  1455. " z-index: 1;\n",
  1456. "}\n",
  1457. "\n",
  1458. ".xr-var-attrs,\n",
  1459. ".xr-var-data,\n",
  1460. ".xr-index-data {\n",
  1461. " display: none;\n",
  1462. " background-color: var(--xr-background-color) !important;\n",
  1463. " padding-bottom: 5px !important;\n",
  1464. "}\n",
  1465. "\n",
  1466. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1467. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1468. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1469. " display: block;\n",
  1470. "}\n",
  1471. "\n",
  1472. ".xr-var-data > table {\n",
  1473. " float: right;\n",
  1474. "}\n",
  1475. "\n",
  1476. ".xr-var-name span,\n",
  1477. ".xr-var-data,\n",
  1478. ".xr-index-name div,\n",
  1479. ".xr-index-data,\n",
  1480. ".xr-attrs {\n",
  1481. " padding-left: 25px !important;\n",
  1482. "}\n",
  1483. "\n",
  1484. ".xr-attrs,\n",
  1485. ".xr-var-attrs,\n",
  1486. ".xr-var-data,\n",
  1487. ".xr-index-data {\n",
  1488. " grid-column: 1 / -1;\n",
  1489. "}\n",
  1490. "\n",
  1491. "dl.xr-attrs {\n",
  1492. " padding: 0;\n",
  1493. " margin: 0;\n",
  1494. " display: grid;\n",
  1495. " grid-template-columns: 125px auto;\n",
  1496. "}\n",
  1497. "\n",
  1498. ".xr-attrs dt,\n",
  1499. ".xr-attrs dd {\n",
  1500. " padding: 0;\n",
  1501. " margin: 0;\n",
  1502. " float: left;\n",
  1503. " padding-right: 10px;\n",
  1504. " width: auto;\n",
  1505. "}\n",
  1506. "\n",
  1507. ".xr-attrs dt {\n",
  1508. " font-weight: normal;\n",
  1509. " grid-column: 1;\n",
  1510. "}\n",
  1511. "\n",
  1512. ".xr-attrs dt:hover span {\n",
  1513. " display: inline-block;\n",
  1514. " background: var(--xr-background-color);\n",
  1515. " padding-right: 10px;\n",
  1516. "}\n",
  1517. "\n",
  1518. ".xr-attrs dd {\n",
  1519. " grid-column: 2;\n",
  1520. " white-space: pre-wrap;\n",
  1521. " word-break: break-all;\n",
  1522. "}\n",
  1523. "\n",
  1524. ".xr-icon-database,\n",
  1525. ".xr-icon-file-text2,\n",
  1526. ".xr-no-icon {\n",
  1527. " display: inline-block;\n",
  1528. " vertical-align: middle;\n",
  1529. " width: 1em;\n",
  1530. " height: 1.5em !important;\n",
  1531. " stroke-width: 0;\n",
  1532. " stroke: currentColor;\n",
  1533. " fill: currentColor;\n",
  1534. "}\n",
  1535. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  1536. "Dimensions: ()\n",
  1537. "Coordinates:\n",
  1538. " final_amp float64 0.88\n",
  1539. "Data variables:\n",
  1540. " A float64 2.776e+06\n",
  1541. " tau float64 0.05867</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-11c5cd5b-f73f-4855-a7a6-c2f7d26b992b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-11c5cd5b-f73f-4855-a7a6-c2f7d26b992b' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-9070dfd9-5691-4d56-afbe-ea45a13da857' class='xr-section-summary-in' type='checkbox' checked><label for='section-9070dfd9-5691-4d56-afbe-ea45a13da857' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>final_amp</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.88</div><input id='attrs-5e6f08c9-a13b-414c-8f0e-f69366ce99ab' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5e6f08c9-a13b-414c-8f0e-f69366ce99ab' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a61baea4-47a3-4bb0-abae-0f21c5b981e7' class='xr-var-data-in' type='checkbox'><label for='data-a61baea4-47a3-4bb0-abae-0f21c5b981e7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.88)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-29c4a383-1ce7-4a2e-a4a8-445563d27ef6' class='xr-section-summary-in' type='checkbox' checked><label for='section-29c4a383-1ce7-4a2e-a4a8-445563d27ef6' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.776e+06</div><input id='attrs-667a112d-177c-4a07-ad4d-8ff370431006' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-667a112d-177c-4a07-ad4d-8ff370431006' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-77ad3d5f-cffb-47d3-97fc-ae92496f9a2f' class='xr-var-data-in' type='checkbox'><label for='data-77ad3d5f-cffb-47d3-97fc-ae92496f9a2f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(2776453.58029856)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.05867</div><input id='attrs-7eddaa69-a7ac-4e0e-9dcc-bc1faf26f824' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7eddaa69-a7ac-4e0e-9dcc-bc1faf26f824' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b3f9db1e-7125-465b-b8b5-3864b935dc4a' class='xr-var-data-in' type='checkbox'><label for='data-b3f9db1e-7125-465b-b8b5-3864b935dc4a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.05867137)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-bdb7c108-f4fe-4ec3-afb5-1b3ba4661daa' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-bdb7c108-f4fe-4ec3-afb5-1b3ba466
  1542. ],
  1543. "text/plain": [
  1544. "<xarray.Dataset>\n",
  1545. "Dimensions: ()\n",
  1546. "Coordinates:\n",
  1547. " final_amp float64 0.88\n",
  1548. "Data variables:\n",
  1549. " A float64 2.776e+06\n",
  1550. " tau float64 0.05867"
  1551. ]
  1552. },
  1553. "execution_count": 23,
  1554. "metadata": {},
  1555. "output_type": "execute_result"
  1556. }
  1557. ],
  1558. "source": [
  1559. "std = fitAnalyser.get_fit_std(fitResult)\n",
  1560. "std"
  1561. ]
  1562. },
  1563. {
  1564. "cell_type": "code",
  1565. "execution_count": 24,
  1566. "metadata": {},
  1567. "outputs": [
  1568. {
  1569. "data": {
  1570. "text/html": [
  1571. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  1572. "<defs>\n",
  1573. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  1574. "<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",
  1575. "<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",
  1576. "<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",
  1577. "</symbol>\n",
  1578. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  1579. "<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",
  1580. "<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",
  1581. "<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",
  1582. "<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",
  1583. "</symbol>\n",
  1584. "</defs>\n",
  1585. "</svg>\n",
  1586. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  1587. " *\n",
  1588. " */\n",
  1589. "\n",
  1590. ":root {\n",
  1591. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  1592. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  1593. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  1594. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  1595. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  1596. " --xr-background-color: var(--jp-layout-color0, white);\n",
  1597. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  1598. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  1599. "}\n",
  1600. "\n",
  1601. "html[theme=dark],\n",
  1602. "body[data-theme=dark],\n",
  1603. "body.vscode-dark {\n",
  1604. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  1605. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  1606. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  1607. " --xr-border-color: #1F1F1F;\n",
  1608. " --xr-disabled-color: #515151;\n",
  1609. " --xr-background-color: #111111;\n",
  1610. " --xr-background-color-row-even: #111111;\n",
  1611. " --xr-background-color-row-odd: #313131;\n",
  1612. "}\n",
  1613. "\n",
  1614. ".xr-wrap {\n",
  1615. " display: block !important;\n",
  1616. " min-width: 300px;\n",
  1617. " max-width: 700px;\n",
  1618. "}\n",
  1619. "\n",
  1620. ".xr-text-repr-fallback {\n",
  1621. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  1622. " display: none;\n",
  1623. "}\n",
  1624. "\n",
  1625. ".xr-header {\n",
  1626. " padding-top: 6px;\n",
  1627. " padding-bottom: 6px;\n",
  1628. " margin-bottom: 4px;\n",
  1629. " border-bottom: solid 1px var(--xr-border-color);\n",
  1630. "}\n",
  1631. "\n",
  1632. ".xr-header > div,\n",
  1633. ".xr-header > ul {\n",
  1634. " display: inline;\n",
  1635. " margin-top: 0;\n",
  1636. " margin-bottom: 0;\n",
  1637. "}\n",
  1638. "\n",
  1639. ".xr-obj-type,\n",
  1640. ".xr-array-name {\n",
  1641. " margin-left: 2px;\n",
  1642. " margin-right: 10px;\n",
  1643. "}\n",
  1644. "\n",
  1645. ".xr-obj-type {\n",
  1646. " color: var(--xr-font-color2);\n",
  1647. "}\n",
  1648. "\n",
  1649. ".xr-sections {\n",
  1650. " padding-left: 0 !important;\n",
  1651. " display: grid;\n",
  1652. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  1653. "}\n",
  1654. "\n",
  1655. ".xr-section-item {\n",
  1656. " display: contents;\n",
  1657. "}\n",
  1658. "\n",
  1659. ".xr-section-item input {\n",
  1660. " display: none;\n",
  1661. "}\n",
  1662. "\n",
  1663. ".xr-section-item input + label {\n",
  1664. " color: var(--xr-disabled-color);\n",
  1665. "}\n",
  1666. "\n",
  1667. ".xr-section-item input:enabled + label {\n",
  1668. " cursor: pointer;\n",
  1669. " color: var(--xr-font-color2);\n",
  1670. "}\n",
  1671. "\n",
  1672. ".xr-section-item input:enabled + label:hover {\n",
  1673. " color: var(--xr-font-color0);\n",
  1674. "}\n",
  1675. "\n",
  1676. ".xr-section-summary {\n",
  1677. " grid-column: 1;\n",
  1678. " color: var(--xr-font-color2);\n",
  1679. " font-weight: 500;\n",
  1680. "}\n",
  1681. "\n",
  1682. ".xr-section-summary > span {\n",
  1683. " display: inline-block;\n",
  1684. " padding-left: 0.5em;\n",
  1685. "}\n",
  1686. "\n",
  1687. ".xr-section-summary-in:disabled + label {\n",
  1688. " color: var(--xr-font-color2);\n",
  1689. "}\n",
  1690. "\n",
  1691. ".xr-section-summary-in + label:before {\n",
  1692. " display: inline-block;\n",
  1693. " content: 'â–º';\n",
  1694. " font-size: 11px;\n",
  1695. " width: 15px;\n",
  1696. " text-align: center;\n",
  1697. "}\n",
  1698. "\n",
  1699. ".xr-section-summary-in:disabled + label:before {\n",
  1700. " color: var(--xr-disabled-color);\n",
  1701. "}\n",
  1702. "\n",
  1703. ".xr-section-summary-in:checked + label:before {\n",
  1704. " content: 'â–¼';\n",
  1705. "}\n",
  1706. "\n",
  1707. ".xr-section-summary-in:checked + label > span {\n",
  1708. " display: none;\n",
  1709. "}\n",
  1710. "\n",
  1711. ".xr-section-summary,\n",
  1712. ".xr-section-inline-details {\n",
  1713. " padding-top: 4px;\n",
  1714. " padding-bottom: 4px;\n",
  1715. "}\n",
  1716. "\n",
  1717. ".xr-section-inline-details {\n",
  1718. " grid-column: 2 / -1;\n",
  1719. "}\n",
  1720. "\n",
  1721. ".xr-section-details {\n",
  1722. " display: none;\n",
  1723. " grid-column: 1 / -1;\n",
  1724. " margin-bottom: 5px;\n",
  1725. "}\n",
  1726. "\n",
  1727. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  1728. " display: contents;\n",
  1729. "}\n",
  1730. "\n",
  1731. ".xr-array-wrap {\n",
  1732. " grid-column: 1 / -1;\n",
  1733. " display: grid;\n",
  1734. " grid-template-columns: 20px auto;\n",
  1735. "}\n",
  1736. "\n",
  1737. ".xr-array-wrap > label {\n",
  1738. " grid-column: 1;\n",
  1739. " vertical-align: top;\n",
  1740. "}\n",
  1741. "\n",
  1742. ".xr-preview {\n",
  1743. " color: var(--xr-font-color3);\n",
  1744. "}\n",
  1745. "\n",
  1746. ".xr-array-preview,\n",
  1747. ".xr-array-data {\n",
  1748. " padding: 0 5px !important;\n",
  1749. " grid-column: 2;\n",
  1750. "}\n",
  1751. "\n",
  1752. ".xr-array-data,\n",
  1753. ".xr-array-in:checked ~ .xr-array-preview {\n",
  1754. " display: none;\n",
  1755. "}\n",
  1756. "\n",
  1757. ".xr-array-in:checked ~ .xr-array-data,\n",
  1758. ".xr-array-preview {\n",
  1759. " display: inline-block;\n",
  1760. "}\n",
  1761. "\n",
  1762. ".xr-dim-list {\n",
  1763. " display: inline-block !important;\n",
  1764. " list-style: none;\n",
  1765. " padding: 0 !important;\n",
  1766. " margin: 0;\n",
  1767. "}\n",
  1768. "\n",
  1769. ".xr-dim-list li {\n",
  1770. " display: inline-block;\n",
  1771. " padding: 0;\n",
  1772. " margin: 0;\n",
  1773. "}\n",
  1774. "\n",
  1775. ".xr-dim-list:before {\n",
  1776. " content: '(';\n",
  1777. "}\n",
  1778. "\n",
  1779. ".xr-dim-list:after {\n",
  1780. " content: ')';\n",
  1781. "}\n",
  1782. "\n",
  1783. ".xr-dim-list li:not(:last-child):after {\n",
  1784. " content: ',';\n",
  1785. " padding-right: 5px;\n",
  1786. "}\n",
  1787. "\n",
  1788. ".xr-has-index {\n",
  1789. " font-weight: bold;\n",
  1790. "}\n",
  1791. "\n",
  1792. ".xr-var-list,\n",
  1793. ".xr-var-item {\n",
  1794. " display: contents;\n",
  1795. "}\n",
  1796. "\n",
  1797. ".xr-var-item > div,\n",
  1798. ".xr-var-item label,\n",
  1799. ".xr-var-item > .xr-var-name span {\n",
  1800. " background-color: var(--xr-background-color-row-even);\n",
  1801. " margin-bottom: 0;\n",
  1802. "}\n",
  1803. "\n",
  1804. ".xr-var-item > .xr-var-name:hover span {\n",
  1805. " padding-right: 5px;\n",
  1806. "}\n",
  1807. "\n",
  1808. ".xr-var-list > li:nth-child(odd) > div,\n",
  1809. ".xr-var-list > li:nth-child(odd) > label,\n",
  1810. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1811. " background-color: var(--xr-background-color-row-odd);\n",
  1812. "}\n",
  1813. "\n",
  1814. ".xr-var-name {\n",
  1815. " grid-column: 1;\n",
  1816. "}\n",
  1817. "\n",
  1818. ".xr-var-dims {\n",
  1819. " grid-column: 2;\n",
  1820. "}\n",
  1821. "\n",
  1822. ".xr-var-dtype {\n",
  1823. " grid-column: 3;\n",
  1824. " text-align: right;\n",
  1825. " color: var(--xr-font-color2);\n",
  1826. "}\n",
  1827. "\n",
  1828. ".xr-var-preview {\n",
  1829. " grid-column: 4;\n",
  1830. "}\n",
  1831. "\n",
  1832. ".xr-index-preview {\n",
  1833. " grid-column: 2 / 5;\n",
  1834. " color: var(--xr-font-color2);\n",
  1835. "}\n",
  1836. "\n",
  1837. ".xr-var-name,\n",
  1838. ".xr-var-dims,\n",
  1839. ".xr-var-dtype,\n",
  1840. ".xr-preview,\n",
  1841. ".xr-attrs dt {\n",
  1842. " white-space: nowrap;\n",
  1843. " overflow: hidden;\n",
  1844. " text-overflow: ellipsis;\n",
  1845. " padding-right: 10px;\n",
  1846. "}\n",
  1847. "\n",
  1848. ".xr-var-name:hover,\n",
  1849. ".xr-var-dims:hover,\n",
  1850. ".xr-var-dtype:hover,\n",
  1851. ".xr-attrs dt:hover {\n",
  1852. " overflow: visible;\n",
  1853. " width: auto;\n",
  1854. " z-index: 1;\n",
  1855. "}\n",
  1856. "\n",
  1857. ".xr-var-attrs,\n",
  1858. ".xr-var-data,\n",
  1859. ".xr-index-data {\n",
  1860. " display: none;\n",
  1861. " background-color: var(--xr-background-color) !important;\n",
  1862. " padding-bottom: 5px !important;\n",
  1863. "}\n",
  1864. "\n",
  1865. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1866. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1867. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1868. " display: block;\n",
  1869. "}\n",
  1870. "\n",
  1871. ".xr-var-data > table {\n",
  1872. " float: right;\n",
  1873. "}\n",
  1874. "\n",
  1875. ".xr-var-name span,\n",
  1876. ".xr-var-data,\n",
  1877. ".xr-index-name div,\n",
  1878. ".xr-index-data,\n",
  1879. ".xr-attrs {\n",
  1880. " padding-left: 25px !important;\n",
  1881. "}\n",
  1882. "\n",
  1883. ".xr-attrs,\n",
  1884. ".xr-var-attrs,\n",
  1885. ".xr-var-data,\n",
  1886. ".xr-index-data {\n",
  1887. " grid-column: 1 / -1;\n",
  1888. "}\n",
  1889. "\n",
  1890. "dl.xr-attrs {\n",
  1891. " padding: 0;\n",
  1892. " margin: 0;\n",
  1893. " display: grid;\n",
  1894. " grid-template-columns: 125px auto;\n",
  1895. "}\n",
  1896. "\n",
  1897. ".xr-attrs dt,\n",
  1898. ".xr-attrs dd {\n",
  1899. " padding: 0;\n",
  1900. " margin: 0;\n",
  1901. " float: left;\n",
  1902. " padding-right: 10px;\n",
  1903. " width: auto;\n",
  1904. "}\n",
  1905. "\n",
  1906. ".xr-attrs dt {\n",
  1907. " font-weight: normal;\n",
  1908. " grid-column: 1;\n",
  1909. "}\n",
  1910. "\n",
  1911. ".xr-attrs dt:hover span {\n",
  1912. " display: inline-block;\n",
  1913. " background: var(--xr-background-color);\n",
  1914. " padding-right: 10px;\n",
  1915. "}\n",
  1916. "\n",
  1917. ".xr-attrs dd {\n",
  1918. " grid-column: 2;\n",
  1919. " white-space: pre-wrap;\n",
  1920. " word-break: break-all;\n",
  1921. "}\n",
  1922. "\n",
  1923. ".xr-icon-database,\n",
  1924. ".xr-icon-file-text2,\n",
  1925. ".xr-no-icon {\n",
  1926. " display: inline-block;\n",
  1927. " vertical-align: middle;\n",
  1928. " width: 1em;\n",
  1929. " height: 1.5em !important;\n",
  1930. " stroke-width: 0;\n",
  1931. " stroke: currentColor;\n",
  1932. " fill: currentColor;\n",
  1933. "}\n",
  1934. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray ()&gt;\n",
  1935. "array(1.2157134383410748+/-0.02622973148346536, dtype=object)\n",
  1936. "Coordinates:\n",
  1937. " final_amp float64 0.88</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'></div></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-5f93dfa3-52ec-495e-92cf-d730bb50a676' class='xr-array-in' type='checkbox' checked><label for='section-5f93dfa3-52ec-495e-92cf-d730bb50a676' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>1.216+/-0.026</span></div><div class='xr-array-data'><pre>array(1.2157134383410748+/-0.02622973148346536, dtype=object)</pre></div></div></li><li class='xr-section-item'><input id='section-fa458166-a05a-4e93-858d-3935c8899d5f' class='xr-section-summary-in' type='checkbox' checked><label for='section-fa458166-a05a-4e93-858d-3935c8899d5f' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>final_amp</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.88</div><input id='attrs-3a363972-1acf-477b-87b0-7dd33ed4bbcb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3a363972-1acf-477b-87b0-7dd33ed4bbcb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f6589cbf-4c1c-40d0-9976-2b9ae8db4d3b' class='xr-var-data-in' type='checkbox'><label for='data-f6589cbf-4c1c-40d0-9976-2b9ae8db4d3b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.88)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-41ec6a75-61b8-47c6-80f4-7d80b3e49d40' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-41ec6a75-61b8-47c6-80f4-7d80b3e49d40' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-c2222dfd-faf3-4012-ae97-78b5ac9ee3da' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c2222dfd-faf3-4012-ae97-78b5ac9ee3da' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
  1938. ],
  1939. "text/plain": [
  1940. "<xarray.DataArray ()>\n",
  1941. "array(1.2157134383410748+/-0.02622973148346536, dtype=object)\n",
  1942. "Coordinates:\n",
  1943. " final_amp float64 0.88"
  1944. ]
  1945. },
  1946. "execution_count": 24,
  1947. "metadata": {},
  1948. "output_type": "execute_result"
  1949. }
  1950. ],
  1951. "source": [
  1952. "res = fitAnalyser.get_fit_full_result(fitResult)\n",
  1953. "res.A / res.tau / 1e8"
  1954. ]
  1955. },
  1956. {
  1957. "attachments": {},
  1958. "cell_type": "markdown",
  1959. "metadata": {},
  1960. "source": [
  1961. "## Without push"
  1962. ]
  1963. },
  1964. {
  1965. "cell_type": "code",
  1966. "execution_count": 25,
  1967. "metadata": {},
  1968. "outputs": [
  1969. {
  1970. "name": "stdout",
  1971. "output_type": "stream",
  1972. "text": [
  1973. "The detected scaning axes and values are: \n",
  1974. "\n",
  1975. "{'mot_load_duration': array([ 0.5, 1. , 1.5, 2. , 2.5, 3. , 3.5, 4. , 4.5, 5. , 5.5,\n",
  1976. " 6. , 6.5, 7. , 8. , 9. , 10. , 11. , 12. , 13. , 14. , 15. ,\n",
  1977. " 16. ]), 'runs': array([0., 1.])}\n"
  1978. ]
  1979. }
  1980. ],
  1981. "source": [
  1982. "folderPath = img_dir + SequenceName + '2022/10/11'# get_date()\n",
  1983. "\n",
  1984. "shotNum = \"0018\"\n",
  1985. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  1986. "\n",
  1987. "dataSetDict = {\n",
  1988. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  1989. " for i in [0]\n",
  1990. "}\n",
  1991. "\n",
  1992. "dataSet = dataSetDict[\"camera_0\"]\n",
  1993. "\n",
  1994. "print_scanAxis(dataSet)\n",
  1995. "\n",
  1996. "scanAxis = get_scanAxis(dataSet)\n",
  1997. "\n",
  1998. "dataSet = auto_rechunk(dataSet)\n",
  1999. "\n",
  2000. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  2001. "\n",
  2002. "imageAnalyser.center = (600, 1125)\n",
  2003. "imageAnalyser.span = (1100, 1200)\n",
  2004. "imageAnalyser.fraction = (0.1, 0.1)\n",
  2005. "\n",
  2006. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  2007. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  2008. "\n",
  2009. "Ncount = imageAnalyser.get_Ncount(dataSet_cropOD)\n",
  2010. "Ncount_mean = calculate_mean(Ncount)\n",
  2011. "Ncount_std = calculate_std(Ncount)"
  2012. ]
  2013. },
  2014. {
  2015. "cell_type": "code",
  2016. "execution_count": 26,
  2017. "metadata": {},
  2018. "outputs": [
  2019. {
  2020. "data": {
  2021. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABbiklEQVR4nO3deXhU5eH28W92sk42CCEJa9hCEJRNFGTTqmhBKi0qmyAuaFHQHyqvBTeUQm0Ba21dUFBQQbQuKAXFIFVRQBQw7GHJAtkImUzIOjPn/QMYSVlMMMmZTO7Pdc0FOc+Zyf0gTm7OmfMcL8MwDERERESkwfM2O4CIiIiI1A4VOxEREREPoWInIiIi4iFU7EREREQ8hIqdiIiIiIdQsRMRERHxECp2IiIiIh5CxU5ERETEQ/iaHaAhcTqdHDlyhNDQULy8vMyOIyIiIo2AYRjYbDZatGiBt/eFj8mp2NXAkSNHSEhIMDuGiIiINEIZGRnEx8dfcB8VuxoIDQ0FTv7BhoWFmZxGREREGoOioiISEhJcPeRCVOxq4PTp17CwMBU7ERERqVfV+RiYLp4QERER8RAqdiIiIiIeQsVORERExEOo2ImIiIh4CBU7EREREQ+hYiciIiLiIVTsRERERDyEip2IiIiIh1CxExEREfEQKnYiIiIiHkLFTkRERMRDqNiJiIiIeAgVOxEREREPoWInIiIi4iFMKXbbtm3jmmuuITIykubNmzNu3Djy8/MB+O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e0LZpyFmfh4sOCTBhZiJ1T8VORETqhN3
  2022. "text/plain": [
  2023. "<Figure size 640x480 with 1 Axes>"
  2024. ]
  2025. },
  2026. "metadata": {},
  2027. "output_type": "display_data"
  2028. }
  2029. ],
  2030. "source": [
  2031. "fig = plt.figure()\n",
  2032. "# ax = fig.gca()\n",
  2033. "Ncount_mean.plot.errorbar()\n",
  2034. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  2035. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  2036. "plt.tight_layout()\n",
  2037. "# plt.grid(visible=1)\n",
  2038. "plt.show()"
  2039. ]
  2040. },
  2041. {
  2042. "cell_type": "code",
  2043. "execution_count": 27,
  2044. "metadata": {},
  2045. "outputs": [
  2046. {
  2047. "data": {
  2048. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABbiklEQVR4nO3deXhU5eH28W92sk42CCEJa9hCEJRNFGTTqmhBKi0qmyAuaFHQHyqvBTeUQm0Ba21dUFBQQbQuKAXFIFVRQBQw7GHJAtkImUzIOjPn/QMYSVlMMMmZTO7Pdc0FOc+Zyf0gTm7OmfMcL8MwDERERESkwfM2O4CIiIiI1A4VOxEREREPoWInIiIi4iFU7EREREQ8hIqdiIiIiIdQsRMRERHxECp2IiIiIh5CxU5ERETEQ/iaHaAhcTqdHDlyhNDQULy8vMyOIyIiIo2AYRjYbDZatGiBt/eFj8mp2NXAkSNHSEhIMDuGiIiINEIZGRnEx8dfcB8VuxoIDQ0FTv7BhoWFmZxGREREGoOioiISEhJcPeRCVOxq4PTp17CwMBU7ERERqVfV+RiYLp4QERER8RAqdiIiIiIeQsVORERExEOo2ImIiIh4CBU7EREREQ+hYiciIiLiIVTsRERERDyEip2IiIiIh1C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WFGshqUUYrSKD8PbWqVRp2FTsRETErZRVOigsqeR4SQXHSyqwllRy/NTX1tJKjp+o4HhJJYUlFRSWnvq1pBK78+zDcN5e0LZpyFmfh4sOCTBhZiJ1T8VORETqhN3
  2049. "text/plain": [
  2050. "<Figure size 640x480 with 1 Axes>"
  2051. ]
  2052. },
  2053. "metadata": {},
  2054. "output_type": "display_data"
  2055. }
  2056. ],
  2057. "source": [
  2058. "data = Ncount_mean\n",
  2059. "data_std = Ncount_std\n",
  2060. "fig = plt.figure()\n",
  2061. "# ax = fig.gca()\n",
  2062. "data.plot.errorbar()\n",
  2063. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  2064. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  2065. "plt.tight_layout()\n",
  2066. "# plt.grid(visible=1)\n",
  2067. "plt.show()"
  2068. ]
  2069. },
  2070. {
  2071. "cell_type": "code",
  2072. "execution_count": 28,
  2073. "metadata": {},
  2074. "outputs": [],
  2075. "source": [
  2076. "data = data * factor_from_Ncounts_to_Natom()\n",
  2077. "data_std = data_std * factor_from_Ncounts_to_Natom()"
  2078. ]
  2079. },
  2080. {
  2081. "cell_type": "code",
  2082. "execution_count": 29,
  2083. "metadata": {},
  2084. "outputs": [
  2085. {
  2086. "data": {
  2087. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABZC0lEQVR4nO3deVxU9f7H8dewiLKJiikIbrkkri1mlrjlvmVoWlpqeb1p3RKt7s26XjVbbt5SKTOtm9Y1zRLRW6alpahZZpvlkjc1FcQVFdkUh+H8/pgfkwgoKDMHZt7Px4MHzHe+c87nAwbvvmfOORbDMAxEREREpMLzMrsAERERESkbCnYiIiIibkLBTkRERMRNKNiJiIiIuAkFOxERER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SgoiCZNmjB37lzXFSgiIiJSgZh2uZMtW7YwcuRI9u/fX+yclStXMmnSJNasWUO7du3YunUrffr0oVatWgwaNMiF1YqIiIiUf6as2L333nsMGzaMF1544bLzjhw5wtNPP81tt92GxWKhffv2dOnShU2bNrmoUhEREZGKw5QVu549ezJ8+HB8fHy49957i533yCOPFHh84sQJNm3axMyZM4t9TU5ODjk5OY7H6enpgP0iglar9RorL1r+dp21/fJO/av/iz97GvWv/i/+7GnUv2v6L832LYZhGE6s5coFWCxs2LCBzp07X3besWPH6Nu3L6GhoXz66af4+BSdSadOncq0adMKjS9ZsgR/f/+yKFlERETEZbKzsxk2bBhnz5694l20KkSw27p1K/fccw/R0dEsXLgQPz+/YucWtWIXGRlJamqqU28ptm7dOrp37+6xt1RR/+pf/at/9a/+PY2r+k9PTyc0NLREwa7c3yt2wYIFPPbYYzz33HM88cQTV5zv5+dXZPDz9fV1+j86V+yjPFP/6l/9q39Ppf7VvzP7L822y3WwW758OePGjePjjz+mZ8+eZpcjIiIiUq6VuwsUBwYGsnjxYgCmTZtGbm4ugwYNIjAw0PExduxYk6sUERERKX9MX7G79C1+mZmZjq9/+eUXV5cjIiIiUmGVuxU7ERERubKsLLBY7B9ZWWZXI+WFgp2IiIiIm1CwExEREXETCnYiIiIibkLBTkRERMRNKNiJiIiIuAnTL3ciIiIiFU9WFgQG+gJ3ceaMlZAQsytyrfLav1bsREREpNRstj++/uorS4HHYh4FOxERESmVhASIivrjcf/+PtSvbx8XcynYiYiISIklJMDgwZCSUnA8JcU+rnBnLgU7ERERKRGbDcaPh0vuBgr8MRYbiw7LmkjBTkREREpk82Y4fLj45w0DkpPt88QcCnYiIiIV0MWrYps2uWaV7OjRsp13LXSv3KIp2ImIiFQwl5680KcPLjl5ISysbOddCzOCbXH7L09nBSvYiYiIVCBmnrwQHQ0REfZVsqJYLBAZaZ/nTGYF2+L2X57OClawExERqSDMPnnB2xvi4uxfXxru8h/Pnm2f5yxmn5Vr9v6vRMFORESkgigPJy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2ryNhTwIf/+9jTp877Xhu/cH1jmAXUjmExFGJJlUpIqWlYCci4mFseTYaxjXkaOYfN3QN9Q9lYNOBDIoaRNcGXU2sTkSuhYKdiIgby7qQxarfVrE5aTNz+swBwNvLmw51O/B18tfENIthULNB3FH3Dny89CdBpKLTf8UiIm4mJzeHz/d/zgc7P+Dj/31MtjUbgEfbPkqzms0AeKv/WwT7BeNl0S3DRdyJgp2IyFXKyoLAQF/gLs6csRISYm49Px/7mbhv40j4NYGzOWcd4w2rNeTe5vcS7BfsGAupHGJChSLibAp2IiIVVJ6Rx/nc8/j7+gOQnJ7Mwu0LAQgPCmd
  2088. "text/plain": [
  2089. "<Figure size 640x480 with 1 Axes>"
  2090. ]
  2091. },
  2092. "metadata": {},
  2093. "output_type": "display_data"
  2094. }
  2095. ],
  2096. "source": [
  2097. "fitModel = NewFitModel(mot_loading)\n",
  2098. "fitAnalyser = FitAnalyser(fitModel, fitDim=1)\n",
  2099. "\n",
  2100. "params = fitAnalyser.fitModel.make_params()\n",
  2101. "params.add(name=\"A\", value=1e8, max=np.inf, min=-np.inf, vary=True)\n",
  2102. "params.add(name=\"tau\", value=1, max=np.inf, min=-np.inf, vary=True)\n",
  2103. "\n",
  2104. "fitResult = fitAnalyser.fit(data, params, x='mot_load_duration').load()\n",
  2105. "freqdata = np.linspace(0, 10, 500)\n",
  2106. "fitCurve = fitAnalyser.eval(fitResult, x=freqdata, dask=\"parallelized\").load()\n",
  2107. "fitCurve = fitCurve.assign_coords({'x':np.array(freqdata)})\n",
  2108. "\n",
  2109. "fig = plt.figure()\n",
  2110. "ax = fig.gca()\n",
  2111. "\n",
  2112. "data.plot.errorbar(ax=ax, yerr = data_std, fmt='ob')\n",
  2113. "fitCurve.plot.errorbar(ax=ax, fmt='--g')\n",
  2114. "plt.xlabel('Push AOM Freq (MHz)')\n",
  2115. "plt.ylabel('NCount')\n",
  2116. "plt.tight_layout()\n",
  2117. "plt.grid(visible=1)\n",
  2118. "plt.show()"
  2119. ]
  2120. },
  2121. {
  2122. "cell_type": "code",
  2123. "execution_count": 30,
  2124. "metadata": {},
  2125. "outputs": [
  2126. {
  2127. "data": {
  2128. "text/html": [
  2129. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2130. "<defs>\n",
  2131. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2132. "<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",
  2133. "<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",
  2134. "<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",
  2135. "</symbol>\n",
  2136. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2137. "<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",
  2138. "<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",
  2139. "<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",
  2140. "<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",
  2141. "</symbol>\n",
  2142. "</defs>\n",
  2143. "</svg>\n",
  2144. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2145. " *\n",
  2146. " */\n",
  2147. "\n",
  2148. ":root {\n",
  2149. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2150. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2151. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2152. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2153. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2154. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2155. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2156. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2157. "}\n",
  2158. "\n",
  2159. "html[theme=dark],\n",
  2160. "body[data-theme=dark],\n",
  2161. "body.vscode-dark {\n",
  2162. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2163. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2164. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2165. " --xr-border-color: #1F1F1F;\n",
  2166. " --xr-disabled-color: #515151;\n",
  2167. " --xr-background-color: #111111;\n",
  2168. " --xr-background-color-row-even: #111111;\n",
  2169. " --xr-background-color-row-odd: #313131;\n",
  2170. "}\n",
  2171. "\n",
  2172. ".xr-wrap {\n",
  2173. " display: block !important;\n",
  2174. " min-width: 300px;\n",
  2175. " max-width: 700px;\n",
  2176. "}\n",
  2177. "\n",
  2178. ".xr-text-repr-fallback {\n",
  2179. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2180. " display: none;\n",
  2181. "}\n",
  2182. "\n",
  2183. ".xr-header {\n",
  2184. " padding-top: 6px;\n",
  2185. " padding-bottom: 6px;\n",
  2186. " margin-bottom: 4px;\n",
  2187. " border-bottom: solid 1px var(--xr-border-color);\n",
  2188. "}\n",
  2189. "\n",
  2190. ".xr-header > div,\n",
  2191. ".xr-header > ul {\n",
  2192. " display: inline;\n",
  2193. " margin-top: 0;\n",
  2194. " margin-bottom: 0;\n",
  2195. "}\n",
  2196. "\n",
  2197. ".xr-obj-type,\n",
  2198. ".xr-array-name {\n",
  2199. " margin-left: 2px;\n",
  2200. " margin-right: 10px;\n",
  2201. "}\n",
  2202. "\n",
  2203. ".xr-obj-type {\n",
  2204. " color: var(--xr-font-color2);\n",
  2205. "}\n",
  2206. "\n",
  2207. ".xr-sections {\n",
  2208. " padding-left: 0 !important;\n",
  2209. " display: grid;\n",
  2210. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  2211. "}\n",
  2212. "\n",
  2213. ".xr-section-item {\n",
  2214. " display: contents;\n",
  2215. "}\n",
  2216. "\n",
  2217. ".xr-section-item input {\n",
  2218. " display: none;\n",
  2219. "}\n",
  2220. "\n",
  2221. ".xr-section-item input + label {\n",
  2222. " color: var(--xr-disabled-color);\n",
  2223. "}\n",
  2224. "\n",
  2225. ".xr-section-item input:enabled + label {\n",
  2226. " cursor: pointer;\n",
  2227. " color: var(--xr-font-color2);\n",
  2228. "}\n",
  2229. "\n",
  2230. ".xr-section-item input:enabled + label:hover {\n",
  2231. " color: var(--xr-font-color0);\n",
  2232. "}\n",
  2233. "\n",
  2234. ".xr-section-summary {\n",
  2235. " grid-column: 1;\n",
  2236. " color: var(--xr-font-color2);\n",
  2237. " font-weight: 500;\n",
  2238. "}\n",
  2239. "\n",
  2240. ".xr-section-summary > span {\n",
  2241. " display: inline-block;\n",
  2242. " padding-left: 0.5em;\n",
  2243. "}\n",
  2244. "\n",
  2245. ".xr-section-summary-in:disabled + label {\n",
  2246. " color: var(--xr-font-color2);\n",
  2247. "}\n",
  2248. "\n",
  2249. ".xr-section-summary-in + label:before {\n",
  2250. " display: inline-block;\n",
  2251. " content: 'â–º';\n",
  2252. " font-size: 11px;\n",
  2253. " width: 15px;\n",
  2254. " text-align: center;\n",
  2255. "}\n",
  2256. "\n",
  2257. ".xr-section-summary-in:disabled + label:before {\n",
  2258. " color: var(--xr-disabled-color);\n",
  2259. "}\n",
  2260. "\n",
  2261. ".xr-section-summary-in:checked + label:before {\n",
  2262. " content: 'â–¼';\n",
  2263. "}\n",
  2264. "\n",
  2265. ".xr-section-summary-in:checked + label > span {\n",
  2266. " display: none;\n",
  2267. "}\n",
  2268. "\n",
  2269. ".xr-section-summary,\n",
  2270. ".xr-section-inline-details {\n",
  2271. " padding-top: 4px;\n",
  2272. " padding-bottom: 4px;\n",
  2273. "}\n",
  2274. "\n",
  2275. ".xr-section-inline-details {\n",
  2276. " grid-column: 2 / -1;\n",
  2277. "}\n",
  2278. "\n",
  2279. ".xr-section-details {\n",
  2280. " display: none;\n",
  2281. " grid-column: 1 / -1;\n",
  2282. " margin-bottom: 5px;\n",
  2283. "}\n",
  2284. "\n",
  2285. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  2286. " display: contents;\n",
  2287. "}\n",
  2288. "\n",
  2289. ".xr-array-wrap {\n",
  2290. " grid-column: 1 / -1;\n",
  2291. " display: grid;\n",
  2292. " grid-template-columns: 20px auto;\n",
  2293. "}\n",
  2294. "\n",
  2295. ".xr-array-wrap > label {\n",
  2296. " grid-column: 1;\n",
  2297. " vertical-align: top;\n",
  2298. "}\n",
  2299. "\n",
  2300. ".xr-preview {\n",
  2301. " color: var(--xr-font-color3);\n",
  2302. "}\n",
  2303. "\n",
  2304. ".xr-array-preview,\n",
  2305. ".xr-array-data {\n",
  2306. " padding: 0 5px !important;\n",
  2307. " grid-column: 2;\n",
  2308. "}\n",
  2309. "\n",
  2310. ".xr-array-data,\n",
  2311. ".xr-array-in:checked ~ .xr-array-preview {\n",
  2312. " display: none;\n",
  2313. "}\n",
  2314. "\n",
  2315. ".xr-array-in:checked ~ .xr-array-data,\n",
  2316. ".xr-array-preview {\n",
  2317. " display: inline-block;\n",
  2318. "}\n",
  2319. "\n",
  2320. ".xr-dim-list {\n",
  2321. " display: inline-block !important;\n",
  2322. " list-style: none;\n",
  2323. " padding: 0 !important;\n",
  2324. " margin: 0;\n",
  2325. "}\n",
  2326. "\n",
  2327. ".xr-dim-list li {\n",
  2328. " display: inline-block;\n",
  2329. " padding: 0;\n",
  2330. " margin: 0;\n",
  2331. "}\n",
  2332. "\n",
  2333. ".xr-dim-list:before {\n",
  2334. " content: '(';\n",
  2335. "}\n",
  2336. "\n",
  2337. ".xr-dim-list:after {\n",
  2338. " content: ')';\n",
  2339. "}\n",
  2340. "\n",
  2341. ".xr-dim-list li:not(:last-child):after {\n",
  2342. " content: ',';\n",
  2343. " padding-right: 5px;\n",
  2344. "}\n",
  2345. "\n",
  2346. ".xr-has-index {\n",
  2347. " font-weight: bold;\n",
  2348. "}\n",
  2349. "\n",
  2350. ".xr-var-list,\n",
  2351. ".xr-var-item {\n",
  2352. " display: contents;\n",
  2353. "}\n",
  2354. "\n",
  2355. ".xr-var-item > div,\n",
  2356. ".xr-var-item label,\n",
  2357. ".xr-var-item > .xr-var-name span {\n",
  2358. " background-color: var(--xr-background-color-row-even);\n",
  2359. " margin-bottom: 0;\n",
  2360. "}\n",
  2361. "\n",
  2362. ".xr-var-item > .xr-var-name:hover span {\n",
  2363. " padding-right: 5px;\n",
  2364. "}\n",
  2365. "\n",
  2366. ".xr-var-list > li:nth-child(odd) > div,\n",
  2367. ".xr-var-list > li:nth-child(odd) > label,\n",
  2368. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  2369. " background-color: var(--xr-background-color-row-odd);\n",
  2370. "}\n",
  2371. "\n",
  2372. ".xr-var-name {\n",
  2373. " grid-column: 1;\n",
  2374. "}\n",
  2375. "\n",
  2376. ".xr-var-dims {\n",
  2377. " grid-column: 2;\n",
  2378. "}\n",
  2379. "\n",
  2380. ".xr-var-dtype {\n",
  2381. " grid-column: 3;\n",
  2382. " text-align: right;\n",
  2383. " color: var(--xr-font-color2);\n",
  2384. "}\n",
  2385. "\n",
  2386. ".xr-var-preview {\n",
  2387. " grid-column: 4;\n",
  2388. "}\n",
  2389. "\n",
  2390. ".xr-index-preview {\n",
  2391. " grid-column: 2 / 5;\n",
  2392. " color: var(--xr-font-color2);\n",
  2393. "}\n",
  2394. "\n",
  2395. ".xr-var-name,\n",
  2396. ".xr-var-dims,\n",
  2397. ".xr-var-dtype,\n",
  2398. ".xr-preview,\n",
  2399. ".xr-attrs dt {\n",
  2400. " white-space: nowrap;\n",
  2401. " overflow: hidden;\n",
  2402. " text-overflow: ellipsis;\n",
  2403. " padding-right: 10px;\n",
  2404. "}\n",
  2405. "\n",
  2406. ".xr-var-name:hover,\n",
  2407. ".xr-var-dims:hover,\n",
  2408. ".xr-var-dtype:hover,\n",
  2409. ".xr-attrs dt:hover {\n",
  2410. " overflow: visible;\n",
  2411. " width: auto;\n",
  2412. " z-index: 1;\n",
  2413. "}\n",
  2414. "\n",
  2415. ".xr-var-attrs,\n",
  2416. ".xr-var-data,\n",
  2417. ".xr-index-data {\n",
  2418. " display: none;\n",
  2419. " background-color: var(--xr-background-color) !important;\n",
  2420. " padding-bottom: 5px !important;\n",
  2421. "}\n",
  2422. "\n",
  2423. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  2424. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  2425. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  2426. " display: block;\n",
  2427. "}\n",
  2428. "\n",
  2429. ".xr-var-data > table {\n",
  2430. " float: right;\n",
  2431. "}\n",
  2432. "\n",
  2433. ".xr-var-name span,\n",
  2434. ".xr-var-data,\n",
  2435. ".xr-index-name div,\n",
  2436. ".xr-index-data,\n",
  2437. ".xr-attrs {\n",
  2438. " padding-left: 25px !important;\n",
  2439. "}\n",
  2440. "\n",
  2441. ".xr-attrs,\n",
  2442. ".xr-var-attrs,\n",
  2443. ".xr-var-data,\n",
  2444. ".xr-index-data {\n",
  2445. " grid-column: 1 / -1;\n",
  2446. "}\n",
  2447. "\n",
  2448. "dl.xr-attrs {\n",
  2449. " padding: 0;\n",
  2450. " margin: 0;\n",
  2451. " display: grid;\n",
  2452. " grid-template-columns: 125px auto;\n",
  2453. "}\n",
  2454. "\n",
  2455. ".xr-attrs dt,\n",
  2456. ".xr-attrs dd {\n",
  2457. " padding: 0;\n",
  2458. " margin: 0;\n",
  2459. " float: left;\n",
  2460. " padding-right: 10px;\n",
  2461. " width: auto;\n",
  2462. "}\n",
  2463. "\n",
  2464. ".xr-attrs dt {\n",
  2465. " font-weight: normal;\n",
  2466. " grid-column: 1;\n",
  2467. "}\n",
  2468. "\n",
  2469. ".xr-attrs dt:hover span {\n",
  2470. " display: inline-block;\n",
  2471. " background: var(--xr-background-color);\n",
  2472. " padding-right: 10px;\n",
  2473. "}\n",
  2474. "\n",
  2475. ".xr-attrs dd {\n",
  2476. " grid-column: 2;\n",
  2477. " white-space: pre-wrap;\n",
  2478. " word-break: break-all;\n",
  2479. "}\n",
  2480. "\n",
  2481. ".xr-icon-database,\n",
  2482. ".xr-icon-file-text2,\n",
  2483. ".xr-no-icon {\n",
  2484. " display: inline-block;\n",
  2485. " vertical-align: middle;\n",
  2486. " width: 1em;\n",
  2487. " height: 1.5em !important;\n",
  2488. " stroke-width: 0;\n",
  2489. " stroke: currentColor;\n",
  2490. " fill: currentColor;\n",
  2491. "}\n",
  2492. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  2493. "Dimensions: ()\n",
  2494. "Data variables:\n",
  2495. " A float64 1.193e+08\n",
  2496. " tau float64 4.666</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-3e8b8706-d701-41ad-8200-e1caf324ff4f' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-3e8b8706-d701-41ad-8200-e1caf324ff4f' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-48c4bb83-68b0-49be-94ac-b96b366e2a21' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-48c4bb83-68b0-49be-94ac-b96b366e2a21' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-c2d074f7-2a4c-4728-8200-18cb7daecd27' class='xr-section-summary-in' type='checkbox' checked><label for='section-c2d074f7-2a4c-4728-8200-18cb7daecd27' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.193e+08</div><input id='attrs-d11e30e4-f834-4f05-9d5f-d03a106fad86' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d11e30e4-f834-4f05-9d5f-d03a106fad86' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bdb6f408-a6e6-4edb-8486-2c3ccaaed511' class='xr-var-data-in' type='checkbox'><label for='data-bdb6f408-a6e6-4edb-8486-2c3ccaaed511' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(1.19289449e+08)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>4.666</div><input id='attrs-8730b129-dbfe-44dc-87d2-e8279113e974' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8730b129-dbfe-44dc-87d2-e8279113e974' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6e38aadd-38e6-4f9d-a670-31f988ae90aa' class='xr-var-data-in' type='checkbox'><label for='data-6e38aadd-38e6-4f9d-a670-31f988ae90aa' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(4.66646868)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0e6a306c-69c4-4e2d-a06e-f91190fd01d3' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0e6a306c-69c4-4e2d-a06e-f91190fd01d3' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-7c126d51-7bce-44d7-a8e5-f8285ece4e46' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7c126d51-7bce-44d7-a8e5-f8285ece4e46' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
  2497. ],
  2498. "text/plain": [
  2499. "<xarray.Dataset>\n",
  2500. "Dimensions: ()\n",
  2501. "Data variables:\n",
  2502. " A float64 1.193e+08\n",
  2503. " tau float64 4.666"
  2504. ]
  2505. },
  2506. "execution_count": 30,
  2507. "metadata": {},
  2508. "output_type": "execute_result"
  2509. }
  2510. ],
  2511. "source": [
  2512. "val = fitAnalyser.get_fit_value(fitResult)\n",
  2513. "val"
  2514. ]
  2515. },
  2516. {
  2517. "cell_type": "code",
  2518. "execution_count": 31,
  2519. "metadata": {},
  2520. "outputs": [
  2521. {
  2522. "data": {
  2523. "text/html": [
  2524. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2525. "<defs>\n",
  2526. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2527. "<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",
  2528. "<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",
  2529. "<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",
  2530. "</symbol>\n",
  2531. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2532. "<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",
  2533. "<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",
  2534. "<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",
  2535. "<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",
  2536. "</symbol>\n",
  2537. "</defs>\n",
  2538. "</svg>\n",
  2539. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2540. " *\n",
  2541. " */\n",
  2542. "\n",
  2543. ":root {\n",
  2544. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2545. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2546. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2547. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2548. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2549. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2550. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2551. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2552. "}\n",
  2553. "\n",
  2554. "html[theme=dark],\n",
  2555. "body[data-theme=dark],\n",
  2556. "body.vscode-dark {\n",
  2557. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2558. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2559. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2560. " --xr-border-color: #1F1F1F;\n",
  2561. " --xr-disabled-color: #515151;\n",
  2562. " --xr-background-color: #111111;\n",
  2563. " --xr-background-color-row-even: #111111;\n",
  2564. " --xr-background-color-row-odd: #313131;\n",
  2565. "}\n",
  2566. "\n",
  2567. ".xr-wrap {\n",
  2568. " display: block !important;\n",
  2569. " min-width: 300px;\n",
  2570. " max-width: 700px;\n",
  2571. "}\n",
  2572. "\n",
  2573. ".xr-text-repr-fallback {\n",
  2574. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2575. " display: none;\n",
  2576. "}\n",
  2577. "\n",
  2578. ".xr-header {\n",
  2579. " padding-top: 6px;\n",
  2580. " padding-bottom: 6px;\n",
  2581. " margin-bottom: 4px;\n",
  2582. " border-bottom: solid 1px var(--xr-border-color);\n",
  2583. "}\n",
  2584. "\n",
  2585. ".xr-header > div,\n",
  2586. ".xr-header > ul {\n",
  2587. " display: inline;\n",
  2588. " margin-top: 0;\n",
  2589. " margin-bottom: 0;\n",
  2590. "}\n",
  2591. "\n",
  2592. ".xr-obj-type,\n",
  2593. ".xr-array-name {\n",
  2594. " margin-left: 2px;\n",
  2595. " margin-right: 10px;\n",
  2596. "}\n",
  2597. "\n",
  2598. ".xr-obj-type {\n",
  2599. " color: var(--xr-font-color2);\n",
  2600. "}\n",
  2601. "\n",
  2602. ".xr-sections {\n",
  2603. " padding-left: 0 !important;\n",
  2604. " display: grid;\n",
  2605. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  2606. "}\n",
  2607. "\n",
  2608. ".xr-section-item {\n",
  2609. " display: contents;\n",
  2610. "}\n",
  2611. "\n",
  2612. ".xr-section-item input {\n",
  2613. " display: none;\n",
  2614. "}\n",
  2615. "\n",
  2616. ".xr-section-item input + label {\n",
  2617. " color: var(--xr-disabled-color);\n",
  2618. "}\n",
  2619. "\n",
  2620. ".xr-section-item input:enabled + label {\n",
  2621. " cursor: pointer;\n",
  2622. " color: var(--xr-font-color2);\n",
  2623. "}\n",
  2624. "\n",
  2625. ".xr-section-item input:enabled + label:hover {\n",
  2626. " color: var(--xr-font-color0);\n",
  2627. "}\n",
  2628. "\n",
  2629. ".xr-section-summary {\n",
  2630. " grid-column: 1;\n",
  2631. " color: var(--xr-font-color2);\n",
  2632. " font-weight: 500;\n",
  2633. "}\n",
  2634. "\n",
  2635. ".xr-section-summary > span {\n",
  2636. " display: inline-block;\n",
  2637. " padding-left: 0.5em;\n",
  2638. "}\n",
  2639. "\n",
  2640. ".xr-section-summary-in:disabled + label {\n",
  2641. " color: var(--xr-font-color2);\n",
  2642. "}\n",
  2643. "\n",
  2644. ".xr-section-summary-in + label:before {\n",
  2645. " display: inline-block;\n",
  2646. " content: 'â–º';\n",
  2647. " font-size: 11px;\n",
  2648. " width: 15px;\n",
  2649. " text-align: center;\n",
  2650. "}\n",
  2651. "\n",
  2652. ".xr-section-summary-in:disabled + label:before {\n",
  2653. " color: var(--xr-disabled-color);\n",
  2654. "}\n",
  2655. "\n",
  2656. ".xr-section-summary-in:checked + label:before {\n",
  2657. " content: 'â–¼';\n",
  2658. "}\n",
  2659. "\n",
  2660. ".xr-section-summary-in:checked + label > span {\n",
  2661. " display: none;\n",
  2662. "}\n",
  2663. "\n",
  2664. ".xr-section-summary,\n",
  2665. ".xr-section-inline-details {\n",
  2666. " padding-top: 4px;\n",
  2667. " padding-bottom: 4px;\n",
  2668. "}\n",
  2669. "\n",
  2670. ".xr-section-inline-details {\n",
  2671. " grid-column: 2 / -1;\n",
  2672. "}\n",
  2673. "\n",
  2674. ".xr-section-details {\n",
  2675. " display: none;\n",
  2676. " grid-column: 1 / -1;\n",
  2677. " margin-bottom: 5px;\n",
  2678. "}\n",
  2679. "\n",
  2680. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  2681. " display: contents;\n",
  2682. "}\n",
  2683. "\n",
  2684. ".xr-array-wrap {\n",
  2685. " grid-column: 1 / -1;\n",
  2686. " display: grid;\n",
  2687. " grid-template-columns: 20px auto;\n",
  2688. "}\n",
  2689. "\n",
  2690. ".xr-array-wrap > label {\n",
  2691. " grid-column: 1;\n",
  2692. " vertical-align: top;\n",
  2693. "}\n",
  2694. "\n",
  2695. ".xr-preview {\n",
  2696. " color: var(--xr-font-color3);\n",
  2697. "}\n",
  2698. "\n",
  2699. ".xr-array-preview,\n",
  2700. ".xr-array-data {\n",
  2701. " padding: 0 5px !important;\n",
  2702. " grid-column: 2;\n",
  2703. "}\n",
  2704. "\n",
  2705. ".xr-array-data,\n",
  2706. ".xr-array-in:checked ~ .xr-array-preview {\n",
  2707. " display: none;\n",
  2708. "}\n",
  2709. "\n",
  2710. ".xr-array-in:checked ~ .xr-array-data,\n",
  2711. ".xr-array-preview {\n",
  2712. " display: inline-block;\n",
  2713. "}\n",
  2714. "\n",
  2715. ".xr-dim-list {\n",
  2716. " display: inline-block !important;\n",
  2717. " list-style: none;\n",
  2718. " padding: 0 !important;\n",
  2719. " margin: 0;\n",
  2720. "}\n",
  2721. "\n",
  2722. ".xr-dim-list li {\n",
  2723. " display: inline-block;\n",
  2724. " padding: 0;\n",
  2725. " margin: 0;\n",
  2726. "}\n",
  2727. "\n",
  2728. ".xr-dim-list:before {\n",
  2729. " content: '(';\n",
  2730. "}\n",
  2731. "\n",
  2732. ".xr-dim-list:after {\n",
  2733. " content: ')';\n",
  2734. "}\n",
  2735. "\n",
  2736. ".xr-dim-list li:not(:last-child):after {\n",
  2737. " content: ',';\n",
  2738. " padding-right: 5px;\n",
  2739. "}\n",
  2740. "\n",
  2741. ".xr-has-index {\n",
  2742. " font-weight: bold;\n",
  2743. "}\n",
  2744. "\n",
  2745. ".xr-var-list,\n",
  2746. ".xr-var-item {\n",
  2747. " display: contents;\n",
  2748. "}\n",
  2749. "\n",
  2750. ".xr-var-item > div,\n",
  2751. ".xr-var-item label,\n",
  2752. ".xr-var-item > .xr-var-name span {\n",
  2753. " background-color: var(--xr-background-color-row-even);\n",
  2754. " margin-bottom: 0;\n",
  2755. "}\n",
  2756. "\n",
  2757. ".xr-var-item > .xr-var-name:hover span {\n",
  2758. " padding-right: 5px;\n",
  2759. "}\n",
  2760. "\n",
  2761. ".xr-var-list > li:nth-child(odd) > div,\n",
  2762. ".xr-var-list > li:nth-child(odd) > label,\n",
  2763. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  2764. " background-color: var(--xr-background-color-row-odd);\n",
  2765. "}\n",
  2766. "\n",
  2767. ".xr-var-name {\n",
  2768. " grid-column: 1;\n",
  2769. "}\n",
  2770. "\n",
  2771. ".xr-var-dims {\n",
  2772. " grid-column: 2;\n",
  2773. "}\n",
  2774. "\n",
  2775. ".xr-var-dtype {\n",
  2776. " grid-column: 3;\n",
  2777. " text-align: right;\n",
  2778. " color: var(--xr-font-color2);\n",
  2779. "}\n",
  2780. "\n",
  2781. ".xr-var-preview {\n",
  2782. " grid-column: 4;\n",
  2783. "}\n",
  2784. "\n",
  2785. ".xr-index-preview {\n",
  2786. " grid-column: 2 / 5;\n",
  2787. " color: var(--xr-font-color2);\n",
  2788. "}\n",
  2789. "\n",
  2790. ".xr-var-name,\n",
  2791. ".xr-var-dims,\n",
  2792. ".xr-var-dtype,\n",
  2793. ".xr-preview,\n",
  2794. ".xr-attrs dt {\n",
  2795. " white-space: nowrap;\n",
  2796. " overflow: hidden;\n",
  2797. " text-overflow: ellipsis;\n",
  2798. " padding-right: 10px;\n",
  2799. "}\n",
  2800. "\n",
  2801. ".xr-var-name:hover,\n",
  2802. ".xr-var-dims:hover,\n",
  2803. ".xr-var-dtype:hover,\n",
  2804. ".xr-attrs dt:hover {\n",
  2805. " overflow: visible;\n",
  2806. " width: auto;\n",
  2807. " z-index: 1;\n",
  2808. "}\n",
  2809. "\n",
  2810. ".xr-var-attrs,\n",
  2811. ".xr-var-data,\n",
  2812. ".xr-index-data {\n",
  2813. " display: none;\n",
  2814. " background-color: var(--xr-background-color) !important;\n",
  2815. " padding-bottom: 5px !important;\n",
  2816. "}\n",
  2817. "\n",
  2818. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  2819. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  2820. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  2821. " display: block;\n",
  2822. "}\n",
  2823. "\n",
  2824. ".xr-var-data > table {\n",
  2825. " float: right;\n",
  2826. "}\n",
  2827. "\n",
  2828. ".xr-var-name span,\n",
  2829. ".xr-var-data,\n",
  2830. ".xr-index-name div,\n",
  2831. ".xr-index-data,\n",
  2832. ".xr-attrs {\n",
  2833. " padding-left: 25px !important;\n",
  2834. "}\n",
  2835. "\n",
  2836. ".xr-attrs,\n",
  2837. ".xr-var-attrs,\n",
  2838. ".xr-var-data,\n",
  2839. ".xr-index-data {\n",
  2840. " grid-column: 1 / -1;\n",
  2841. "}\n",
  2842. "\n",
  2843. "dl.xr-attrs {\n",
  2844. " padding: 0;\n",
  2845. " margin: 0;\n",
  2846. " display: grid;\n",
  2847. " grid-template-columns: 125px auto;\n",
  2848. "}\n",
  2849. "\n",
  2850. ".xr-attrs dt,\n",
  2851. ".xr-attrs dd {\n",
  2852. " padding: 0;\n",
  2853. " margin: 0;\n",
  2854. " float: left;\n",
  2855. " padding-right: 10px;\n",
  2856. " width: auto;\n",
  2857. "}\n",
  2858. "\n",
  2859. ".xr-attrs dt {\n",
  2860. " font-weight: normal;\n",
  2861. " grid-column: 1;\n",
  2862. "}\n",
  2863. "\n",
  2864. ".xr-attrs dt:hover span {\n",
  2865. " display: inline-block;\n",
  2866. " background: var(--xr-background-color);\n",
  2867. " padding-right: 10px;\n",
  2868. "}\n",
  2869. "\n",
  2870. ".xr-attrs dd {\n",
  2871. " grid-column: 2;\n",
  2872. " white-space: pre-wrap;\n",
  2873. " word-break: break-all;\n",
  2874. "}\n",
  2875. "\n",
  2876. ".xr-icon-database,\n",
  2877. ".xr-icon-file-text2,\n",
  2878. ".xr-no-icon {\n",
  2879. " display: inline-block;\n",
  2880. " vertical-align: middle;\n",
  2881. " width: 1em;\n",
  2882. " height: 1.5em !important;\n",
  2883. " stroke-width: 0;\n",
  2884. " stroke: currentColor;\n",
  2885. " fill: currentColor;\n",
  2886. "}\n",
  2887. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  2888. "Dimensions: ()\n",
  2889. "Data variables:\n",
  2890. " A float64 1.591e+06\n",
  2891. " tau float64 0.1586</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-38c68664-9f21-47e9-ae7b-e2791ad41bc4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-38c68664-9f21-47e9-ae7b-e2791ad41bc4' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-15885cae-358f-44e6-b2c7-152bbe3484eb' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-15885cae-358f-44e6-b2c7-152bbe3484eb' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-8e6f4849-f4ef-4966-8549-1e26327a3a91' class='xr-section-summary-in' type='checkbox' checked><label for='section-8e6f4849-f4ef-4966-8549-1e26327a3a91' class='xr-section-summary' >Data variables: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>A</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.591e+06</div><input id='attrs-f987e1c1-8bbd-4837-aea6-81f1f3631bb5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f987e1c1-8bbd-4837-aea6-81f1f3631bb5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2cea5ed4-cd11-4731-92f1-a9f83e88f20a' class='xr-var-data-in' type='checkbox'><label for='data-2cea5ed4-cd11-4731-92f1-a9f83e88f20a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(1591103.66003124)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tau</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.1586</div><input id='attrs-e050af12-da09-4017-b33d-295dda743e20' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e050af12-da09-4017-b33d-295dda743e20' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-413af6b2-77de-4114-ab8c-180f8e3f6dad' class='xr-var-data-in' type='checkbox'><label for='data-413af6b2-77de-4114-ab8c-180f8e3f6dad' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(0.15857749)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-636e37ff-da1b-49df-af26-ab46778e7ee3' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-636e37ff-da1b-49df-af26-ab46778e7ee3' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-84a633aa-a33c-4e99-ba4d-8c38d3dadea4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-84a633aa-a33c-4e99-ba4d-8c38d3dadea4' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
  2892. ],
  2893. "text/plain": [
  2894. "<xarray.Dataset>\n",
  2895. "Dimensions: ()\n",
  2896. "Data variables:\n",
  2897. " A float64 1.591e+06\n",
  2898. " tau float64 0.1586"
  2899. ]
  2900. },
  2901. "execution_count": 31,
  2902. "metadata": {},
  2903. "output_type": "execute_result"
  2904. }
  2905. ],
  2906. "source": [
  2907. "std = fitAnalyser.get_fit_std(fitResult)\n",
  2908. "std"
  2909. ]
  2910. },
  2911. {
  2912. "cell_type": "code",
  2913. "execution_count": 32,
  2914. "metadata": {},
  2915. "outputs": [
  2916. {
  2917. "data": {
  2918. "text/html": [
  2919. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2920. "<defs>\n",
  2921. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2922. "<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",
  2923. "<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",
  2924. "<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",
  2925. "</symbol>\n",
  2926. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2927. "<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",
  2928. "<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",
  2929. "<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",
  2930. "<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",
  2931. "</symbol>\n",
  2932. "</defs>\n",
  2933. "</svg>\n",
  2934. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2935. " *\n",
  2936. " */\n",
  2937. "\n",
  2938. ":root {\n",
  2939. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2940. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2941. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2942. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2943. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2944. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2945. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2946. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2947. "}\n",
  2948. "\n",
  2949. "html[theme=dark],\n",
  2950. "body[data-theme=dark],\n",
  2951. "body.vscode-dark {\n",
  2952. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2953. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2954. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2955. " --xr-border-color: #1F1F1F;\n",
  2956. " --xr-disabled-color: #515151;\n",
  2957. " --xr-background-color: #111111;\n",
  2958. " --xr-background-color-row-even: #111111;\n",
  2959. " --xr-background-color-row-odd: #313131;\n",
  2960. "}\n",
  2961. "\n",
  2962. ".xr-wrap {\n",
  2963. " display: block !important;\n",
  2964. " min-width: 300px;\n",
  2965. " max-width: 700px;\n",
  2966. "}\n",
  2967. "\n",
  2968. ".xr-text-repr-fallback {\n",
  2969. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2970. " display: none;\n",
  2971. "}\n",
  2972. "\n",
  2973. ".xr-header {\n",
  2974. " padding-top: 6px;\n",
  2975. " padding-bottom: 6px;\n",
  2976. " margin-bottom: 4px;\n",
  2977. " border-bottom: solid 1px var(--xr-border-color);\n",
  2978. "}\n",
  2979. "\n",
  2980. ".xr-header > div,\n",
  2981. ".xr-header > ul {\n",
  2982. " display: inline;\n",
  2983. " margin-top: 0;\n",
  2984. " margin-bottom: 0;\n",
  2985. "}\n",
  2986. "\n",
  2987. ".xr-obj-type,\n",
  2988. ".xr-array-name {\n",
  2989. " margin-left: 2px;\n",
  2990. " margin-right: 10px;\n",
  2991. "}\n",
  2992. "\n",
  2993. ".xr-obj-type {\n",
  2994. " color: var(--xr-font-color2);\n",
  2995. "}\n",
  2996. "\n",
  2997. ".xr-sections {\n",
  2998. " padding-left: 0 !important;\n",
  2999. " display: grid;\n",
  3000. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  3001. "}\n",
  3002. "\n",
  3003. ".xr-section-item {\n",
  3004. " display: contents;\n",
  3005. "}\n",
  3006. "\n",
  3007. ".xr-section-item input {\n",
  3008. " display: none;\n",
  3009. "}\n",
  3010. "\n",
  3011. ".xr-section-item input + label {\n",
  3012. " color: var(--xr-disabled-color);\n",
  3013. "}\n",
  3014. "\n",
  3015. ".xr-section-item input:enabled + label {\n",
  3016. " cursor: pointer;\n",
  3017. " color: var(--xr-font-color2);\n",
  3018. "}\n",
  3019. "\n",
  3020. ".xr-section-item input:enabled + label:hover {\n",
  3021. " color: var(--xr-font-color0);\n",
  3022. "}\n",
  3023. "\n",
  3024. ".xr-section-summary {\n",
  3025. " grid-column: 1;\n",
  3026. " color: var(--xr-font-color2);\n",
  3027. " font-weight: 500;\n",
  3028. "}\n",
  3029. "\n",
  3030. ".xr-section-summary > span {\n",
  3031. " display: inline-block;\n",
  3032. " padding-left: 0.5em;\n",
  3033. "}\n",
  3034. "\n",
  3035. ".xr-section-summary-in:disabled + label {\n",
  3036. " color: var(--xr-font-color2);\n",
  3037. "}\n",
  3038. "\n",
  3039. ".xr-section-summary-in + label:before {\n",
  3040. " display: inline-block;\n",
  3041. " content: 'â–º';\n",
  3042. " font-size: 11px;\n",
  3043. " width: 15px;\n",
  3044. " text-align: center;\n",
  3045. "}\n",
  3046. "\n",
  3047. ".xr-section-summary-in:disabled + label:before {\n",
  3048. " color: var(--xr-disabled-color);\n",
  3049. "}\n",
  3050. "\n",
  3051. ".xr-section-summary-in:checked + label:before {\n",
  3052. " content: 'â–¼';\n",
  3053. "}\n",
  3054. "\n",
  3055. ".xr-section-summary-in:checked + label > span {\n",
  3056. " display: none;\n",
  3057. "}\n",
  3058. "\n",
  3059. ".xr-section-summary,\n",
  3060. ".xr-section-inline-details {\n",
  3061. " padding-top: 4px;\n",
  3062. " padding-bottom: 4px;\n",
  3063. "}\n",
  3064. "\n",
  3065. ".xr-section-inline-details {\n",
  3066. " grid-column: 2 / -1;\n",
  3067. "}\n",
  3068. "\n",
  3069. ".xr-section-details {\n",
  3070. " display: none;\n",
  3071. " grid-column: 1 / -1;\n",
  3072. " margin-bottom: 5px;\n",
  3073. "}\n",
  3074. "\n",
  3075. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  3076. " display: contents;\n",
  3077. "}\n",
  3078. "\n",
  3079. ".xr-array-wrap {\n",
  3080. " grid-column: 1 / -1;\n",
  3081. " display: grid;\n",
  3082. " grid-template-columns: 20px auto;\n",
  3083. "}\n",
  3084. "\n",
  3085. ".xr-array-wrap > label {\n",
  3086. " grid-column: 1;\n",
  3087. " vertical-align: top;\n",
  3088. "}\n",
  3089. "\n",
  3090. ".xr-preview {\n",
  3091. " color: var(--xr-font-color3);\n",
  3092. "}\n",
  3093. "\n",
  3094. ".xr-array-preview,\n",
  3095. ".xr-array-data {\n",
  3096. " padding: 0 5px !important;\n",
  3097. " grid-column: 2;\n",
  3098. "}\n",
  3099. "\n",
  3100. ".xr-array-data,\n",
  3101. ".xr-array-in:checked ~ .xr-array-preview {\n",
  3102. " display: none;\n",
  3103. "}\n",
  3104. "\n",
  3105. ".xr-array-in:checked ~ .xr-array-data,\n",
  3106. ".xr-array-preview {\n",
  3107. " display: inline-block;\n",
  3108. "}\n",
  3109. "\n",
  3110. ".xr-dim-list {\n",
  3111. " display: inline-block !important;\n",
  3112. " list-style: none;\n",
  3113. " padding: 0 !important;\n",
  3114. " margin: 0;\n",
  3115. "}\n",
  3116. "\n",
  3117. ".xr-dim-list li {\n",
  3118. " display: inline-block;\n",
  3119. " padding: 0;\n",
  3120. " margin: 0;\n",
  3121. "}\n",
  3122. "\n",
  3123. ".xr-dim-list:before {\n",
  3124. " content: '(';\n",
  3125. "}\n",
  3126. "\n",
  3127. ".xr-dim-list:after {\n",
  3128. " content: ')';\n",
  3129. "}\n",
  3130. "\n",
  3131. ".xr-dim-list li:not(:last-child):after {\n",
  3132. " content: ',';\n",
  3133. " padding-right: 5px;\n",
  3134. "}\n",
  3135. "\n",
  3136. ".xr-has-index {\n",
  3137. " font-weight: bold;\n",
  3138. "}\n",
  3139. "\n",
  3140. ".xr-var-list,\n",
  3141. ".xr-var-item {\n",
  3142. " display: contents;\n",
  3143. "}\n",
  3144. "\n",
  3145. ".xr-var-item > div,\n",
  3146. ".xr-var-item label,\n",
  3147. ".xr-var-item > .xr-var-name span {\n",
  3148. " background-color: var(--xr-background-color-row-even);\n",
  3149. " margin-bottom: 0;\n",
  3150. "}\n",
  3151. "\n",
  3152. ".xr-var-item > .xr-var-name:hover span {\n",
  3153. " padding-right: 5px;\n",
  3154. "}\n",
  3155. "\n",
  3156. ".xr-var-list > li:nth-child(odd) > div,\n",
  3157. ".xr-var-list > li:nth-child(odd) > label,\n",
  3158. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  3159. " background-color: var(--xr-background-color-row-odd);\n",
  3160. "}\n",
  3161. "\n",
  3162. ".xr-var-name {\n",
  3163. " grid-column: 1;\n",
  3164. "}\n",
  3165. "\n",
  3166. ".xr-var-dims {\n",
  3167. " grid-column: 2;\n",
  3168. "}\n",
  3169. "\n",
  3170. ".xr-var-dtype {\n",
  3171. " grid-column: 3;\n",
  3172. " text-align: right;\n",
  3173. " color: var(--xr-font-color2);\n",
  3174. "}\n",
  3175. "\n",
  3176. ".xr-var-preview {\n",
  3177. " grid-column: 4;\n",
  3178. "}\n",
  3179. "\n",
  3180. ".xr-index-preview {\n",
  3181. " grid-column: 2 / 5;\n",
  3182. " color: var(--xr-font-color2);\n",
  3183. "}\n",
  3184. "\n",
  3185. ".xr-var-name,\n",
  3186. ".xr-var-dims,\n",
  3187. ".xr-var-dtype,\n",
  3188. ".xr-preview,\n",
  3189. ".xr-attrs dt {\n",
  3190. " white-space: nowrap;\n",
  3191. " overflow: hidden;\n",
  3192. " text-overflow: ellipsis;\n",
  3193. " padding-right: 10px;\n",
  3194. "}\n",
  3195. "\n",
  3196. ".xr-var-name:hover,\n",
  3197. ".xr-var-dims:hover,\n",
  3198. ".xr-var-dtype:hover,\n",
  3199. ".xr-attrs dt:hover {\n",
  3200. " overflow: visible;\n",
  3201. " width: auto;\n",
  3202. " z-index: 1;\n",
  3203. "}\n",
  3204. "\n",
  3205. ".xr-var-attrs,\n",
  3206. ".xr-var-data,\n",
  3207. ".xr-index-data {\n",
  3208. " display: none;\n",
  3209. " background-color: var(--xr-background-color) !important;\n",
  3210. " padding-bottom: 5px !important;\n",
  3211. "}\n",
  3212. "\n",
  3213. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  3214. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  3215. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  3216. " display: block;\n",
  3217. "}\n",
  3218. "\n",
  3219. ".xr-var-data > table {\n",
  3220. " float: right;\n",
  3221. "}\n",
  3222. "\n",
  3223. ".xr-var-name span,\n",
  3224. ".xr-var-data,\n",
  3225. ".xr-index-name div,\n",
  3226. ".xr-index-data,\n",
  3227. ".xr-attrs {\n",
  3228. " padding-left: 25px !important;\n",
  3229. "}\n",
  3230. "\n",
  3231. ".xr-attrs,\n",
  3232. ".xr-var-attrs,\n",
  3233. ".xr-var-data,\n",
  3234. ".xr-index-data {\n",
  3235. " grid-column: 1 / -1;\n",
  3236. "}\n",
  3237. "\n",
  3238. "dl.xr-attrs {\n",
  3239. " padding: 0;\n",
  3240. " margin: 0;\n",
  3241. " display: grid;\n",
  3242. " grid-template-columns: 125px auto;\n",
  3243. "}\n",
  3244. "\n",
  3245. ".xr-attrs dt,\n",
  3246. ".xr-attrs dd {\n",
  3247. " padding: 0;\n",
  3248. " margin: 0;\n",
  3249. " float: left;\n",
  3250. " padding-right: 10px;\n",
  3251. " width: auto;\n",
  3252. "}\n",
  3253. "\n",
  3254. ".xr-attrs dt {\n",
  3255. " font-weight: normal;\n",
  3256. " grid-column: 1;\n",
  3257. "}\n",
  3258. "\n",
  3259. ".xr-attrs dt:hover span {\n",
  3260. " display: inline-block;\n",
  3261. " background: var(--xr-background-color);\n",
  3262. " padding-right: 10px;\n",
  3263. "}\n",
  3264. "\n",
  3265. ".xr-attrs dd {\n",
  3266. " grid-column: 2;\n",
  3267. " white-space: pre-wrap;\n",
  3268. " word-break: break-all;\n",
  3269. "}\n",
  3270. "\n",
  3271. ".xr-icon-database,\n",
  3272. ".xr-icon-file-text2,\n",
  3273. ".xr-no-icon {\n",
  3274. " display: inline-block;\n",
  3275. " vertical-align: middle;\n",
  3276. " width: 1em;\n",
  3277. " height: 1.5em !important;\n",
  3278. " stroke-width: 0;\n",
  3279. " stroke: currentColor;\n",
  3280. " fill: currentColor;\n",
  3281. "}\n",
  3282. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray ()&gt;\n",
  3283. "array(0.2556310933363963+/-0.009332131323758952, dtype=object)</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'></div></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-0f74fa61-81d9-43b3-8dfa-efeee1be9233' class='xr-array-in' type='checkbox' checked><label for='section-0f74fa61-81d9-43b3-8dfa-efeee1be9233' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>0.256+/-0.009</span></div><div class='xr-array-data'><pre>array(0.2556310933363963+/-0.009332131323758952, dtype=object)</pre></div></div></li><li class='xr-section-item'><input id='section-c5825fc5-54fe-44a0-94bf-b6406a837c7f' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c5825fc5-54fe-44a0-94bf-b6406a837c7f' class='xr-section-summary' title='Expand/collapse section'>Coordinates: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-596126cf-96e8-460c-b70b-6f0af94bbaef' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-596126cf-96e8-460c-b70b-6f0af94bbaef' class='xr-section-summary' title='Expand/collapse section'>Indexes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-8562ca1f-db6a-4c04-acc5-429ba0b0bb3a' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-8562ca1f-db6a-4c04-acc5-429ba0b0bb3a' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
  3284. ],
  3285. "text/plain": [
  3286. "<xarray.DataArray ()>\n",
  3287. "array(0.2556310933363963+/-0.009332131323758952, dtype=object)"
  3288. ]
  3289. },
  3290. "execution_count": 32,
  3291. "metadata": {},
  3292. "output_type": "execute_result"
  3293. }
  3294. ],
  3295. "source": [
  3296. "res = fitAnalyser.get_fit_full_result(fitResult)\n",
  3297. "res.A / res.tau / 1e8"
  3298. ]
  3299. },
  3300. {
  3301. "attachments": {},
  3302. "cell_type": "markdown",
  3303. "metadata": {},
  3304. "source": [
  3305. "# Loading rate"
  3306. ]
  3307. },
  3308. {
  3309. "cell_type": "code",
  3310. "execution_count": 5,
  3311. "metadata": {},
  3312. "outputs": [],
  3313. "source": [
  3314. "img_dir = '//DyLabNAS/Data/'\n",
  3315. "SequenceName = \"Repetition_scan\" + \"/\""
  3316. ]
  3317. },
  3318. {
  3319. "cell_type": "code",
  3320. "execution_count": 6,
  3321. "metadata": {},
  3322. "outputs": [
  3323. {
  3324. "data": {
  3325. "text/plain": [
  3326. "2492.803132748206"
  3327. ]
  3328. },
  3329. "execution_count": 6,
  3330. "metadata": {},
  3331. "output_type": "execute_result"
  3332. }
  3333. ],
  3334. "source": [
  3335. "Ncount_to_atoms()"
  3336. ]
  3337. },
  3338. {
  3339. "cell_type": "code",
  3340. "execution_count": 7,
  3341. "metadata": {},
  3342. "outputs": [],
  3343. "source": [
  3344. "powers = [150, 200, 250, 300, 350, 400]\n",
  3345. "ncounts_withpush = np.array([5072.7, 9171.8, 16721.7, 23160.8, 27965.0, 32395.8]) * Ncount_to_atoms()\n",
  3346. "ncount_withpush_errors = np.array([80.7, 146.9, 142.1, 514.9, 433.6, 631.2]) * Ncount_to_atoms()\n",
  3347. "\n",
  3348. "ncounts_withoutpush = np.array([629.0, 1567.6, 3063.7, 4426.5, 4755.4, 4920.9]) * Ncount_to_atoms()\n",
  3349. "ncount_withoutpush_errors = np.array([22.9, 53.8, 79.9, 63.7, 191.5, 190.9]) * Ncount_to_atoms()\n",
  3350. "\n",
  3351. "sat_ncount_withpush = np.array([23921.7, 39196.8, 60078.6, 75443.0, 84752.0, 91294.0]) * Ncount_to_atoms()\n",
  3352. "sat_ncount_withpush_errors = np.array([88.3, 138.8, 89.0, 278.0, 210.1, 355.1]) * Ncount_to_atoms()\n",
  3353. "\n",
  3354. "sat_ncount_withoutpush = np.array([4224.1, 9672.3, 17949.6, 24080.9, 25218.2, 26968.5]) * Ncount_to_atoms()\n",
  3355. "sat_ncount_withoutpush_errors = np.array([37.5, 77.2, 105.9, 75.3, 217.6, 265.0]) * Ncount_to_atoms()"
  3356. ]
  3357. },
  3358. {
  3359. "cell_type": "code",
  3360. "execution_count": 8,
  3361. "metadata": {},
  3362. "outputs": [
  3363. {
  3364. "data": {
  3365. "text/plain": [
  3366. "array([[1.50000000e+02, 2.00000000e+02, 2.50000000e+02, 3.00000000e+02,\n",
  3367. " 3.50000000e+02, 4.00000000e+02],\n",
  3368. " [1.26452425e+07, 2.28634918e+07, 4.16839061e+07, 5.77353148e+07,\n",
  3369. " 6.97112396e+07, 8.07563517e+07],\n",
  3370. " [1.26452425e+07, 2.28634918e+07, 4.16839061e+07, 5.77353148e+07,\n",
  3371. " 6.97112396e+07, 8.07563517e+07]])"
  3372. ]
  3373. },
  3374. "execution_count": 8,
  3375. "metadata": {},
  3376. "output_type": "execute_result"
  3377. }
  3378. ],
  3379. "source": [
  3380. "np.array([powers, ncounts_withpush, ncounts_withpush])"
  3381. ]
  3382. },
  3383. {
  3384. "cell_type": "code",
  3385. "execution_count": 37,
  3386. "metadata": {},
  3387. "outputs": [],
  3388. "source": [
  3389. "np.savetxt('loading_rate_withpush.txt', \n",
  3390. " np.array([powers, ncounts_withpush, ncount_withpush_errors]),\n",
  3391. " )"
  3392. ]
  3393. },
  3394. {
  3395. "cell_type": "code",
  3396. "execution_count": 38,
  3397. "metadata": {},
  3398. "outputs": [],
  3399. "source": [
  3400. "np.savetxt('loading_rate_withoutpush.txt', \n",
  3401. " np.array([powers, ncounts_withoutpush, ncount_withoutpush_errors]),\n",
  3402. " )"
  3403. ]
  3404. },
  3405. {
  3406. "cell_type": "code",
  3407. "execution_count": 39,
  3408. "metadata": {},
  3409. "outputs": [],
  3410. "source": [
  3411. "np.savetxt('sat_ncount_withpush.txt', \n",
  3412. " np.array([powers, sat_ncount_withpush, sat_ncount_withpush_errors]),\n",
  3413. " )"
  3414. ]
  3415. },
  3416. {
  3417. "cell_type": "code",
  3418. "execution_count": 40,
  3419. "metadata": {},
  3420. "outputs": [],
  3421. "source": [
  3422. "np.savetxt('sat_ncount_withoutpush.txt', \n",
  3423. " np.array([powers, sat_ncount_withoutpush, sat_ncount_withoutpush_errors]),\n",
  3424. " )"
  3425. ]
  3426. },
  3427. {
  3428. "cell_type": "code",
  3429. "execution_count": 41,
  3430. "metadata": {},
  3431. "outputs": [],
  3432. "source": [
  3433. "np.savetxt('old_loading_rate_withpush.txt', \n",
  3434. " np.array([[430], [1.2157134383410748e8], [0.02622973148346536e8]]),\n",
  3435. " )"
  3436. ]
  3437. },
  3438. {
  3439. "cell_type": "code",
  3440. "execution_count": 42,
  3441. "metadata": {},
  3442. "outputs": [],
  3443. "source": [
  3444. "np.savetxt('old_loading_rate_withoutpush.txt', \n",
  3445. " np.array([[430], [0.2556310933363963e8], [0.009332131323758952e8]]),\n",
  3446. " )"
  3447. ]
  3448. },
  3449. {
  3450. "cell_type": "code",
  3451. "execution_count": 43,
  3452. "metadata": {},
  3453. "outputs": [],
  3454. "source": [
  3455. "np.savetxt('old_sat_ncount_withpush.txt', \n",
  3456. " np.array([[430], [3.54756438e8], [2776453.58029856]]),\n",
  3457. " )"
  3458. ]
  3459. },
  3460. {
  3461. "cell_type": "code",
  3462. "execution_count": 44,
  3463. "metadata": {},
  3464. "outputs": [],
  3465. "source": [
  3466. "np.savetxt('old_sat_ncount_withoutpush.txt', \n",
  3467. " np.array([[430], [1.19289449e8], [1591103.66003124]]),\n",
  3468. " )"
  3469. ]
  3470. },
  3471. {
  3472. "cell_type": "code",
  3473. "execution_count": null,
  3474. "metadata": {},
  3475. "outputs": [],
  3476. "source": [
  3477. "plot_axes.errorbar([430], [1.2157134383410748e8], yerr=[0.02622973148346536e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3478. "plot_axes.errorbar([430], [0.2556310933363963e8], yerr=[0.009332131323758952e8], color='k', marker='*', markersize=15)"
  3479. ]
  3480. },
  3481. {
  3482. "cell_type": "code",
  3483. "execution_count": null,
  3484. "metadata": {},
  3485. "outputs": [],
  3486. "source": [
  3487. "plot_axes.errorbar([430], [3.54756438], yerr=[2776453.58029856/1e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3488. "plot_axes.errorbar([430], [1.19289449], yerr=[1591103.66003124/1e8], color=\"k\", marker='*', markersize=15)"
  3489. ]
  3490. },
  3491. {
  3492. "cell_type": "code",
  3493. "execution_count": null,
  3494. "metadata": {},
  3495. "outputs": [],
  3496. "source": []
  3497. },
  3498. {
  3499. "attachments": {},
  3500. "cell_type": "markdown",
  3501. "metadata": {},
  3502. "source": [
  3503. "## V1"
  3504. ]
  3505. },
  3506. {
  3507. "cell_type": "code",
  3508. "execution_count": 6,
  3509. "metadata": {},
  3510. "outputs": [
  3511. {
  3512. "data": {
  3513. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAvsAAAVeCAYAAADv9/SdAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAEAAElEQVR4nOzdd1RU1/c28OfSERyKBVARRMXeKxJFsQH2bmxBU0xMTL6aGI0lGo0xJrElMUWjYhJN7BXFWLCLFbuIIiooohQpIv2+f/ByfzMytHE6z2ct1roz95x79oDCnjPn7iOIoiiCiIiIiIiMjomuAyAiIiIiIs1gsk9EREREZKSY7BMRERERGSkm+0RERERERorJPhERERGRkWKyT0RERERkpJjsExEREREZKSb7RERERERGisk+EREREZGRYrJPRERERGSkmOwTERERERkptSb7kydPhiAI+PDDD9V5WUl6ejpq1KgBMzMzhIWFaWQMIiIiIiJjIYiiKKrjQgcOHIC/vz/s7e1x584dVKlSRR2XLWL9+vUIDAxE3bp1cfnyZdja2mpkHCIiIiIiQ6eWmf0XL17gnXfegSiKmDVrlsYSfQAYO3YsWrVqhaioKMycOVNj4xARERERGTq1zOx//vnn+P7771GrVi3cvXsXlpaW6oitWCEhIfD394epqSkuXLiAli1banQ8IiIiIiJD9Noz+/fv38fy5csBANOnT9d4og8Afn5+aN++PfLy8vDpp59qfDwiIiIiIkP02sn+ggULkJOTAxsbG7z11lvqiKlMJk2aBAA4cuQIjh07prVxiYiIiIgMxWsl+3Fxcfjrr78AACNGjEDlypVL7XPkyBFMnjwZrVq1gpOTEywsLGBnZwcPDw8MHz4c//zzD/Ly8kq9zrBhw2BnZwcA+Pbbb1/nZRARERERGaXXWrO/YMECfPnllwCAgwcPokePHsW2jYuLw/Dhw3Hy5MlSr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ERESawGSfKoxatWoBAO7evYuXL18qnMvMzMS9e/cU2hEREREZOib7VGF06NABTZo0wfPnzzFx4kRkZGQAKEj0P/jgAyQnJ6NVq1ZcwkNERERGg2v2qUJ58OABhg8fjnPnzkEmk8HDwwPR0dFISUlBjx498Oeff8LFxUXXYRIRERGpBWf2qUKxtraGl5cXTE1NkZqaisuXLyMlJQWCIHD5DhERERkdJvtUYTx79gydO3fGihUrMHToUERERCArKwtXr15F3759ERQUhG7duiExMVHXoRIRERGpBZN9qjC+/fZbREZGokuXLvj333/RoEEDWFhYoFmzZti5cyfatWuH27dv44cfftB1qERERERqwWSfKoxdu3YBAD7//PMi50xMTDBz5kwAwLZt27QaFxEREZGmMNmnCiM2NhYA4OnpqfR8w4YNAbDOPhERERkPJvtUYchkMgDAkydPlJ4vfL5y5cpai4mIiIhIk5jsU4XRpUsXAMD69euVnt+wYYNCOyIiIiJDx2SfKozPP/8cpqamWLt2LRYvXozs7GwAQH5+Pr777jusWbMGpqammD59uo4jJSIiIlIPbqpFFcqqVaswadIk5OXlwdHREe7u7rh79y5SU1NhamqKX375Be+9956uwyQiIiJSC87sk9aJoghvb28IgoCgoKBy9Y2NjcX06dPRvHlz2NrawsbGBp6ennj//fcRHh5eav/33nsPp0+fxtChQ2FmZoarV6/C2toaQ4cOxenTp5noExERkVHhzD5p3cKFCzF79mwAwLp16xAYGFimftu3b0dgYCDS0tKUnjc1NcWsWbPw1VdfqStUIiIiIoNmpusAqGJZt24d5syZU+5+hw4dwvDhw5GXlwcAaNW
  3514. "text/plain": [
  3515. "<Figure size 816x1615.68 with 4 Axes>"
  3516. ]
  3517. },
  3518. "metadata": {},
  3519. "output_type": "display_data"
  3520. }
  3521. ],
  3522. "source": [
  3523. "fig = plt.figure(figsize=(6.8, 6.8/4*3*2*(1 + 16/50)), dpi=120)\n",
  3524. "grid = fig.add_gridspec(4, 1, height_ratios=[2, 50, 10, 50], wspace=0.4, hspace=0.1)\n",
  3525. "\n",
  3526. "######################\n",
  3527. "# fig.a\n",
  3528. "######################\n",
  3529. "\n",
  3530. "plot_axes = plt.subplot(grid[1, 0])\n",
  3531. "\n",
  3532. "plot_kwarg = {\n",
  3533. " # 'fmt': 'o',\n",
  3534. " \n",
  3535. " # Style of line\n",
  3536. " 'linestyle': 'None',\n",
  3537. " 'linewidth': 2,\n",
  3538. " \n",
  3539. " # Style of markder\n",
  3540. " # 'marker': '.',\n",
  3541. " 'markersize': 5,\n",
  3542. " # 'markerfacecolor': plot_blue,\n",
  3543. " # 'markeredgecolor': plot_blue,\n",
  3544. " 'markeredgewidth': 4,\n",
  3545. " \n",
  3546. " # Style of errorbar\n",
  3547. " 'capsize': 0,\n",
  3548. " # 'ecolor': plot_blue, # color of errorbar line\n",
  3549. " 'capthick': 1.5,\n",
  3550. " 'elinewidth': 3,\n",
  3551. " \n",
  3552. " # text for legend\n",
  3553. " 'label': 'Experiment',\n",
  3554. " }\n",
  3555. "\n",
  3556. "\n",
  3557. "# 1.2157134383410748+/-0.02622973148346536\n",
  3558. "# 0.2556310933363963+/-0.009332131323758952\n",
  3559. "\n",
  3560. "plot_axes.errorbar(powers, ncounts_withpush, yerr=ncount_withpush_errors, color=plot_red, marker='o', **plot_kwarg)\n",
  3561. "plot_axes.errorbar(powers, ncounts_withoutpush, yerr=ncount_withoutpush_errors, color=\"k\", marker='s', **plot_kwarg)\n",
  3562. "plot_axes.errorbar([430], [1.2157134383410748e8], yerr=[0.02622973148346536e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3563. "plot_axes.errorbar([430], [0.2556310933363963e8], yerr=[0.009332131323758952e8], color='k', marker='*', markersize=15)\n",
  3564. "\n",
  3565. "plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
  3566. "plot_axes.set_ylabel(\"Loading rate $\\Phi_\\mathrm{3D}$ (atoms/s)\", fontsize=20)\n",
  3567. "\n",
  3568. "plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
  3569. "plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
  3570. "plot_axes.xaxis.offsetText.set_fontsize(20)\n",
  3571. "plot_axes.yaxis.offsetText.set_fontsize(20)\n",
  3572. "\n",
  3573. "plt.setp(plot_axes.spines.values(), linewidth=3)\n",
  3574. "plot_axes.xaxis.set_tick_params(width=3)\n",
  3575. "plot_axes.yaxis.set_tick_params(width=3)\n",
  3576. "plot_axes.tick_params(direction='in', length=10)\n",
  3577. "\n",
  3578. "if np.max(plot_axes.get_xticks()) < 1000:\n",
  3579. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
  3580. "else:\n",
  3581. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
  3582. "if np.max(plot_axes.get_yticks()) < 1000:\n",
  3583. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
  3584. "else:\n",
  3585. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
  3586. "\n",
  3587. "# plot_axes.set_ylim([-0.1e8, 9e7])\n",
  3588. "\n",
  3589. "######################\n",
  3590. "\n",
  3591. "plot_axes.legend( [\"with red push\", \"without push\"],\n",
  3592. " fontsize=20, loc = 'lower right', bbox_to_anchor=(0.1, 0.7, 0.5, 0.5), shadow=False, \n",
  3593. " facecolor='white', framealpha=1, edgecolor='gray')\n",
  3594. "\n",
  3595. "######################\n",
  3596. "\n",
  3597. "######################\n",
  3598. "# fig.b\n",
  3599. "######################\n",
  3600. "\n",
  3601. "plot_axes = plt.subplot(grid[3, 0])\n",
  3602. "\n",
  3603. "plot_kwarg = {\n",
  3604. " # 'fmt': 'o',\n",
  3605. " \n",
  3606. " # Style of line\n",
  3607. " 'linestyle': 'None',\n",
  3608. " 'linewidth': 2,\n",
  3609. " \n",
  3610. " # Style of markder\n",
  3611. " # 'marker': '.',\n",
  3612. " 'markersize': 5,\n",
  3613. " # 'markerfacecolor': plot_blue,\n",
  3614. " # 'markeredgecolor': plot_blue,\n",
  3615. " 'markeredgewidth': 4,\n",
  3616. " \n",
  3617. " # Style of errorbar\n",
  3618. " 'capsize': 0,\n",
  3619. " # 'ecolor': plot_blue, # color of errorbar line\n",
  3620. " 'capthick': 1.5,\n",
  3621. " 'elinewidth': 3,\n",
  3622. " \n",
  3623. " # text for legend\n",
  3624. " # 'label': 'Experiment',\n",
  3625. " }\n",
  3626. "\n",
  3627. "plot_axes.errorbar([430], [3.54756438], yerr=[2776453.58029856/1e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3628. "plot_axes.errorbar([430], [1.19289449], yerr=[1591103.66003124/1e8], color=\"k\", marker='*', markersize=15)\n",
  3629. "\n",
  3630. "plot_axes.errorbar(powers, sat_ncount_withpush / 1e8, yerr=sat_ncount_withpush_errors / 1e8, color=plot_red, marker='o', **plot_kwarg)\n",
  3631. "plot_axes.errorbar(powers, sat_ncount_withoutpush / 1e8, yerr=sat_ncount_withoutpush_errors / 1e8, color=\"k\", marker='s', **plot_kwarg)\n",
  3632. "\n",
  3633. "plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
  3634. "plot_axes.set_ylabel(\"Saturation atom $N_\\mathrm{sat}$ $(10^8)$\", fontsize=20)\n",
  3635. "\n",
  3636. "plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
  3637. "plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
  3638. "plot_axes.xaxis.offsetText.set_fontsize(20)\n",
  3639. "plot_axes.yaxis.offsetText.set_fontsize(20)\n",
  3640. "\n",
  3641. "plt.setp(plot_axes.spines.values(), linewidth=3)\n",
  3642. "plot_axes.xaxis.set_tick_params(width=3)\n",
  3643. "plot_axes.yaxis.set_tick_params(width=3)\n",
  3644. "plot_axes.tick_params(direction='in', length=10)\n",
  3645. "\n",
  3646. "if np.max(plot_axes.get_xticks()) < 1000:\n",
  3647. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
  3648. "else:\n",
  3649. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
  3650. "if np.max(plot_axes.get_yticks()) < 1000:\n",
  3651. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
  3652. "else:\n",
  3653. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
  3654. "\n",
  3655. "plot_axes.set_ylim([0, 4])\n",
  3656. "\n",
  3657. "plt.setp(plot_axes.get_yticklabels()[0], visible=False)\n",
  3658. "\n",
  3659. "######################################\n",
  3660. "\n",
  3661. "plot_axes = plt.subplot(grid[0, 0])\n",
  3662. "plot_axes.text(-0.17, 0.8, '(a)', va='bottom', fontsize=20)\n",
  3663. "plot_axes.set_axis_off()\n",
  3664. "\n",
  3665. "plot_axes = plt.subplot(grid[2, 0])\n",
  3666. "plot_axes.text(-0.17, 0.1, '(b)', va='bottom', fontsize=20)\n",
  3667. "plot_axes.set_axis_off()\n",
  3668. "\n",
  3669. "fig.savefig('figS1_v2.pdf', bbox_inches = \"tight\")\n",
  3670. "\n",
  3671. "plt.show()"
  3672. ]
  3673. },
  3674. {
  3675. "cell_type": "code",
  3676. "execution_count": null,
  3677. "metadata": {},
  3678. "outputs": [],
  3679. "source": []
  3680. },
  3681. {
  3682. "attachments": {},
  3683. "cell_type": "markdown",
  3684. "metadata": {},
  3685. "source": [
  3686. "## V2"
  3687. ]
  3688. },
  3689. {
  3690. "cell_type": "code",
  3691. "execution_count": 30,
  3692. "metadata": {},
  3693. "outputs": [],
  3694. "source": [
  3695. "def curve(A, P0, Psat, x):\n",
  3696. " return A*(1-np.exp(-(x-P0)/Psat))"
  3697. ]
  3698. },
  3699. {
  3700. "cell_type": "code",
  3701. "execution_count": 31,
  3702. "metadata": {},
  3703. "outputs": [
  3704. {
  3705. "data": {
  3706. "image/png": "iVBORw0KGgoAAAANSUhEUgAAA1oAAAKdCAYAAAA6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TTz+Nk5P5BRZ37dplO85M4sLDwxk3bhwtW7bEx8eHChUq0K5dO1599VUuXbpkegwiIiIiIlLylNny7v369aNfv35F+oz9+/fbjqtWrcrHH3/Mc889R2JiYpZ227ZtY9u2bXzwwQf8+OOPdO3a9Zr3tVgsRRKviIiIiIiYI7dCe2U20SoOFy9etB1/++23TJ8+HYAmTZrQr18//P39OXLkCEuWLOHChQucPXuWPn36sHbtWoKDg+0UtYiIiIiIFDUlWoVwZeXA6dOn4+DgwIwZM3jqqadwcPh3Vuabb77J0KFD+f3330lOTmbo0KEcOHAgxwqFIiIiIiJSupXZNVrF4b9TBCdOnMgzzzyTJcmCjIIcS5YsoV69egAcO3aMuXPnFleYIiIiIiJSzJRoFYKbm5vt2N/fn7Fjx+bY1tPTkzFjxtheL126tEhjExERERER+9HUwULw9va2HXfv3h13d/drtu/Tp4/teNu2bfl6Vm6L7UREREREpGgUpFidRrQKISAgwHZcrVq1XNvXqFHDdhwdHV0kMYmIiIiIiP0p0SqEpk2b2o6vrECYk7S0NNvxlaNhIiIiIiJStijRKoTWrVvbjq/cvDgn4eHhtuOaNWsWRUgiIiIiIlICKNEqhI4dO1K5cmUgI9Has2fPNdsvX77cdty9e/cijU1EREREROxHiVYhODk5cc8999heP/XUUzkWrYiOjuadd96xvR42bFiRxyciIiIiIvahRKuQxo0bZxvV+v3337n33nuv2l/rzJkzDBgwgKioKAAGDBhAp06dij1WEREREREpHkq0cmGxWGw/2W0yXLFiRb766itcXV0B+Oabb6hduzajRo1iypQpjBw5kkaNGrF582YAAgMD+fTTT4vzVxARERERkWKmfbRMcOONN/LLL79w3333cfz4caKjo7NNplq2bMmyZcuoWrWqHaIUEREREZHiohEtk/Ts2ZP9+/fz/vvvc9111xEYGIiTkxN+fn706tWLWbNmsXXrVmrXrm3vUEVEREREpIhZjJyqN4jdZLfztP4ziYiIiIjYR0E+n2tES0RERERExGRKtEREREREREymREtERERERMRkqjooBRYXF8e+ffs4dOgQ8fHxWK1We4ckIsXE0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kXfeeSfX9gcPHgTAxcWFmjVrZtumXr16ACQlJXHs2DFT+oqIiEjhKdESKeeSk5P5559/bB/MAaKjo9m0aROxsbF2jMw8q1evJiEhAYCBAwfmqU9RvC+PP/440dHRzJw5k4oVK+baPiYmBgA/Pz8sFku2bfz9/W3HFy5cMKWviIiIFJ4SLZFyatmyZQwaNAg/Pz9atWrFvHnzbNf27NlD586d8fPzo1u3bnz00UelujLdTz/9ZDu++eabr9m2qN6XJUuWMH/+fG688UbuueeePPW5fPkykDEqlRM3NzfbcWJioil9RUREpPCUaImUMwcOHKBjx44MGjSIZcuW2T6QZyc9PZ3169fz2GOPUbduXX7++edijNQ8mXEHBQXRvHnzbNsU5fty4cIFRo8ejaenJ5988kme43Z3dwcgJSUlxzaZ67Ago5qgGX1FRESk8JRoiZQjq1evpl27dmzdutV2zs3NjZtvvpmuXbvaztWpU4d77703y1qmyMhIBg4cyJQpU4o15sLatm0bJ0+eBHKeNljU78uYMWM4c+YMr732GnXq1Mlz7H5+fkBGomYYRrZtMqcIXtm+sH1FRESk8JRoiZQT27Zt45ZbbrGtVXJwcOC5557j9OnTLF26lN69e9va1q5dmy+//JJTp07x+ee
  3707. "text/plain": [
  3708. "<Figure size 960x720 with 1 Axes>"
  3709. ]
  3710. },
  3711. "metadata": {},
  3712. "output_type": "display_data"
  3713. }
  3714. ],
  3715. "source": [
  3716. "fig = plt.figure(figsize=(8, 6), dpi=120)\n",
  3717. "\n",
  3718. "plot_axes = fig.gca()\n",
  3719. "\n",
  3720. "plot_kwarg = {\n",
  3721. " # 'fmt': 'o',\n",
  3722. " \n",
  3723. " # Style of line\n",
  3724. " 'linestyle': 'None',\n",
  3725. " 'linewidth': 2,\n",
  3726. " \n",
  3727. " # Style of markder\n",
  3728. " # 'marker': '.',\n",
  3729. " 'markersize': 5,\n",
  3730. " # 'markerfacecolor': plot_blue,\n",
  3731. " # 'markeredgecolor': plot_blue,\n",
  3732. " 'markeredgewidth': 4,\n",
  3733. " \n",
  3734. " # Style of errorbar\n",
  3735. " 'capsize': 0,\n",
  3736. " # 'ecolor': plot_blue, # color of errorbar line\n",
  3737. " 'capthick': 1.5,\n",
  3738. " 'elinewidth': 3,\n",
  3739. " \n",
  3740. " # text for legend\n",
  3741. " 'label': 'Experiment',\n",
  3742. " }\n",
  3743. "\n",
  3744. "\n",
  3745. "# 1.2157134383410748+/-0.02622973148346536\n",
  3746. "# 0.2556310933363963+/-0.009332131323758952\n",
  3747. "\n",
  3748. "Nmax = np.max(ncounts_withpush)\n",
  3749. "plot_axes.errorbar(powers, ncounts_withpush / Nmax, yerr=ncount_withpush_errors / Nmax, color=plot_red, marker='^', **plot_kwarg)\n",
  3750. "\n",
  3751. "Nmax = np.max(sat_ncount_withpush)\n",
  3752. "plot_axes.errorbar(powers, sat_ncount_withpush / Nmax, yerr=sat_ncount_withpush_errors / Nmax, color=plot_blue, marker='o', **plot_kwarg)\n",
  3753. "\n",
  3754. "x = np.linspace(100, 550, 1000)\n",
  3755. "fit_line = curve(1.422, 105.9, 234.2, x)\n",
  3756. "plot_axes.errorbar(x, fit_line, color=plot_blue, fmt='--')\n",
  3757. "\n",
  3758. "x = np.linspace(100, 550, 1000)\n",
  3759. "fit_line = curve(3.843, 117.4, 923.4, x)\n",
  3760. "plot_axes.errorbar(x, fit_line, color=plot_red, fmt='--')\n",
  3761. "\n",
  3762. "plot_axes.set_xlim([50, 550])\n",
  3763. "plot_axes.set_ylim([-0, 1.6])\n",
  3764. "\n",
  3765. "plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
  3766. "plot_axes.set_ylabel(\"Relative performance\", fontsize=20)\n",
  3767. "\n",
  3768. "plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
  3769. "plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
  3770. "plot_axes.xaxis.offsetText.set_fontsize(20)\n",
  3771. "plot_axes.yaxis.offsetText.set_fontsize(20)\n",
  3772. "\n",
  3773. "plt.setp(plot_axes.spines.values(), linewidth=3)\n",
  3774. "plot_axes.xaxis.set_tick_params(width=3)\n",
  3775. "plot_axes.yaxis.set_tick_params(width=3)\n",
  3776. "plot_axes.tick_params(direction='in', length=10)\n",
  3777. "\n",
  3778. "if np.max(plot_axes.get_xticks()) < 1000:\n",
  3779. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
  3780. "else:\n",
  3781. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
  3782. "if np.max(plot_axes.get_yticks()) < 1000:\n",
  3783. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
  3784. "else:\n",
  3785. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
  3786. "\n",
  3787. "plt.setp(plot_axes.get_xticklabels()[0], visible=False)\n",
  3788. "plt.setp(plot_axes.get_yticklabels()[0], visible=False)\n",
  3789. "\n",
  3790. "plot_axes.legend( [\"$\\Phi_\\mathrm{3D}/\\Phi_\\mathrm{3D}^{400}$\", \"$N_\\mathrm{sat}/N_\\mathrm{sat}^{400}$\"],\n",
  3791. " fontsize=20, loc = 'lower right', bbox_to_anchor=(-0.07, 0.7, 0.5, 0.5), shadow=False, \n",
  3792. " facecolor='white', framealpha=1, edgecolor='gray')\n",
  3793. "\n",
  3794. "fig.savefig('figS1_v3.pdf', bbox_inches = \"tight\")\n",
  3795. "\n",
  3796. "plt.show()"
  3797. ]
  3798. },
  3799. {
  3800. "cell_type": "code",
  3801. "execution_count": 34,
  3802. "metadata": {},
  3803. "outputs": [
  3804. {
  3805. "data": {
  3806. "text/plain": [
  3807. "array([1.26452425, 2.28634918, 4.16839061, 5.77353148, 6.97112396,\n",
  3808. " 8.07563517])"
  3809. ]
  3810. },
  3811. "execution_count": 34,
  3812. "metadata": {},
  3813. "output_type": "execute_result"
  3814. }
  3815. ],
  3816. "source": [
  3817. "ncounts_withpush/1e7"
  3818. ]
  3819. },
  3820. {
  3821. "cell_type": "code",
  3822. "execution_count": 35,
  3823. "metadata": {},
  3824. "outputs": [
  3825. {
  3826. "data": {
  3827. "text/plain": [
  3828. "array([0.02011692, 0.03661928, 0.03542273, 0.12835443, 0.10808794,\n",
  3829. " 0.15734573])"
  3830. ]
  3831. },
  3832. "execution_count": 35,
  3833. "metadata": {},
  3834. "output_type": "execute_result"
  3835. }
  3836. ],
  3837. "source": [
  3838. "ncount_withpush_errors/1e7"
  3839. ]
  3840. },
  3841. {
  3842. "cell_type": "code",
  3843. "execution_count": 37,
  3844. "metadata": {},
  3845. "outputs": [
  3846. {
  3847. "data": {
  3848. "text/plain": [
  3849. "array([0.59632089, 0.97709906, 1.49764122, 1.88064547, 2.11270051,\n",
  3850. " 2.27577969])"
  3851. ]
  3852. },
  3853. "execution_count": 37,
  3854. "metadata": {},
  3855. "output_type": "execute_result"
  3856. }
  3857. ],
  3858. "source": [
  3859. "sat_ncount_withpush/1e8"
  3860. ]
  3861. },
  3862. {
  3863. "cell_type": "code",
  3864. "execution_count": 38,
  3865. "metadata": {},
  3866. "outputs": [
  3867. {
  3868. "data": {
  3869. "text/plain": [
  3870. "array([0.00220115, 0.00346001, 0.00221859, 0.00692999, 0.00523738,\n",
  3871. " 0.00885194])"
  3872. ]
  3873. },
  3874. "execution_count": 38,
  3875. "metadata": {},
  3876. "output_type": "execute_result"
  3877. }
  3878. ],
  3879. "source": [
  3880. "sat_ncount_withpush_errors/1e8"
  3881. ]
  3882. },
  3883. {
  3884. "cell_type": "code",
  3885. "execution_count": null,
  3886. "metadata": {},
  3887. "outputs": [],
  3888. "source": []
  3889. },
  3890. {
  3891. "cell_type": "markdown",
  3892. "metadata": {},
  3893. "source": [
  3894. "## V3"
  3895. ]
  3896. },
  3897. {
  3898. "cell_type": "code",
  3899. "execution_count": 9,
  3900. "metadata": {},
  3901. "outputs": [],
  3902. "source": [
  3903. "def curve(A, P0, Psat, x):\n",
  3904. " return A*(1-np.exp(-(x-P0)/Psat))"
  3905. ]
  3906. },
  3907. {
  3908. "cell_type": "code",
  3909. "execution_count": 18,
  3910. "metadata": {},
  3911. "outputs": [
  3912. {
  3913. "data": {
  3914. "image/png": "iVBORw0KGgoAAAANSUhEUgAAA1oAAAKdCAYAAAA6OBgmAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAEAAElEQVR4nOzdd3RU1RbA4d/MpPeEkoQAIfQWejVUAQWUIihIExCUIvIURToCFooiIKIUKVakF0VUivQaIHRCS0JIQkIIkN5m7vsjZkggPZNMyv7Wynp37pxz7874yMyec84+KkVRFIQQQgghhBBCGIza2AEIIYQQQgghREkjiZYQQgghhBBCGJgkWkIIIYQQQghhYJJoCSGEEEIIIYSBSaIlhBBCCCGEEAYmiZYQQgghhBBCGJgkWkIIIYQQQghhYJJoCSGEEEIIIYSBSaIlhBBCCCGEEAYmiZYQQgghhBBCGJgkWkIIIYQQQghhYKUu0VIUBS8vL1QqFevWrTPotU+dOsWoUaOoV68e9vb2mJmZ4eLiQufOnVm8eDHR0dEGvZ8QQgghhBCiaDIxdgCF7fPPP+fYsWMGvWZMTAyjR4/m559/fua50NBQQkND2bdvH/PmzWP9+vV07NjRoPcXQgghhBBCFC2lKtFau3YtM2bMMOg1tVotffv25e+//9af69ixI8899xxWVlbcvn2b7du38+DBA0JDQ+natSt79+6lbdu2Bo1DCCGEEEIIUXSUikRLURQ+++wzZs6ciaIoBr32ypUr9UmWk5MTW7dupX379unaLF68mKFDh7J161YSExMZMmQIvr6+mJubGzQWIYQQQgghRNFQ4tdohYaG8tJLLzFjxgyDJ1kACxcu1B+vW7fumSQLwMbGhvXr11O/fn0AAgIC2LRpk8FjEUIIIYQQQhQNJTbRiouL49NPP6V69ers3r0bAFtb2wwToby6fPkyt27dAqBmzZr06NEj07ZmZmaMGjVK/3j//v0Gi0M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IIYQoysL+PsShRi9zZ9UG0Om4/N4nKIpi7LAASbSEEMJo3n77baKiorJt9/3339OmTRu2bt2KTqejfv36RERE8N133+Hp6cn58+cLpK8QQghRVCU9fMz5EVM4/fJbxAeGAFCmYyuarF+CSqUycnQpJNESQggjWLt2LX/99Rd9+vTJst3FixcZPXo0Op2OSZMmERwcjLe3NyEhIQwaNIiHDx/yyiuvkJCQYNC+QgghRFEV+vs+DjZ8ibs/bgXAxNYaz2/n0PLvdenWaBmbJFqixLs+Z+kzP0IYU0hICBMmTKBKlSrMmTMny7azZ89Gq9Xy3HPPMW/ePEz/q5ZkZWXF6tWr8fDwwM/Pj7Vr1xq0rxBCCFHUKDod5974EO8+Y0kIuQ9Aua7taHd+F5Xf6l9kRrJSSaIlSrwbn3zzzI8QxjRmzBgePXrEihUrsLa2zrRdTEwMu3bt0vd5mrm5OcOGDQPgt99+M1hfIYQQoihSqdWYOtoDYOJgR8PV82i+cyWWlVyNHFnGJNESQgAwa9YsfVGGDh06GDscg3vllVdQqVRoNBrCwsJy3M/Qr8v69evZsWMHgwcP5oUXXsiy7blz54iPjwegXbt2GbZp3749ACdPnkT33673+e0rhBBCFBXKU+9PtT+bQOW3+tP+wi4qvvFKkRvFSksSLSFEiZeQkMCePXsAaNGiBeXLlzdKHPfv32f8+PGULVuWRYsWZdv++vXrAJiZmVGpUsZzzqtVqwZAfHw8AQEBBukrhBBCGJuiKNz9eTuHm/Qi6VGk/ryJTcp6LAtX47yX54YkWkKUcgkJCVy4cEH/wRwgPDycEydOEBkZmUXP4mPfvn3ExMQA0KNHjxz1KYjXZdy4cYSHh7N48WL
  3915. "text/plain": [
  3916. "<Figure size 960x720 with 1 Axes>"
  3917. ]
  3918. },
  3919. "metadata": {},
  3920. "output_type": "display_data"
  3921. }
  3922. ],
  3923. "source": [
  3924. "fig = plt.figure(figsize=(8, 6), dpi=120)\n",
  3925. "\n",
  3926. "plot_axes = fig.gca()\n",
  3927. "\n",
  3928. "plot_kwarg = {\n",
  3929. " # 'fmt': 'o',\n",
  3930. " \n",
  3931. " # Style of line\n",
  3932. " 'linestyle': 'None',\n",
  3933. " 'linewidth': 2,\n",
  3934. " \n",
  3935. " # Style of markder\n",
  3936. " # 'marker': '.',\n",
  3937. " 'markersize': 5,\n",
  3938. " # 'markerfacecolor': plot_blue,\n",
  3939. " # 'markeredgecolor': plot_blue,\n",
  3940. " 'markeredgewidth': 4,\n",
  3941. " \n",
  3942. " # Style of errorbar\n",
  3943. " 'capsize': 0,\n",
  3944. " # 'ecolor': plot_blue, # color of errorbar line\n",
  3945. " 'capthick': 1.5,\n",
  3946. " 'elinewidth': 3,\n",
  3947. " \n",
  3948. " # text for legend\n",
  3949. " 'label': 'Experiment',\n",
  3950. " }\n",
  3951. "\n",
  3952. "\n",
  3953. "# 1.2157134383410748+/-0.02622973148346536\n",
  3954. "# 0.2556310933363963+/-0.009332131323758952\n",
  3955. "\n",
  3956. "Nmax = np.max(ncounts_withpush)\n",
  3957. "plot_axes.errorbar(powers, ncounts_withpush / Nmax, yerr=ncount_withpush_errors / Nmax, color=plot_red, marker='^', **plot_kwarg)\n",
  3958. "\n",
  3959. "Nmax = np.max(sat_ncount_withpush)\n",
  3960. "plot_axes.errorbar(powers, sat_ncount_withpush / Nmax, yerr=sat_ncount_withpush_errors / Nmax, color=plot_blue, marker='o', **plot_kwarg)\n",
  3961. "\n",
  3962. "x = np.linspace(90, 450, 1000)\n",
  3963. "fit_line = curve(1.422, 105.9, 234.2, x)\n",
  3964. "plot_axes.errorbar(x, fit_line, color=plot_blue, fmt='--')\n",
  3965. "\n",
  3966. "x = np.linspace(90, 450, 1000)\n",
  3967. "fit_line = curve(3.843, 117.4, 923.4, x)\n",
  3968. "plot_axes.errorbar(x, fit_line, color=plot_red, fmt='--')\n",
  3969. "\n",
  3970. "plot_axes.set_xlim([90, 450])\n",
  3971. "plot_axes.set_ylim([-0, 1.2])\n",
  3972. "\n",
  3973. "plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
  3974. "plot_axes.set_ylabel(\"Relative performance\", fontsize=20)\n",
  3975. "\n",
  3976. "plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
  3977. "plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
  3978. "plot_axes.xaxis.offsetText.set_fontsize(20)\n",
  3979. "plot_axes.yaxis.offsetText.set_fontsize(20)\n",
  3980. "\n",
  3981. "plt.setp(plot_axes.spines.values(), linewidth=3)\n",
  3982. "plot_axes.xaxis.set_tick_params(width=3)\n",
  3983. "plot_axes.yaxis.set_tick_params(width=3)\n",
  3984. "plot_axes.tick_params(direction='in', length=10)\n",
  3985. "\n",
  3986. "if np.max(plot_axes.get_xticks()) < 1000:\n",
  3987. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
  3988. "else:\n",
  3989. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
  3990. "if np.max(plot_axes.get_yticks()) < 1000:\n",
  3991. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
  3992. "else:\n",
  3993. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
  3994. "\n",
  3995. "# plt.setp(plot_axes.get_xticklabels()[0], visible=False)\n",
  3996. "# plt.setp(plot_axes.get_yticklabels()[0], visible=False)\n",
  3997. "\n",
  3998. "plot_axes.legend( [\"$\\Phi_\\mathrm{3D}/\\Phi_\\mathrm{3D}^{400}$\", \"$N_\\mathrm{sat}/N_\\mathrm{sat}^{400}$\"],\n",
  3999. " fontsize=20, loc = 'lower right', bbox_to_anchor=(-0.07, 0.7, 0.5, 0.5), shadow=False, \n",
  4000. " facecolor='white', framealpha=1, edgecolor='gray')\n",
  4001. "\n",
  4002. "fig.savefig('figS1_v5.pdf', bbox_inches = \"tight\")\n",
  4003. "\n",
  4004. "plt.show()"
  4005. ]
  4006. },
  4007. {
  4008. "cell_type": "code",
  4009. "execution_count": null,
  4010. "metadata": {},
  4011. "outputs": [],
  4012. "source": []
  4013. }
  4014. ],
  4015. "metadata": {
  4016. "kernelspec": {
  4017. "display_name": "Python 3",
  4018. "language": "python",
  4019. "name": "python3"
  4020. },
  4021. "language_info": {
  4022. "codemirror_mode": {
  4023. "name": "ipython",
  4024. "version": 3
  4025. },
  4026. "file_extension": ".py",
  4027. "mimetype": "text/x-python",
  4028. "name": "python",
  4029. "nbconvert_exporter": "python",
  4030. "pygments_lexer": "ipython3",
  4031. "version": "3.9.12"
  4032. },
  4033. "orig_nbformat": 4
  4034. },
  4035. "nbformat": 4,
  4036. "nbformat_minor": 2
  4037. }