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.

3666 lines
474 KiB

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. "source": [
  17. "import xarray as xr\n",
  18. "import numpy as np\n",
  19. "\n",
  20. "from uncertainties import ufloat\n",
  21. "from uncertainties import unumpy as unp\n",
  22. "from uncertainties import umath\n",
  23. "\n",
  24. "import matplotlib.pyplot as plt\n",
  25. "\n",
  26. "from DataContainer.ReadData import read_hdf5_file\n",
  27. "from Analyser.ImagingAnalyser import ImageAnalyser\n",
  28. "from Analyser.FitAnalyser import FitAnalyser\n",
  29. "from Analyser.FitAnalyser import ThomasFermi2dModel, DensityProfileBEC2dModel, Polylog22dModel\n",
  30. "from Analyser.FitAnalyser import NewFitModel\n",
  31. "from ToolFunction.ToolFunction import *\n",
  32. "\n",
  33. "from ToolFunction.HomeMadeXarrayFunction import errorbar, dataarray_plot_errorbar\n",
  34. "xr.plot.dataarray_plot.errorbar = errorbar\n",
  35. "xr.plot.accessor.DataArrayPlotAccessor.errorbar = dataarray_plot_errorbar\n",
  36. "\n",
  37. "imageAnalyser = ImageAnalyser()"
  38. ]
  39. },
  40. {
  41. "cell_type": "code",
  42. "execution_count": 2,
  43. "metadata": {},
  44. "outputs": [],
  45. "source": [
  46. "import numpy as np\n",
  47. "\n",
  48. "from matplotlib.colors import ListedColormap, LinearSegmentedColormap\n",
  49. "\n",
  50. "import matplotlib.pyplot as plt\n",
  51. "plt.rcParams[\"font.family\"] = \"arial\""
  52. ]
  53. },
  54. {
  55. "cell_type": "code",
  56. "execution_count": 3,
  57. "metadata": {},
  58. "outputs": [],
  59. "source": [
  60. "def Ncount_to_atoms():\n",
  61. " return 1 / 8.4743e-14 / 0.3725 * 5.86e-6**2 / 0.6606**2"
  62. ]
  63. },
  64. {
  65. "cell_type": "code",
  66. "execution_count": 10,
  67. "metadata": {},
  68. "outputs": [],
  69. "source": [
  70. "import csv\n",
  71. "\n",
  72. "colormap = np.zeros((1024, 3))\n",
  73. "\n",
  74. "with open('smooth-cool-warm-table-float-1024.csv', newline='') as csvfile:\n",
  75. " spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')\n",
  76. " i = 0\n",
  77. " for row in spamreader:\n",
  78. " try:\n",
  79. " a = row[0].split(',')\n",
  80. " colormap[i, 0] = float(a[1])\n",
  81. " colormap[i, 1] = float(a[2])\n",
  82. " colormap[i, 2] = float(a[3])\n",
  83. " i = i + 1\n",
  84. " except:\n",
  85. " pass\n",
  86. "\n",
  87. "colormap = ListedColormap(colormap)"
  88. ]
  89. },
  90. {
  91. "cell_type": "code",
  92. "execution_count": 11,
  93. "metadata": {},
  94. "outputs": [],
  95. "source": [
  96. "data_colors = colormap(np.linspace(0, 1, 7))\n",
  97. "plot_blue = data_colors[0]\n",
  98. "plot_red = data_colors[-1]\n",
  99. "plot_red_alpha = 1"
  100. ]
  101. },
  102. {
  103. "attachments": {},
  104. "cell_type": "markdown",
  105. "metadata": {},
  106. "source": [
  107. "## Start a client for parallel computing"
  108. ]
  109. },
  110. {
  111. "cell_type": "code",
  112. "execution_count": 12,
  113. "metadata": {},
  114. "outputs": [
  115. {
  116. "data": {
  117. "text/html": [
  118. "<div>\n",
  119. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
  120. " <div style=\"margin-left: 48px;\">\n",
  121. " <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
  122. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-eb14457e-1720-11ee-8c04-80e82ce2fa8e</p>\n",
  123. " <table style=\"width: 100%; text-align: left;\">\n",
  124. "\n",
  125. " <tr>\n",
  126. " \n",
  127. " <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
  128. " <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
  129. " \n",
  130. " </tr>\n",
  131. "\n",
  132. " \n",
  133. " <tr>\n",
  134. " <td style=\"text-align: left;\">\n",
  135. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  136. " </td>\n",
  137. " <td style=\"text-align: left;\"></td>\n",
  138. " </tr>\n",
  139. " \n",
  140. "\n",
  141. " </table>\n",
  142. "\n",
  143. " \n",
  144. "\n",
  145. " \n",
  146. " <details>\n",
  147. " <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
  148. " <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
  149. " <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
  150. " </div>\n",
  151. " <div style=\"margin-left: 48px;\">\n",
  152. " <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
  153. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">c071fe85</p>\n",
  154. " <table style=\"width: 100%; text-align: left;\">\n",
  155. " <tr>\n",
  156. " <td style=\"text-align: left;\">\n",
  157. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  158. " </td>\n",
  159. " <td style=\"text-align: left;\">\n",
  160. " <strong>Workers:</strong> 6\n",
  161. " </td>\n",
  162. " </tr>\n",
  163. " <tr>\n",
  164. " <td style=\"text-align: left;\">\n",
  165. " <strong>Total threads:</strong> 60\n",
  166. " </td>\n",
  167. " <td style=\"text-align: left;\">\n",
  168. " <strong>Total memory:</strong> 55.88 GiB\n",
  169. " </td>\n",
  170. " </tr>\n",
  171. " \n",
  172. " <tr>\n",
  173. " <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
  174. " <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
  175. "</tr>\n",
  176. "\n",
  177. " \n",
  178. " </table>\n",
  179. "\n",
  180. " <details>\n",
  181. " <summary style=\"margin-bottom: 20px;\">\n",
  182. " <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
  183. " </summary>\n",
  184. "\n",
  185. " <div style=\"\">\n",
  186. " <div>\n",
  187. " <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
  188. " <div style=\"margin-left: 48px;\">\n",
  189. " <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
  190. " <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-d47e28b4-5276-45c0-964e-87f3987b2160</p>\n",
  191. " <table style=\"width: 100%; text-align: left;\">\n",
  192. " <tr>\n",
  193. " <td style=\"text-align: left;\">\n",
  194. " <strong>Comm:</strong> tcp://127.0.0.1:54927\n",
  195. " </td>\n",
  196. " <td style=\"text-align: left;\">\n",
  197. " <strong>Workers:</strong> 6\n",
  198. " </td>\n",
  199. " </tr>\n",
  200. " <tr>\n",
  201. " <td style=\"text-align: left;\">\n",
  202. " <strong>Dashboard:</strong> <a href=\"http://127.0.0.1:8787/status\" target=\"_blank\">http://127.0.0.1:8787/status</a>\n",
  203. " </td>\n",
  204. " <td style=\"text-align: left;\">\n",
  205. " <strong>Total threads:</strong> 60\n",
  206. " </td>\n",
  207. " </tr>\n",
  208. " <tr>\n",
  209. " <td style=\"text-align: left;\">\n",
  210. " <strong>Started:</strong> Just now\n",
  211. " </td>\n",
  212. " <td style=\"text-align: left;\">\n",
  213. " <strong>Total memory:</strong> 55.88 GiB\n",
  214. " </td>\n",
  215. " </tr>\n",
  216. " </table>\n",
  217. " </div>\n",
  218. " </div>\n",
  219. "\n",
  220. " <details style=\"margin-left: 48px;\">\n",
  221. " <summary style=\"margin-bottom: 20px;\">\n",
  222. " <h3 style=\"display: inline;\">Workers</h3>\n",
  223. " </summary>\n",
  224. "\n",
  225. " \n",
  226. " <div style=\"margin-bottom: 20px;\">\n",
  227. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  228. " <div style=\"margin-left: 48px;\">\n",
  229. " <details>\n",
  230. " <summary>\n",
  231. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
  232. " </summary>\n",
  233. " <table style=\"width: 100%; text-align: left;\">\n",
  234. " <tr>\n",
  235. " <td style=\"text-align: left;\">\n",
  236. " <strong>Comm: </strong> tcp://127.0.0.1:54966\n",
  237. " </td>\n",
  238. " <td style=\"text-align: left;\">\n",
  239. " <strong>Total threads: </strong> 10\n",
  240. " </td>\n",
  241. " </tr>\n",
  242. " <tr>\n",
  243. " <td style=\"text-align: left;\">\n",
  244. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54967/status\" target=\"_blank\">http://127.0.0.1:54967/status</a>\n",
  245. " </td>\n",
  246. " <td style=\"text-align: left;\">\n",
  247. " <strong>Memory: </strong> 9.31 GiB\n",
  248. " </td>\n",
  249. " </tr>\n",
  250. " <tr>\n",
  251. " <td style=\"text-align: left;\">\n",
  252. " <strong>Nanny: </strong> tcp://127.0.0.1:54930\n",
  253. " </td>\n",
  254. " <td style=\"text-align: left;\"></td>\n",
  255. " </tr>\n",
  256. " <tr>\n",
  257. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  258. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-cvobjmxg\n",
  259. " </td>\n",
  260. " </tr>\n",
  261. "\n",
  262. " \n",
  263. "\n",
  264. " \n",
  265. "\n",
  266. " </table>\n",
  267. " </details>\n",
  268. " </div>\n",
  269. " </div>\n",
  270. " \n",
  271. " <div style=\"margin-bottom: 20px;\">\n",
  272. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  273. " <div style=\"margin-left: 48px;\">\n",
  274. " <details>\n",
  275. " <summary>\n",
  276. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
  277. " </summary>\n",
  278. " <table style=\"width: 100%; text-align: left;\">\n",
  279. " <tr>\n",
  280. " <td style=\"text-align: left;\">\n",
  281. " <strong>Comm: </strong> tcp://127.0.0.1:54960\n",
  282. " </td>\n",
  283. " <td style=\"text-align: left;\">\n",
  284. " <strong>Total threads: </strong> 10\n",
  285. " </td>\n",
  286. " </tr>\n",
  287. " <tr>\n",
  288. " <td style=\"text-align: left;\">\n",
  289. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54963/status\" target=\"_blank\">http://127.0.0.1:54963/status</a>\n",
  290. " </td>\n",
  291. " <td style=\"text-align: left;\">\n",
  292. " <strong>Memory: </strong> 9.31 GiB\n",
  293. " </td>\n",
  294. " </tr>\n",
  295. " <tr>\n",
  296. " <td style=\"text-align: left;\">\n",
  297. " <strong>Nanny: </strong> tcp://127.0.0.1:54931\n",
  298. " </td>\n",
  299. " <td style=\"text-align: left;\"></td>\n",
  300. " </tr>\n",
  301. " <tr>\n",
  302. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  303. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-r0l_epl5\n",
  304. " </td>\n",
  305. " </tr>\n",
  306. "\n",
  307. " \n",
  308. "\n",
  309. " \n",
  310. "\n",
  311. " </table>\n",
  312. " </details>\n",
  313. " </div>\n",
  314. " </div>\n",
  315. " \n",
  316. " <div style=\"margin-bottom: 20px;\">\n",
  317. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  318. " <div style=\"margin-left: 48px;\">\n",
  319. " <details>\n",
  320. " <summary>\n",
  321. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
  322. " </summary>\n",
  323. " <table style=\"width: 100%; text-align: left;\">\n",
  324. " <tr>\n",
  325. " <td style=\"text-align: left;\">\n",
  326. " <strong>Comm: </strong> tcp://127.0.0.1:54965\n",
  327. " </td>\n",
  328. " <td style=\"text-align: left;\">\n",
  329. " <strong>Total threads: </strong> 10\n",
  330. " </td>\n",
  331. " </tr>\n",
  332. " <tr>\n",
  333. " <td style=\"text-align: left;\">\n",
  334. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54968/status\" target=\"_blank\">http://127.0.0.1:54968/status</a>\n",
  335. " </td>\n",
  336. " <td style=\"text-align: left;\">\n",
  337. " <strong>Memory: </strong> 9.31 GiB\n",
  338. " </td>\n",
  339. " </tr>\n",
  340. " <tr>\n",
  341. " <td style=\"text-align: left;\">\n",
  342. " <strong>Nanny: </strong> tcp://127.0.0.1:54932\n",
  343. " </td>\n",
  344. " <td style=\"text-align: left;\"></td>\n",
  345. " </tr>\n",
  346. " <tr>\n",
  347. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  348. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-mnfl9i_m\n",
  349. " </td>\n",
  350. " </tr>\n",
  351. "\n",
  352. " \n",
  353. "\n",
  354. " \n",
  355. "\n",
  356. " </table>\n",
  357. " </details>\n",
  358. " </div>\n",
  359. " </div>\n",
  360. " \n",
  361. " <div style=\"margin-bottom: 20px;\">\n",
  362. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  363. " <div style=\"margin-left: 48px;\">\n",
  364. " <details>\n",
  365. " <summary>\n",
  366. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
  367. " </summary>\n",
  368. " <table style=\"width: 100%; text-align: left;\">\n",
  369. " <tr>\n",
  370. " <td style=\"text-align: left;\">\n",
  371. " <strong>Comm: </strong> tcp://127.0.0.1:54954\n",
  372. " </td>\n",
  373. " <td style=\"text-align: left;\">\n",
  374. " <strong>Total threads: </strong> 10\n",
  375. " </td>\n",
  376. " </tr>\n",
  377. " <tr>\n",
  378. " <td style=\"text-align: left;\">\n",
  379. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54955/status\" target=\"_blank\">http://127.0.0.1:54955/status</a>\n",
  380. " </td>\n",
  381. " <td style=\"text-align: left;\">\n",
  382. " <strong>Memory: </strong> 9.31 GiB\n",
  383. " </td>\n",
  384. " </tr>\n",
  385. " <tr>\n",
  386. " <td style=\"text-align: left;\">\n",
  387. " <strong>Nanny: </strong> tcp://127.0.0.1:54933\n",
  388. " </td>\n",
  389. " <td style=\"text-align: left;\"></td>\n",
  390. " </tr>\n",
  391. " <tr>\n",
  392. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  393. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-qkxkq62s\n",
  394. " </td>\n",
  395. " </tr>\n",
  396. "\n",
  397. " \n",
  398. "\n",
  399. " \n",
  400. "\n",
  401. " </table>\n",
  402. " </details>\n",
  403. " </div>\n",
  404. " </div>\n",
  405. " \n",
  406. " <div style=\"margin-bottom: 20px;\">\n",
  407. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  408. " <div style=\"margin-left: 48px;\">\n",
  409. " <details>\n",
  410. " <summary>\n",
  411. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 4</h4>\n",
  412. " </summary>\n",
  413. " <table style=\"width: 100%; text-align: left;\">\n",
  414. " <tr>\n",
  415. " <td style=\"text-align: left;\">\n",
  416. " <strong>Comm: </strong> tcp://127.0.0.1:54958\n",
  417. " </td>\n",
  418. " <td style=\"text-align: left;\">\n",
  419. " <strong>Total threads: </strong> 10\n",
  420. " </td>\n",
  421. " </tr>\n",
  422. " <tr>\n",
  423. " <td style=\"text-align: left;\">\n",
  424. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54961/status\" target=\"_blank\">http://127.0.0.1:54961/status</a>\n",
  425. " </td>\n",
  426. " <td style=\"text-align: left;\">\n",
  427. " <strong>Memory: </strong> 9.31 GiB\n",
  428. " </td>\n",
  429. " </tr>\n",
  430. " <tr>\n",
  431. " <td style=\"text-align: left;\">\n",
  432. " <strong>Nanny: </strong> tcp://127.0.0.1:54934\n",
  433. " </td>\n",
  434. " <td style=\"text-align: left;\"></td>\n",
  435. " </tr>\n",
  436. " <tr>\n",
  437. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  438. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-zk2j62q_\n",
  439. " </td>\n",
  440. " </tr>\n",
  441. "\n",
  442. " \n",
  443. "\n",
  444. " \n",
  445. "\n",
  446. " </table>\n",
  447. " </details>\n",
  448. " </div>\n",
  449. " </div>\n",
  450. " \n",
  451. " <div style=\"margin-bottom: 20px;\">\n",
  452. " <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
  453. " <div style=\"margin-left: 48px;\">\n",
  454. " <details>\n",
  455. " <summary>\n",
  456. " <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 5</h4>\n",
  457. " </summary>\n",
  458. " <table style=\"width: 100%; text-align: left;\">\n",
  459. " <tr>\n",
  460. " <td style=\"text-align: left;\">\n",
  461. " <strong>Comm: </strong> tcp://127.0.0.1:54971\n",
  462. " </td>\n",
  463. " <td style=\"text-align: left;\">\n",
  464. " <strong>Total threads: </strong> 10\n",
  465. " </td>\n",
  466. " </tr>\n",
  467. " <tr>\n",
  468. " <td style=\"text-align: left;\">\n",
  469. " <strong>Dashboard: </strong> <a href=\"http://127.0.0.1:54972/status\" target=\"_blank\">http://127.0.0.1:54972/status</a>\n",
  470. " </td>\n",
  471. " <td style=\"text-align: left;\">\n",
  472. " <strong>Memory: </strong> 9.31 GiB\n",
  473. " </td>\n",
  474. " </tr>\n",
  475. " <tr>\n",
  476. " <td style=\"text-align: left;\">\n",
  477. " <strong>Nanny: </strong> tcp://127.0.0.1:54935\n",
  478. " </td>\n",
  479. " <td style=\"text-align: left;\"></td>\n",
  480. " </tr>\n",
  481. " <tr>\n",
  482. " <td colspan=\"2\" style=\"text-align: left;\">\n",
  483. " <strong>Local directory: </strong> C:\\Users\\data\\AppData\\Local\\Temp\\dask-worker-space\\worker-641vd42d\n",
  484. " </td>\n",
  485. " </tr>\n",
  486. "\n",
  487. " \n",
  488. "\n",
  489. " \n",
  490. "\n",
  491. " </table>\n",
  492. " </details>\n",
  493. " </div>\n",
  494. " </div>\n",
  495. " \n",
  496. "\n",
  497. " </details>\n",
  498. "</div>\n",
  499. "\n",
  500. " </details>\n",
  501. " </div>\n",
  502. "</div>\n",
  503. " </details>\n",
  504. " \n",
  505. "\n",
  506. " </div>\n",
  507. "</div>"
  508. ],
  509. "text/plain": [
  510. "<Client: 'tcp://127.0.0.1:54927' processes=6 threads=60, memory=55.88 GiB>"
  511. ]
  512. },
  513. "execution_count": 12,
  514. "metadata": {},
  515. "output_type": "execute_result"
  516. }
  517. ],
  518. "source": [
  519. "from dask.distributed import Client\n",
  520. "client = Client(n_workers=6, threads_per_worker=10, processes=True, memory_limit='10GB')\n",
  521. "client"
  522. ]
  523. },
  524. {
  525. "attachments": {},
  526. "cell_type": "markdown",
  527. "metadata": {},
  528. "source": [
  529. "## Set global path for experiment"
  530. ]
  531. },
  532. {
  533. "cell_type": "code",
  534. "execution_count": 13,
  535. "metadata": {},
  536. "outputs": [],
  537. "source": [
  538. "groupList = [\n",
  539. " \"images/MOT_3D_Camera/in_situ_absorption\",\n",
  540. " \"images/ODT_1_Axis_Camera/in_situ_absorption\",\n",
  541. " \"images/ODT_2_Axis_Camera/in_situ_absorption\",\n",
  542. "]\n",
  543. "\n",
  544. "dskey = {\n",
  545. " \"images/MOT_3D_Camera/in_situ_absorption\": \"camera_0\",\n",
  546. " \"images/ODT_1_Axis_Camera/in_situ_absorption\": \"camera_1\",\n",
  547. " \"images/ODT_2_Axis_Camera/in_situ_absorption\": \"camera_2\",\n",
  548. "}\n"
  549. ]
  550. },
  551. {
  552. "attachments": {},
  553. "cell_type": "markdown",
  554. "metadata": {},
  555. "source": [
  556. "# Old Loading Rate"
  557. ]
  558. },
  559. {
  560. "cell_type": "code",
  561. "execution_count": 14,
  562. "metadata": {},
  563. "outputs": [],
  564. "source": [
  565. "img_dir = '//DyLabNAS/Data/'\n",
  566. "SequenceName = \"MOT_3D_Imaging\" + \"/\""
  567. ]
  568. },
  569. {
  570. "attachments": {},
  571. "cell_type": "markdown",
  572. "metadata": {},
  573. "source": [
  574. "## With red push"
  575. ]
  576. },
  577. {
  578. "cell_type": "code",
  579. "execution_count": 15,
  580. "metadata": {},
  581. "outputs": [
  582. {
  583. "name": "stdout",
  584. "output_type": "stream",
  585. "text": [
  586. "The detected scaning axes and values are: \n",
  587. "\n",
  588. "{'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",
  589. " 7. , 8. , 9. , 10. ]), 'runs': array([0., 1., 2.])}\n"
  590. ]
  591. }
  592. ],
  593. "source": [
  594. "folderPath = img_dir + SequenceName + '2022/10/14'# get_date()\n",
  595. "\n",
  596. "shotNum = \"0012\"\n",
  597. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  598. "\n",
  599. "dataSetDict = {\n",
  600. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  601. " for i in [0]\n",
  602. "}\n",
  603. "\n",
  604. "dataSet = dataSetDict[\"camera_0\"]\n",
  605. "\n",
  606. "print_scanAxis(dataSet)\n",
  607. "\n",
  608. "scanAxis = get_scanAxis(dataSet)\n",
  609. "\n",
  610. "dataSet = auto_rechunk(dataSet)\n",
  611. "\n",
  612. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  613. "\n",
  614. "imageAnalyser.center = (600, 1150)\n",
  615. "imageAnalyser.span = (1100, 1260)\n",
  616. "imageAnalyser.fraction = (0.1, 0.1)\n",
  617. "\n",
  618. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  619. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  620. "\n",
  621. "Ncount = imageAnalyser.get_Ncount(dataSet_cropOD)\n",
  622. "Ncount_mean = calculate_mean(Ncount)\n",
  623. "Ncount_std = calculate_std(Ncount)"
  624. ]
  625. },
  626. {
  627. "cell_type": "code",
  628. "execution_count": 16,
  629. "metadata": {},
  630. "outputs": [
  631. {
  632. "data": {
  633. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAAEAAElEQVR4nOydd3wUZf7H39uzJb03SAIBEkIXsICC9fQU5UdTQRRRPBUVvYPDu8ND0fP09LAXrIB6iuipJ3LKKWBXEKQkoQQCIQnpbXub+f2xyZIlCQRIz/N+veLszPPMzDNr2P3kWxWyLMsIBAKBQCAQCLo9ys5egEAgEAgEAoGgbRDCTiAQCAQCgaCHIISdQCAQCAQCQQ9BCDuBQCAQCASCHoIQdgKBQCAQCAQ9BCHsBAKBQCAQCHoIQtgJBAKBQCAQ9BCEsBMIBAKBQCDoIag7ewHdCUmSKC4uJjg4GIVC0dnLEQgEAoFA0AuQZRmz2UxCQgJK5YltckLYnQLFxcUkJyd39jIEAoFAIBD0Qo4cOUJSUtIJ5whhdwoEBwcDvjc2JCSkk1cjEAgEAoGgN1BXV0dycrJfh5wIIexOgQb3a0hIiBB2AoFA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nNNxUX/wwQcsXLiQgwcPBhx/8cUXefLJJykpKSE1NZVHH32UK6+8sr0fQSAQCE6IJMkU1djZ1ziJocTMgXILTk/zjd9NOrVPvMX6khgG1L+ODtaJJAZBl6XDhV1VVRU7d+5k9OjRbN++HZvNxg033MDs2bOJi4vDaDQGzDcYDFgsFgDMZnOL42azGeCE5zc3BmC
  634. "text/plain": [
  635. "<Figure size 640x480 with 1 Axes>"
  636. ]
  637. },
  638. "metadata": {},
  639. "output_type": "display_data"
  640. }
  641. ],
  642. "source": [
  643. "fig = plt.figure()\n",
  644. "# ax = fig.gca()\n",
  645. "Ncount_mean.plot.errorbar(hue='final_amp')\n",
  646. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  647. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  648. "plt.tight_layout()\n",
  649. "# plt.grid(visible=1)\n",
  650. "plt.show()"
  651. ]
  652. },
  653. {
  654. "cell_type": "code",
  655. "execution_count": 17,
  656. "metadata": {},
  657. "outputs": [
  658. {
  659. "data": {
  660. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABZp0lEQVR4nO3dd3wUdeL/8dem9w4pJCSBhJqIBUEpIiBSPCnKiQIize8deiigoqiInihiOdFTvJ+KEhWR4nlioSrYQBDpAQRCCaQSIMmGkLrz+yOyEgUMkGSSzfv5eOzDZD4zu+/ZaPJ2ZuczFsMwDERERESk3nMyO4CIiIiIVA8VOxEREREHoWInIiIi4iBU7EREREQchIqdiIiIiINQsRMRERFxECp2IiIiIg5CxU5ERETEQajYiYiIiDgIFTsRMcWRI0fo1q0bHh4eNG7cmC+//BKLxcKaNWuq/bUsFgtPPvlktT9vfZKRkcEdd9xBSEgIfn5+DB48mLS0tD/d7rvv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Hbu3Gn/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
  661. "text/plain": [
  662. "<Figure size 640x480 with 1 Axes>"
  663. ]
  664. },
  665. "metadata": {},
  666. "output_type": "display_data"
  667. }
  668. ],
  669. "source": [
  670. "data = Ncount_mean.sel(final_amp=0.88)\n",
  671. "data_std = Ncount_std.sel(final_amp=0.88)\n",
  672. "fig = plt.figure()\n",
  673. "# ax = fig.gca()\n",
  674. "data.plot.errorbar()\n",
  675. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  676. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  677. "plt.tight_layout()\n",
  678. "# plt.grid(visible=1)\n",
  679. "plt.show()"
  680. ]
  681. },
  682. {
  683. "cell_type": "code",
  684. "execution_count": 18,
  685. "metadata": {},
  686. "outputs": [],
  687. "source": [
  688. "def factor_from_Ncounts_to_Natom():\n",
  689. " return 1 / (8.474337362524987e-14 * 0.3725) * 5.86e-6**2 / 0.438**2"
  690. ]
  691. },
  692. {
  693. "cell_type": "code",
  694. "execution_count": 19,
  695. "metadata": {},
  696. "outputs": [],
  697. "source": [
  698. "def mot_loading(x, A, tau):\n",
  699. " return A * (1 - np.exp(-x / tau)) * np.heaviside(x, 0)"
  700. ]
  701. },
  702. {
  703. "cell_type": "code",
  704. "execution_count": 20,
  705. "metadata": {},
  706. "outputs": [],
  707. "source": [
  708. "data = data * factor_from_Ncounts_to_Natom()\n",
  709. "data_std = data_std * factor_from_Ncounts_to_Natom()"
  710. ]
  711. },
  712. {
  713. "cell_type": "code",
  714. "execution_count": 21,
  715. "metadata": {},
  716. "outputs": [
  717. {
  718. "data": {
  719. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnY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337L2rVrGTRoENu3b2fGjBlF/llEpGiUmmBXpUoVXFzynnn+5JNP6NOnD/3798fZ2Zn27dvz0EMPMXfuXMByMXXnzp05fPgwycnJPPfccwwcOJDTp0/b+iOIlBovvvgi48ePZ86cOfTq1Yt33nmHESNGMG3aNA4ePHjV69Wupl69enz11VecOnWKe++9l3HjxgFYn7V3tRscrleNGjV4+umneeqppxgzZgwNGjTg559/pkKFCje97yu5u7uzceNGWrVqxcMPP8xjjz1Gu3bt+O6773L9/65fv348+uij1tePP/44ixYt4tdff6V3795MmjSJRo0asWfPHutMZuvWrfnhhx9wcXFh6NChDB8+nHPnzrFlyxYGDBhQ5J9FRIqGyXyzVyKXQCaTiS1bttC5c2d69+7N5s2bc83AZWdnU7duXfbu3UtQUBAvv/wy9913n3V7/fr1eeKJJ5gwYYIR5YuInRo1ahTh4eH8/fffRpciIqVUqbp5Ij8BAQGMGjWKjz/+2NoWExNjvTsuMjIy1zUmYLmDzc3NzaZ1ikjBLl0Hey35zdqLiDiSUnMqtiBjx45lyZIlbNiwgZycHI4ePUrHjh159913Abj33nt57bXX+Ouvv8jMzGTOnDnExMRw9913G1y5iFwyZsyYqz4y5NKXZtJExNGV+lOxAGvWrGHq1KkcPXoUT09P7r/
  720. "text/plain": [
  721. "<Figure size 640x480 with 1 Axes>"
  722. ]
  723. },
  724. "metadata": {},
  725. "output_type": "display_data"
  726. }
  727. ],
  728. "source": [
  729. "fitModel = NewFitModel(mot_loading)\n",
  730. "fitAnalyser = FitAnalyser(fitModel, fitDim=1)\n",
  731. "\n",
  732. "params = fitAnalyser.fitModel.make_params()\n",
  733. "params.add(name=\"A\", value=1e8, max=np.inf, min=-np.inf, vary=True)\n",
  734. "params.add(name=\"tau\", value=1, max=np.inf, min=-np.inf, vary=True)\n",
  735. "\n",
  736. "fitResult = fitAnalyser.fit(data, params, x='mot_load_duration').load()\n",
  737. "freqdata = np.linspace(0, 10, 500)\n",
  738. "fitCurve = fitAnalyser.eval(fitResult, x=freqdata, dask=\"parallelized\").load()\n",
  739. "fitCurve = fitCurve.assign_coords({'x':np.array(freqdata)})\n",
  740. "\n",
  741. "fig = plt.figure()\n",
  742. "ax = fig.gca()\n",
  743. "\n",
  744. "data.plot.errorbar(ax=ax, yerr = data_std, fmt='ob')\n",
  745. "fitCurve.plot.errorbar(ax=ax, fmt='--g')\n",
  746. "plt.xlabel('Push AOM Freq (MHz)')\n",
  747. "plt.ylabel('NCount')\n",
  748. "plt.tight_layout()\n",
  749. "plt.grid(visible=1)\n",
  750. "plt.show()"
  751. ]
  752. },
  753. {
  754. "cell_type": "code",
  755. "execution_count": 22,
  756. "metadata": {},
  757. "outputs": [
  758. {
  759. "data": {
  760. "text/html": [
  761. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  762. "<defs>\n",
  763. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  764. "<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",
  765. "<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",
  766. "<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",
  767. "</symbol>\n",
  768. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  769. "<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",
  770. "<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",
  771. "<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",
  772. "<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",
  773. "</symbol>\n",
  774. "</defs>\n",
  775. "</svg>\n",
  776. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  777. " *\n",
  778. " */\n",
  779. "\n",
  780. ":root {\n",
  781. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  782. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  783. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  784. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  785. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  786. " --xr-background-color: var(--jp-layout-color0, white);\n",
  787. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  788. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  789. "}\n",
  790. "\n",
  791. "html[theme=dark],\n",
  792. "body[data-theme=dark],\n",
  793. "body.vscode-dark {\n",
  794. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  795. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  796. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  797. " --xr-border-color: #1F1F1F;\n",
  798. " --xr-disabled-color: #515151;\n",
  799. " --xr-background-color: #111111;\n",
  800. " --xr-background-color-row-even: #111111;\n",
  801. " --xr-background-color-row-odd: #313131;\n",
  802. "}\n",
  803. "\n",
  804. ".xr-wrap {\n",
  805. " display: block !important;\n",
  806. " min-width: 300px;\n",
  807. " max-width: 700px;\n",
  808. "}\n",
  809. "\n",
  810. ".xr-text-repr-fallback {\n",
  811. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  812. " display: none;\n",
  813. "}\n",
  814. "\n",
  815. ".xr-header {\n",
  816. " padding-top: 6px;\n",
  817. " padding-bottom: 6px;\n",
  818. " margin-bottom: 4px;\n",
  819. " border-bottom: solid 1px var(--xr-border-color);\n",
  820. "}\n",
  821. "\n",
  822. ".xr-header > div,\n",
  823. ".xr-header > ul {\n",
  824. " display: inline;\n",
  825. " margin-top: 0;\n",
  826. " margin-bottom: 0;\n",
  827. "}\n",
  828. "\n",
  829. ".xr-obj-type,\n",
  830. ".xr-array-name {\n",
  831. " margin-left: 2px;\n",
  832. " margin-right: 10px;\n",
  833. "}\n",
  834. "\n",
  835. ".xr-obj-type {\n",
  836. " color: var(--xr-font-color2);\n",
  837. "}\n",
  838. "\n",
  839. ".xr-sections {\n",
  840. " padding-left: 0 !important;\n",
  841. " display: grid;\n",
  842. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  843. "}\n",
  844. "\n",
  845. ".xr-section-item {\n",
  846. " display: contents;\n",
  847. "}\n",
  848. "\n",
  849. ".xr-section-item input {\n",
  850. " display: none;\n",
  851. "}\n",
  852. "\n",
  853. ".xr-section-item input + label {\n",
  854. " color: var(--xr-disabled-color);\n",
  855. "}\n",
  856. "\n",
  857. ".xr-section-item input:enabled + label {\n",
  858. " cursor: pointer;\n",
  859. " color: var(--xr-font-color2);\n",
  860. "}\n",
  861. "\n",
  862. ".xr-section-item input:enabled + label:hover {\n",
  863. " color: var(--xr-font-color0);\n",
  864. "}\n",
  865. "\n",
  866. ".xr-section-summary {\n",
  867. " grid-column: 1;\n",
  868. " color: var(--xr-font-color2);\n",
  869. " font-weight: 500;\n",
  870. "}\n",
  871. "\n",
  872. ".xr-section-summary > span {\n",
  873. " display: inline-block;\n",
  874. " padding-left: 0.5em;\n",
  875. "}\n",
  876. "\n",
  877. ".xr-section-summary-in:disabled + label {\n",
  878. " color: var(--xr-font-color2);\n",
  879. "}\n",
  880. "\n",
  881. ".xr-section-summary-in + label:before {\n",
  882. " display: inline-block;\n",
  883. " content: 'â–º';\n",
  884. " font-size: 11px;\n",
  885. " width: 15px;\n",
  886. " text-align: center;\n",
  887. "}\n",
  888. "\n",
  889. ".xr-section-summary-in:disabled + label:before {\n",
  890. " color: var(--xr-disabled-color);\n",
  891. "}\n",
  892. "\n",
  893. ".xr-section-summary-in:checked + label:before {\n",
  894. " content: 'â–¼';\n",
  895. "}\n",
  896. "\n",
  897. ".xr-section-summary-in:checked + label > span {\n",
  898. " display: none;\n",
  899. "}\n",
  900. "\n",
  901. ".xr-section-summary,\n",
  902. ".xr-section-inline-details {\n",
  903. " padding-top: 4px;\n",
  904. " padding-bottom: 4px;\n",
  905. "}\n",
  906. "\n",
  907. ".xr-section-inline-details {\n",
  908. " grid-column: 2 / -1;\n",
  909. "}\n",
  910. "\n",
  911. ".xr-section-details {\n",
  912. " display: none;\n",
  913. " grid-column: 1 / -1;\n",
  914. " margin-bottom: 5px;\n",
  915. "}\n",
  916. "\n",
  917. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  918. " display: contents;\n",
  919. "}\n",
  920. "\n",
  921. ".xr-array-wrap {\n",
  922. " grid-column: 1 / -1;\n",
  923. " display: grid;\n",
  924. " grid-template-columns: 20px auto;\n",
  925. "}\n",
  926. "\n",
  927. ".xr-array-wrap > label {\n",
  928. " grid-column: 1;\n",
  929. " vertical-align: top;\n",
  930. "}\n",
  931. "\n",
  932. ".xr-preview {\n",
  933. " color: var(--xr-font-color3);\n",
  934. "}\n",
  935. "\n",
  936. ".xr-array-preview,\n",
  937. ".xr-array-data {\n",
  938. " padding: 0 5px !important;\n",
  939. " grid-column: 2;\n",
  940. "}\n",
  941. "\n",
  942. ".xr-array-data,\n",
  943. ".xr-array-in:checked ~ .xr-array-preview {\n",
  944. " display: none;\n",
  945. "}\n",
  946. "\n",
  947. ".xr-array-in:checked ~ .xr-array-data,\n",
  948. ".xr-array-preview {\n",
  949. " display: inline-block;\n",
  950. "}\n",
  951. "\n",
  952. ".xr-dim-list {\n",
  953. " display: inline-block !important;\n",
  954. " list-style: none;\n",
  955. " padding: 0 !important;\n",
  956. " margin: 0;\n",
  957. "}\n",
  958. "\n",
  959. ".xr-dim-list li {\n",
  960. " display: inline-block;\n",
  961. " padding: 0;\n",
  962. " margin: 0;\n",
  963. "}\n",
  964. "\n",
  965. ".xr-dim-list:before {\n",
  966. " content: '(';\n",
  967. "}\n",
  968. "\n",
  969. ".xr-dim-list:after {\n",
  970. " content: ')';\n",
  971. "}\n",
  972. "\n",
  973. ".xr-dim-list li:not(:last-child):after {\n",
  974. " content: ',';\n",
  975. " padding-right: 5px;\n",
  976. "}\n",
  977. "\n",
  978. ".xr-has-index {\n",
  979. " font-weight: bold;\n",
  980. "}\n",
  981. "\n",
  982. ".xr-var-list,\n",
  983. ".xr-var-item {\n",
  984. " display: contents;\n",
  985. "}\n",
  986. "\n",
  987. ".xr-var-item > div,\n",
  988. ".xr-var-item label,\n",
  989. ".xr-var-item > .xr-var-name span {\n",
  990. " background-color: var(--xr-background-color-row-even);\n",
  991. " margin-bottom: 0;\n",
  992. "}\n",
  993. "\n",
  994. ".xr-var-item > .xr-var-name:hover span {\n",
  995. " padding-right: 5px;\n",
  996. "}\n",
  997. "\n",
  998. ".xr-var-list > li:nth-child(odd) > div,\n",
  999. ".xr-var-list > li:nth-child(odd) > label,\n",
  1000. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1001. " background-color: var(--xr-background-color-row-odd);\n",
  1002. "}\n",
  1003. "\n",
  1004. ".xr-var-name {\n",
  1005. " grid-column: 1;\n",
  1006. "}\n",
  1007. "\n",
  1008. ".xr-var-dims {\n",
  1009. " grid-column: 2;\n",
  1010. "}\n",
  1011. "\n",
  1012. ".xr-var-dtype {\n",
  1013. " grid-column: 3;\n",
  1014. " text-align: right;\n",
  1015. " color: var(--xr-font-color2);\n",
  1016. "}\n",
  1017. "\n",
  1018. ".xr-var-preview {\n",
  1019. " grid-column: 4;\n",
  1020. "}\n",
  1021. "\n",
  1022. ".xr-index-preview {\n",
  1023. " grid-column: 2 / 5;\n",
  1024. " color: var(--xr-font-color2);\n",
  1025. "}\n",
  1026. "\n",
  1027. ".xr-var-name,\n",
  1028. ".xr-var-dims,\n",
  1029. ".xr-var-dtype,\n",
  1030. ".xr-preview,\n",
  1031. ".xr-attrs dt {\n",
  1032. " white-space: nowrap;\n",
  1033. " overflow: hidden;\n",
  1034. " text-overflow: ellipsis;\n",
  1035. " padding-right: 10px;\n",
  1036. "}\n",
  1037. "\n",
  1038. ".xr-var-name:hover,\n",
  1039. ".xr-var-dims:hover,\n",
  1040. ".xr-var-dtype:hover,\n",
  1041. ".xr-attrs dt:hover {\n",
  1042. " overflow: visible;\n",
  1043. " width: auto;\n",
  1044. " z-index: 1;\n",
  1045. "}\n",
  1046. "\n",
  1047. ".xr-var-attrs,\n",
  1048. ".xr-var-data,\n",
  1049. ".xr-index-data {\n",
  1050. " display: none;\n",
  1051. " background-color: var(--xr-background-color) !important;\n",
  1052. " padding-bottom: 5px !important;\n",
  1053. "}\n",
  1054. "\n",
  1055. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1056. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1057. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1058. " display: block;\n",
  1059. "}\n",
  1060. "\n",
  1061. ".xr-var-data > table {\n",
  1062. " float: right;\n",
  1063. "}\n",
  1064. "\n",
  1065. ".xr-var-name span,\n",
  1066. ".xr-var-data,\n",
  1067. ".xr-index-name div,\n",
  1068. ".xr-index-data,\n",
  1069. ".xr-attrs {\n",
  1070. " padding-left: 25px !important;\n",
  1071. "}\n",
  1072. "\n",
  1073. ".xr-attrs,\n",
  1074. ".xr-var-attrs,\n",
  1075. ".xr-var-data,\n",
  1076. ".xr-index-data {\n",
  1077. " grid-column: 1 / -1;\n",
  1078. "}\n",
  1079. "\n",
  1080. "dl.xr-attrs {\n",
  1081. " padding: 0;\n",
  1082. " margin: 0;\n",
  1083. " display: grid;\n",
  1084. " grid-template-columns: 125px auto;\n",
  1085. "}\n",
  1086. "\n",
  1087. ".xr-attrs dt,\n",
  1088. ".xr-attrs dd {\n",
  1089. " padding: 0;\n",
  1090. " margin: 0;\n",
  1091. " float: left;\n",
  1092. " padding-right: 10px;\n",
  1093. " width: auto;\n",
  1094. "}\n",
  1095. "\n",
  1096. ".xr-attrs dt {\n",
  1097. " font-weight: normal;\n",
  1098. " grid-column: 1;\n",
  1099. "}\n",
  1100. "\n",
  1101. ".xr-attrs dt:hover span {\n",
  1102. " display: inline-block;\n",
  1103. " background: var(--xr-background-color);\n",
  1104. " padding-right: 10px;\n",
  1105. "}\n",
  1106. "\n",
  1107. ".xr-attrs dd {\n",
  1108. " grid-column: 2;\n",
  1109. " white-space: pre-wrap;\n",
  1110. " word-break: break-all;\n",
  1111. "}\n",
  1112. "\n",
  1113. ".xr-icon-database,\n",
  1114. ".xr-icon-file-text2,\n",
  1115. ".xr-no-icon {\n",
  1116. " display: inline-block;\n",
  1117. " vertical-align: middle;\n",
  1118. " width: 1em;\n",
  1119. " height: 1.5em !important;\n",
  1120. " stroke-width: 0;\n",
  1121. " stroke: currentColor;\n",
  1122. " fill: currentColor;\n",
  1123. "}\n",
  1124. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  1125. "Dimensions: ()\n",
  1126. "Coordinates:\n",
  1127. " final_amp float64 0.88\n",
  1128. "Data variables:\n",
  1129. " A float64 3.548e+08\n",
  1130. " 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'
  1131. ],
  1132. "text/plain": [
  1133. "<xarray.Dataset>\n",
  1134. "Dimensions: ()\n",
  1135. "Coordinates:\n",
  1136. " final_amp float64 0.88\n",
  1137. "Data variables:\n",
  1138. " A float64 3.548e+08\n",
  1139. " tau float64 2.918"
  1140. ]
  1141. },
  1142. "execution_count": 22,
  1143. "metadata": {},
  1144. "output_type": "execute_result"
  1145. }
  1146. ],
  1147. "source": [
  1148. "val = fitAnalyser.get_fit_value(fitResult)\n",
  1149. "val"
  1150. ]
  1151. },
  1152. {
  1153. "cell_type": "code",
  1154. "execution_count": 23,
  1155. "metadata": {},
  1156. "outputs": [
  1157. {
  1158. "data": {
  1159. "text/html": [
  1160. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  1161. "<defs>\n",
  1162. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  1163. "<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",
  1164. "<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",
  1165. "<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",
  1166. "</symbol>\n",
  1167. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  1168. "<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",
  1169. "<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",
  1170. "<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",
  1171. "<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",
  1172. "</symbol>\n",
  1173. "</defs>\n",
  1174. "</svg>\n",
  1175. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  1176. " *\n",
  1177. " */\n",
  1178. "\n",
  1179. ":root {\n",
  1180. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  1181. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  1182. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  1183. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  1184. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  1185. " --xr-background-color: var(--jp-layout-color0, white);\n",
  1186. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  1187. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  1188. "}\n",
  1189. "\n",
  1190. "html[theme=dark],\n",
  1191. "body[data-theme=dark],\n",
  1192. "body.vscode-dark {\n",
  1193. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  1194. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  1195. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  1196. " --xr-border-color: #1F1F1F;\n",
  1197. " --xr-disabled-color: #515151;\n",
  1198. " --xr-background-color: #111111;\n",
  1199. " --xr-background-color-row-even: #111111;\n",
  1200. " --xr-background-color-row-odd: #313131;\n",
  1201. "}\n",
  1202. "\n",
  1203. ".xr-wrap {\n",
  1204. " display: block !important;\n",
  1205. " min-width: 300px;\n",
  1206. " max-width: 700px;\n",
  1207. "}\n",
  1208. "\n",
  1209. ".xr-text-repr-fallback {\n",
  1210. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  1211. " display: none;\n",
  1212. "}\n",
  1213. "\n",
  1214. ".xr-header {\n",
  1215. " padding-top: 6px;\n",
  1216. " padding-bottom: 6px;\n",
  1217. " margin-bottom: 4px;\n",
  1218. " border-bottom: solid 1px var(--xr-border-color);\n",
  1219. "}\n",
  1220. "\n",
  1221. ".xr-header > div,\n",
  1222. ".xr-header > ul {\n",
  1223. " display: inline;\n",
  1224. " margin-top: 0;\n",
  1225. " margin-bottom: 0;\n",
  1226. "}\n",
  1227. "\n",
  1228. ".xr-obj-type,\n",
  1229. ".xr-array-name {\n",
  1230. " margin-left: 2px;\n",
  1231. " margin-right: 10px;\n",
  1232. "}\n",
  1233. "\n",
  1234. ".xr-obj-type {\n",
  1235. " color: var(--xr-font-color2);\n",
  1236. "}\n",
  1237. "\n",
  1238. ".xr-sections {\n",
  1239. " padding-left: 0 !important;\n",
  1240. " display: grid;\n",
  1241. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  1242. "}\n",
  1243. "\n",
  1244. ".xr-section-item {\n",
  1245. " display: contents;\n",
  1246. "}\n",
  1247. "\n",
  1248. ".xr-section-item input {\n",
  1249. " display: none;\n",
  1250. "}\n",
  1251. "\n",
  1252. ".xr-section-item input + label {\n",
  1253. " color: var(--xr-disabled-color);\n",
  1254. "}\n",
  1255. "\n",
  1256. ".xr-section-item input:enabled + label {\n",
  1257. " cursor: pointer;\n",
  1258. " color: var(--xr-font-color2);\n",
  1259. "}\n",
  1260. "\n",
  1261. ".xr-section-item input:enabled + label:hover {\n",
  1262. " color: var(--xr-font-color0);\n",
  1263. "}\n",
  1264. "\n",
  1265. ".xr-section-summary {\n",
  1266. " grid-column: 1;\n",
  1267. " color: var(--xr-font-color2);\n",
  1268. " font-weight: 500;\n",
  1269. "}\n",
  1270. "\n",
  1271. ".xr-section-summary > span {\n",
  1272. " display: inline-block;\n",
  1273. " padding-left: 0.5em;\n",
  1274. "}\n",
  1275. "\n",
  1276. ".xr-section-summary-in:disabled + label {\n",
  1277. " color: var(--xr-font-color2);\n",
  1278. "}\n",
  1279. "\n",
  1280. ".xr-section-summary-in + label:before {\n",
  1281. " display: inline-block;\n",
  1282. " content: 'â–º';\n",
  1283. " font-size: 11px;\n",
  1284. " width: 15px;\n",
  1285. " text-align: center;\n",
  1286. "}\n",
  1287. "\n",
  1288. ".xr-section-summary-in:disabled + label:before {\n",
  1289. " color: var(--xr-disabled-color);\n",
  1290. "}\n",
  1291. "\n",
  1292. ".xr-section-summary-in:checked + label:before {\n",
  1293. " content: 'â–¼';\n",
  1294. "}\n",
  1295. "\n",
  1296. ".xr-section-summary-in:checked + label > span {\n",
  1297. " display: none;\n",
  1298. "}\n",
  1299. "\n",
  1300. ".xr-section-summary,\n",
  1301. ".xr-section-inline-details {\n",
  1302. " padding-top: 4px;\n",
  1303. " padding-bottom: 4px;\n",
  1304. "}\n",
  1305. "\n",
  1306. ".xr-section-inline-details {\n",
  1307. " grid-column: 2 / -1;\n",
  1308. "}\n",
  1309. "\n",
  1310. ".xr-section-details {\n",
  1311. " display: none;\n",
  1312. " grid-column: 1 / -1;\n",
  1313. " margin-bottom: 5px;\n",
  1314. "}\n",
  1315. "\n",
  1316. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  1317. " display: contents;\n",
  1318. "}\n",
  1319. "\n",
  1320. ".xr-array-wrap {\n",
  1321. " grid-column: 1 / -1;\n",
  1322. " display: grid;\n",
  1323. " grid-template-columns: 20px auto;\n",
  1324. "}\n",
  1325. "\n",
  1326. ".xr-array-wrap > label {\n",
  1327. " grid-column: 1;\n",
  1328. " vertical-align: top;\n",
  1329. "}\n",
  1330. "\n",
  1331. ".xr-preview {\n",
  1332. " color: var(--xr-font-color3);\n",
  1333. "}\n",
  1334. "\n",
  1335. ".xr-array-preview,\n",
  1336. ".xr-array-data {\n",
  1337. " padding: 0 5px !important;\n",
  1338. " grid-column: 2;\n",
  1339. "}\n",
  1340. "\n",
  1341. ".xr-array-data,\n",
  1342. ".xr-array-in:checked ~ .xr-array-preview {\n",
  1343. " display: none;\n",
  1344. "}\n",
  1345. "\n",
  1346. ".xr-array-in:checked ~ .xr-array-data,\n",
  1347. ".xr-array-preview {\n",
  1348. " display: inline-block;\n",
  1349. "}\n",
  1350. "\n",
  1351. ".xr-dim-list {\n",
  1352. " display: inline-block !important;\n",
  1353. " list-style: none;\n",
  1354. " padding: 0 !important;\n",
  1355. " margin: 0;\n",
  1356. "}\n",
  1357. "\n",
  1358. ".xr-dim-list li {\n",
  1359. " display: inline-block;\n",
  1360. " padding: 0;\n",
  1361. " margin: 0;\n",
  1362. "}\n",
  1363. "\n",
  1364. ".xr-dim-list:before {\n",
  1365. " content: '(';\n",
  1366. "}\n",
  1367. "\n",
  1368. ".xr-dim-list:after {\n",
  1369. " content: ')';\n",
  1370. "}\n",
  1371. "\n",
  1372. ".xr-dim-list li:not(:last-child):after {\n",
  1373. " content: ',';\n",
  1374. " padding-right: 5px;\n",
  1375. "}\n",
  1376. "\n",
  1377. ".xr-has-index {\n",
  1378. " font-weight: bold;\n",
  1379. "}\n",
  1380. "\n",
  1381. ".xr-var-list,\n",
  1382. ".xr-var-item {\n",
  1383. " display: contents;\n",
  1384. "}\n",
  1385. "\n",
  1386. ".xr-var-item > div,\n",
  1387. ".xr-var-item label,\n",
  1388. ".xr-var-item > .xr-var-name span {\n",
  1389. " background-color: var(--xr-background-color-row-even);\n",
  1390. " margin-bottom: 0;\n",
  1391. "}\n",
  1392. "\n",
  1393. ".xr-var-item > .xr-var-name:hover span {\n",
  1394. " padding-right: 5px;\n",
  1395. "}\n",
  1396. "\n",
  1397. ".xr-var-list > li:nth-child(odd) > div,\n",
  1398. ".xr-var-list > li:nth-child(odd) > label,\n",
  1399. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1400. " background-color: var(--xr-background-color-row-odd);\n",
  1401. "}\n",
  1402. "\n",
  1403. ".xr-var-name {\n",
  1404. " grid-column: 1;\n",
  1405. "}\n",
  1406. "\n",
  1407. ".xr-var-dims {\n",
  1408. " grid-column: 2;\n",
  1409. "}\n",
  1410. "\n",
  1411. ".xr-var-dtype {\n",
  1412. " grid-column: 3;\n",
  1413. " text-align: right;\n",
  1414. " color: var(--xr-font-color2);\n",
  1415. "}\n",
  1416. "\n",
  1417. ".xr-var-preview {\n",
  1418. " grid-column: 4;\n",
  1419. "}\n",
  1420. "\n",
  1421. ".xr-index-preview {\n",
  1422. " grid-column: 2 / 5;\n",
  1423. " color: var(--xr-font-color2);\n",
  1424. "}\n",
  1425. "\n",
  1426. ".xr-var-name,\n",
  1427. ".xr-var-dims,\n",
  1428. ".xr-var-dtype,\n",
  1429. ".xr-preview,\n",
  1430. ".xr-attrs dt {\n",
  1431. " white-space: nowrap;\n",
  1432. " overflow: hidden;\n",
  1433. " text-overflow: ellipsis;\n",
  1434. " padding-right: 10px;\n",
  1435. "}\n",
  1436. "\n",
  1437. ".xr-var-name:hover,\n",
  1438. ".xr-var-dims:hover,\n",
  1439. ".xr-var-dtype:hover,\n",
  1440. ".xr-attrs dt:hover {\n",
  1441. " overflow: visible;\n",
  1442. " width: auto;\n",
  1443. " z-index: 1;\n",
  1444. "}\n",
  1445. "\n",
  1446. ".xr-var-attrs,\n",
  1447. ".xr-var-data,\n",
  1448. ".xr-index-data {\n",
  1449. " display: none;\n",
  1450. " background-color: var(--xr-background-color) !important;\n",
  1451. " padding-bottom: 5px !important;\n",
  1452. "}\n",
  1453. "\n",
  1454. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1455. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1456. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1457. " display: block;\n",
  1458. "}\n",
  1459. "\n",
  1460. ".xr-var-data > table {\n",
  1461. " float: right;\n",
  1462. "}\n",
  1463. "\n",
  1464. ".xr-var-name span,\n",
  1465. ".xr-var-data,\n",
  1466. ".xr-index-name div,\n",
  1467. ".xr-index-data,\n",
  1468. ".xr-attrs {\n",
  1469. " padding-left: 25px !important;\n",
  1470. "}\n",
  1471. "\n",
  1472. ".xr-attrs,\n",
  1473. ".xr-var-attrs,\n",
  1474. ".xr-var-data,\n",
  1475. ".xr-index-data {\n",
  1476. " grid-column: 1 / -1;\n",
  1477. "}\n",
  1478. "\n",
  1479. "dl.xr-attrs {\n",
  1480. " padding: 0;\n",
  1481. " margin: 0;\n",
  1482. " display: grid;\n",
  1483. " grid-template-columns: 125px auto;\n",
  1484. "}\n",
  1485. "\n",
  1486. ".xr-attrs dt,\n",
  1487. ".xr-attrs dd {\n",
  1488. " padding: 0;\n",
  1489. " margin: 0;\n",
  1490. " float: left;\n",
  1491. " padding-right: 10px;\n",
  1492. " width: auto;\n",
  1493. "}\n",
  1494. "\n",
  1495. ".xr-attrs dt {\n",
  1496. " font-weight: normal;\n",
  1497. " grid-column: 1;\n",
  1498. "}\n",
  1499. "\n",
  1500. ".xr-attrs dt:hover span {\n",
  1501. " display: inline-block;\n",
  1502. " background: var(--xr-background-color);\n",
  1503. " padding-right: 10px;\n",
  1504. "}\n",
  1505. "\n",
  1506. ".xr-attrs dd {\n",
  1507. " grid-column: 2;\n",
  1508. " white-space: pre-wrap;\n",
  1509. " word-break: break-all;\n",
  1510. "}\n",
  1511. "\n",
  1512. ".xr-icon-database,\n",
  1513. ".xr-icon-file-text2,\n",
  1514. ".xr-no-icon {\n",
  1515. " display: inline-block;\n",
  1516. " vertical-align: middle;\n",
  1517. " width: 1em;\n",
  1518. " height: 1.5em !important;\n",
  1519. " stroke-width: 0;\n",
  1520. " stroke: currentColor;\n",
  1521. " fill: currentColor;\n",
  1522. "}\n",
  1523. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  1524. "Dimensions: ()\n",
  1525. "Coordinates:\n",
  1526. " final_amp float64 0.88\n",
  1527. "Data variables:\n",
  1528. " A float64 2.776e+06\n",
  1529. " 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
  1530. ],
  1531. "text/plain": [
  1532. "<xarray.Dataset>\n",
  1533. "Dimensions: ()\n",
  1534. "Coordinates:\n",
  1535. " final_amp float64 0.88\n",
  1536. "Data variables:\n",
  1537. " A float64 2.776e+06\n",
  1538. " tau float64 0.05867"
  1539. ]
  1540. },
  1541. "execution_count": 23,
  1542. "metadata": {},
  1543. "output_type": "execute_result"
  1544. }
  1545. ],
  1546. "source": [
  1547. "std = fitAnalyser.get_fit_std(fitResult)\n",
  1548. "std"
  1549. ]
  1550. },
  1551. {
  1552. "cell_type": "code",
  1553. "execution_count": 24,
  1554. "metadata": {},
  1555. "outputs": [
  1556. {
  1557. "data": {
  1558. "text/html": [
  1559. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  1560. "<defs>\n",
  1561. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  1562. "<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",
  1563. "<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",
  1564. "<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",
  1565. "</symbol>\n",
  1566. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  1567. "<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",
  1568. "<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",
  1569. "<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",
  1570. "<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",
  1571. "</symbol>\n",
  1572. "</defs>\n",
  1573. "</svg>\n",
  1574. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  1575. " *\n",
  1576. " */\n",
  1577. "\n",
  1578. ":root {\n",
  1579. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  1580. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  1581. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  1582. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  1583. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  1584. " --xr-background-color: var(--jp-layout-color0, white);\n",
  1585. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  1586. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  1587. "}\n",
  1588. "\n",
  1589. "html[theme=dark],\n",
  1590. "body[data-theme=dark],\n",
  1591. "body.vscode-dark {\n",
  1592. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  1593. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  1594. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  1595. " --xr-border-color: #1F1F1F;\n",
  1596. " --xr-disabled-color: #515151;\n",
  1597. " --xr-background-color: #111111;\n",
  1598. " --xr-background-color-row-even: #111111;\n",
  1599. " --xr-background-color-row-odd: #313131;\n",
  1600. "}\n",
  1601. "\n",
  1602. ".xr-wrap {\n",
  1603. " display: block !important;\n",
  1604. " min-width: 300px;\n",
  1605. " max-width: 700px;\n",
  1606. "}\n",
  1607. "\n",
  1608. ".xr-text-repr-fallback {\n",
  1609. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  1610. " display: none;\n",
  1611. "}\n",
  1612. "\n",
  1613. ".xr-header {\n",
  1614. " padding-top: 6px;\n",
  1615. " padding-bottom: 6px;\n",
  1616. " margin-bottom: 4px;\n",
  1617. " border-bottom: solid 1px var(--xr-border-color);\n",
  1618. "}\n",
  1619. "\n",
  1620. ".xr-header > div,\n",
  1621. ".xr-header > ul {\n",
  1622. " display: inline;\n",
  1623. " margin-top: 0;\n",
  1624. " margin-bottom: 0;\n",
  1625. "}\n",
  1626. "\n",
  1627. ".xr-obj-type,\n",
  1628. ".xr-array-name {\n",
  1629. " margin-left: 2px;\n",
  1630. " margin-right: 10px;\n",
  1631. "}\n",
  1632. "\n",
  1633. ".xr-obj-type {\n",
  1634. " color: var(--xr-font-color2);\n",
  1635. "}\n",
  1636. "\n",
  1637. ".xr-sections {\n",
  1638. " padding-left: 0 !important;\n",
  1639. " display: grid;\n",
  1640. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  1641. "}\n",
  1642. "\n",
  1643. ".xr-section-item {\n",
  1644. " display: contents;\n",
  1645. "}\n",
  1646. "\n",
  1647. ".xr-section-item input {\n",
  1648. " display: none;\n",
  1649. "}\n",
  1650. "\n",
  1651. ".xr-section-item input + label {\n",
  1652. " color: var(--xr-disabled-color);\n",
  1653. "}\n",
  1654. "\n",
  1655. ".xr-section-item input:enabled + label {\n",
  1656. " cursor: pointer;\n",
  1657. " color: var(--xr-font-color2);\n",
  1658. "}\n",
  1659. "\n",
  1660. ".xr-section-item input:enabled + label:hover {\n",
  1661. " color: var(--xr-font-color0);\n",
  1662. "}\n",
  1663. "\n",
  1664. ".xr-section-summary {\n",
  1665. " grid-column: 1;\n",
  1666. " color: var(--xr-font-color2);\n",
  1667. " font-weight: 500;\n",
  1668. "}\n",
  1669. "\n",
  1670. ".xr-section-summary > span {\n",
  1671. " display: inline-block;\n",
  1672. " padding-left: 0.5em;\n",
  1673. "}\n",
  1674. "\n",
  1675. ".xr-section-summary-in:disabled + label {\n",
  1676. " color: var(--xr-font-color2);\n",
  1677. "}\n",
  1678. "\n",
  1679. ".xr-section-summary-in + label:before {\n",
  1680. " display: inline-block;\n",
  1681. " content: 'â–º';\n",
  1682. " font-size: 11px;\n",
  1683. " width: 15px;\n",
  1684. " text-align: center;\n",
  1685. "}\n",
  1686. "\n",
  1687. ".xr-section-summary-in:disabled + label:before {\n",
  1688. " color: var(--xr-disabled-color);\n",
  1689. "}\n",
  1690. "\n",
  1691. ".xr-section-summary-in:checked + label:before {\n",
  1692. " content: 'â–¼';\n",
  1693. "}\n",
  1694. "\n",
  1695. ".xr-section-summary-in:checked + label > span {\n",
  1696. " display: none;\n",
  1697. "}\n",
  1698. "\n",
  1699. ".xr-section-summary,\n",
  1700. ".xr-section-inline-details {\n",
  1701. " padding-top: 4px;\n",
  1702. " padding-bottom: 4px;\n",
  1703. "}\n",
  1704. "\n",
  1705. ".xr-section-inline-details {\n",
  1706. " grid-column: 2 / -1;\n",
  1707. "}\n",
  1708. "\n",
  1709. ".xr-section-details {\n",
  1710. " display: none;\n",
  1711. " grid-column: 1 / -1;\n",
  1712. " margin-bottom: 5px;\n",
  1713. "}\n",
  1714. "\n",
  1715. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  1716. " display: contents;\n",
  1717. "}\n",
  1718. "\n",
  1719. ".xr-array-wrap {\n",
  1720. " grid-column: 1 / -1;\n",
  1721. " display: grid;\n",
  1722. " grid-template-columns: 20px auto;\n",
  1723. "}\n",
  1724. "\n",
  1725. ".xr-array-wrap > label {\n",
  1726. " grid-column: 1;\n",
  1727. " vertical-align: top;\n",
  1728. "}\n",
  1729. "\n",
  1730. ".xr-preview {\n",
  1731. " color: var(--xr-font-color3);\n",
  1732. "}\n",
  1733. "\n",
  1734. ".xr-array-preview,\n",
  1735. ".xr-array-data {\n",
  1736. " padding: 0 5px !important;\n",
  1737. " grid-column: 2;\n",
  1738. "}\n",
  1739. "\n",
  1740. ".xr-array-data,\n",
  1741. ".xr-array-in:checked ~ .xr-array-preview {\n",
  1742. " display: none;\n",
  1743. "}\n",
  1744. "\n",
  1745. ".xr-array-in:checked ~ .xr-array-data,\n",
  1746. ".xr-array-preview {\n",
  1747. " display: inline-block;\n",
  1748. "}\n",
  1749. "\n",
  1750. ".xr-dim-list {\n",
  1751. " display: inline-block !important;\n",
  1752. " list-style: none;\n",
  1753. " padding: 0 !important;\n",
  1754. " margin: 0;\n",
  1755. "}\n",
  1756. "\n",
  1757. ".xr-dim-list li {\n",
  1758. " display: inline-block;\n",
  1759. " padding: 0;\n",
  1760. " margin: 0;\n",
  1761. "}\n",
  1762. "\n",
  1763. ".xr-dim-list:before {\n",
  1764. " content: '(';\n",
  1765. "}\n",
  1766. "\n",
  1767. ".xr-dim-list:after {\n",
  1768. " content: ')';\n",
  1769. "}\n",
  1770. "\n",
  1771. ".xr-dim-list li:not(:last-child):after {\n",
  1772. " content: ',';\n",
  1773. " padding-right: 5px;\n",
  1774. "}\n",
  1775. "\n",
  1776. ".xr-has-index {\n",
  1777. " font-weight: bold;\n",
  1778. "}\n",
  1779. "\n",
  1780. ".xr-var-list,\n",
  1781. ".xr-var-item {\n",
  1782. " display: contents;\n",
  1783. "}\n",
  1784. "\n",
  1785. ".xr-var-item > div,\n",
  1786. ".xr-var-item label,\n",
  1787. ".xr-var-item > .xr-var-name span {\n",
  1788. " background-color: var(--xr-background-color-row-even);\n",
  1789. " margin-bottom: 0;\n",
  1790. "}\n",
  1791. "\n",
  1792. ".xr-var-item > .xr-var-name:hover span {\n",
  1793. " padding-right: 5px;\n",
  1794. "}\n",
  1795. "\n",
  1796. ".xr-var-list > li:nth-child(odd) > div,\n",
  1797. ".xr-var-list > li:nth-child(odd) > label,\n",
  1798. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  1799. " background-color: var(--xr-background-color-row-odd);\n",
  1800. "}\n",
  1801. "\n",
  1802. ".xr-var-name {\n",
  1803. " grid-column: 1;\n",
  1804. "}\n",
  1805. "\n",
  1806. ".xr-var-dims {\n",
  1807. " grid-column: 2;\n",
  1808. "}\n",
  1809. "\n",
  1810. ".xr-var-dtype {\n",
  1811. " grid-column: 3;\n",
  1812. " text-align: right;\n",
  1813. " color: var(--xr-font-color2);\n",
  1814. "}\n",
  1815. "\n",
  1816. ".xr-var-preview {\n",
  1817. " grid-column: 4;\n",
  1818. "}\n",
  1819. "\n",
  1820. ".xr-index-preview {\n",
  1821. " grid-column: 2 / 5;\n",
  1822. " color: var(--xr-font-color2);\n",
  1823. "}\n",
  1824. "\n",
  1825. ".xr-var-name,\n",
  1826. ".xr-var-dims,\n",
  1827. ".xr-var-dtype,\n",
  1828. ".xr-preview,\n",
  1829. ".xr-attrs dt {\n",
  1830. " white-space: nowrap;\n",
  1831. " overflow: hidden;\n",
  1832. " text-overflow: ellipsis;\n",
  1833. " padding-right: 10px;\n",
  1834. "}\n",
  1835. "\n",
  1836. ".xr-var-name:hover,\n",
  1837. ".xr-var-dims:hover,\n",
  1838. ".xr-var-dtype:hover,\n",
  1839. ".xr-attrs dt:hover {\n",
  1840. " overflow: visible;\n",
  1841. " width: auto;\n",
  1842. " z-index: 1;\n",
  1843. "}\n",
  1844. "\n",
  1845. ".xr-var-attrs,\n",
  1846. ".xr-var-data,\n",
  1847. ".xr-index-data {\n",
  1848. " display: none;\n",
  1849. " background-color: var(--xr-background-color) !important;\n",
  1850. " padding-bottom: 5px !important;\n",
  1851. "}\n",
  1852. "\n",
  1853. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  1854. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  1855. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  1856. " display: block;\n",
  1857. "}\n",
  1858. "\n",
  1859. ".xr-var-data > table {\n",
  1860. " float: right;\n",
  1861. "}\n",
  1862. "\n",
  1863. ".xr-var-name span,\n",
  1864. ".xr-var-data,\n",
  1865. ".xr-index-name div,\n",
  1866. ".xr-index-data,\n",
  1867. ".xr-attrs {\n",
  1868. " padding-left: 25px !important;\n",
  1869. "}\n",
  1870. "\n",
  1871. ".xr-attrs,\n",
  1872. ".xr-var-attrs,\n",
  1873. ".xr-var-data,\n",
  1874. ".xr-index-data {\n",
  1875. " grid-column: 1 / -1;\n",
  1876. "}\n",
  1877. "\n",
  1878. "dl.xr-attrs {\n",
  1879. " padding: 0;\n",
  1880. " margin: 0;\n",
  1881. " display: grid;\n",
  1882. " grid-template-columns: 125px auto;\n",
  1883. "}\n",
  1884. "\n",
  1885. ".xr-attrs dt,\n",
  1886. ".xr-attrs dd {\n",
  1887. " padding: 0;\n",
  1888. " margin: 0;\n",
  1889. " float: left;\n",
  1890. " padding-right: 10px;\n",
  1891. " width: auto;\n",
  1892. "}\n",
  1893. "\n",
  1894. ".xr-attrs dt {\n",
  1895. " font-weight: normal;\n",
  1896. " grid-column: 1;\n",
  1897. "}\n",
  1898. "\n",
  1899. ".xr-attrs dt:hover span {\n",
  1900. " display: inline-block;\n",
  1901. " background: var(--xr-background-color);\n",
  1902. " padding-right: 10px;\n",
  1903. "}\n",
  1904. "\n",
  1905. ".xr-attrs dd {\n",
  1906. " grid-column: 2;\n",
  1907. " white-space: pre-wrap;\n",
  1908. " word-break: break-all;\n",
  1909. "}\n",
  1910. "\n",
  1911. ".xr-icon-database,\n",
  1912. ".xr-icon-file-text2,\n",
  1913. ".xr-no-icon {\n",
  1914. " display: inline-block;\n",
  1915. " vertical-align: middle;\n",
  1916. " width: 1em;\n",
  1917. " height: 1.5em !important;\n",
  1918. " stroke-width: 0;\n",
  1919. " stroke: currentColor;\n",
  1920. " fill: currentColor;\n",
  1921. "}\n",
  1922. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray ()&gt;\n",
  1923. "array(1.2157134383410748+/-0.02622973148346536, dtype=object)\n",
  1924. "Coordinates:\n",
  1925. " 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>"
  1926. ],
  1927. "text/plain": [
  1928. "<xarray.DataArray ()>\n",
  1929. "array(1.2157134383410748+/-0.02622973148346536, dtype=object)\n",
  1930. "Coordinates:\n",
  1931. " final_amp float64 0.88"
  1932. ]
  1933. },
  1934. "execution_count": 24,
  1935. "metadata": {},
  1936. "output_type": "execute_result"
  1937. }
  1938. ],
  1939. "source": [
  1940. "res = fitAnalyser.get_fit_full_result(fitResult)\n",
  1941. "res.A / res.tau / 1e8"
  1942. ]
  1943. },
  1944. {
  1945. "attachments": {},
  1946. "cell_type": "markdown",
  1947. "metadata": {},
  1948. "source": [
  1949. "## Without push"
  1950. ]
  1951. },
  1952. {
  1953. "cell_type": "code",
  1954. "execution_count": 25,
  1955. "metadata": {},
  1956. "outputs": [
  1957. {
  1958. "name": "stdout",
  1959. "output_type": "stream",
  1960. "text": [
  1961. "The detected scaning axes and values are: \n",
  1962. "\n",
  1963. "{'mot_load_duration': array([ 0.5, 1. , 1.5, 2. , 2.5, 3. , 3.5, 4. , 4.5, 5. , 5.5,\n",
  1964. " 6. , 6.5, 7. , 8. , 9. , 10. , 11. , 12. , 13. , 14. , 15. ,\n",
  1965. " 16. ]), 'runs': array([0., 1.])}\n"
  1966. ]
  1967. }
  1968. ],
  1969. "source": [
  1970. "folderPath = img_dir + SequenceName + '2022/10/11'# get_date()\n",
  1971. "\n",
  1972. "shotNum = \"0018\"\n",
  1973. "filePath = folderPath + \"/\" + shotNum + \"/*.h5\"\n",
  1974. "\n",
  1975. "dataSetDict = {\n",
  1976. " dskey[groupList[i]]: read_hdf5_file(filePath, groupList[i])\n",
  1977. " for i in [0]\n",
  1978. "}\n",
  1979. "\n",
  1980. "dataSet = dataSetDict[\"camera_0\"]\n",
  1981. "\n",
  1982. "print_scanAxis(dataSet)\n",
  1983. "\n",
  1984. "scanAxis = get_scanAxis(dataSet)\n",
  1985. "\n",
  1986. "dataSet = auto_rechunk(dataSet)\n",
  1987. "\n",
  1988. "dataSet = imageAnalyser.get_absorption_images(dataSet)\n",
  1989. "\n",
  1990. "imageAnalyser.center = (600, 1125)\n",
  1991. "imageAnalyser.span = (1100, 1200)\n",
  1992. "imageAnalyser.fraction = (0.1, 0.1)\n",
  1993. "\n",
  1994. "dataSet_cropOD = imageAnalyser.crop_image(dataSet.OD)\n",
  1995. "dataSet_cropOD = imageAnalyser.substract_offset(dataSet_cropOD).load()\n",
  1996. "\n",
  1997. "Ncount = imageAnalyser.get_Ncount(dataSet_cropOD)\n",
  1998. "Ncount_mean = calculate_mean(Ncount)\n",
  1999. "Ncount_std = calculate_std(Ncount)"
  2000. ]
  2001. },
  2002. {
  2003. "cell_type": "code",
  2004. "execution_count": 26,
  2005. "metadata": {},
  2006. "outputs": [
  2007. {
  2008. "data": {
  2009. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABbiklEQVR4nO3deXhU5eH28W92sk42CCEJa9hCEJRNFGTTqmhBKi0qmyAuaFHQHyqvBTeUQm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jQoRmRwf7mhRWPo2InIiLyK5VVOvgmLf9Umcsjq7DqhQ8dYkJOnmLt2IwerSLw1YUPUkdU7ERERGrAVlbJ7mwbO48UsfNIEalHrezNLqbC4XTtE+DrTd92UQzp1IyBHZuREKkLH6R+qNiJiIicw+mlNHYetZKaVcTOoycfh4+VnHP/FpafL3y4ol207oYgplCxExGRRs/ucHIg/8TJo3BHi1y/Fpxxh4czxVqakBQbRlKLMLq0CKNzbBgtI89eeF+kvqnYiYhIo3Ki3M7u7KIqJW53to1yu/OsfX28vWjXNJguLSyuItc5NkwXPIjbUrETERGPZBgGebZyUs84ArfrSBEHj53gXPdcCvb3ofOp8na6xHWICaWJn06pSsOhYiciIg2ew2lwMP+E6whc6hEru44WkV987lOpMWEBrvKWFGshqUUYrSKD8PbWqVRp2FTsRETErZRVOigsqeR4SQXHSyqwllRy/NTX1tJKjp+o4HhJJYUlFRSWnvq1pBK78+zDcN5e0LZpyFmfh4sOCTBhZiJ1T8VORETqhN3
  2010. "text/plain": [
  2011. "<Figure size 640x480 with 1 Axes>"
  2012. ]
  2013. },
  2014. "metadata": {},
  2015. "output_type": "display_data"
  2016. }
  2017. ],
  2018. "source": [
  2019. "fig = plt.figure()\n",
  2020. "# ax = fig.gca()\n",
  2021. "Ncount_mean.plot.errorbar()\n",
  2022. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  2023. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  2024. "plt.tight_layout()\n",
  2025. "# plt.grid(visible=1)\n",
  2026. "plt.show()"
  2027. ]
  2028. },
  2029. {
  2030. "cell_type": "code",
  2031. "execution_count": 27,
  2032. "metadata": {},
  2033. "outputs": [
  2034. {
  2035. "data": {
  2036. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWX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9+ZxvOTnuzN4ecGlCeEM7tSMQZ2akRQb1qAveBDzqdiJiIjUIsMw2Jtz8sKHlN25bDlcwJlLyoU1OXnhw5DOzRjQoRmRwf7mhRWPo2InIiLyK5VVOvgmLf9Umcsjq7DqhQ8dYkJOnmLt2IwerSLw1YUPUkdU7ERERGrAVlbJ7mwbO48UsfNIEalHrezNLqbC4XTtE+DrTd92UQzp1IyBHZuREKkLH6R+qNiJiIicw+mlNHYetZKaVcTOoycfh4+VnHP/FpafL3y4ol207oYgplCxExGRRs/ucHIg/8TJo3BHi1y/Fpxxh4czxVqakBQbRlKLMLq0CKNzbBgtI89eeF+kvqnYiYhIo3Ki3M7u7KIqJW53to1yu/OsfX28vWjXNJguLSyuItc5NkwXPIjbUrETERGPZBgGebZyUs84ArfrSBEHj53gXPdcCvb3ofOp8na6xHWICaWJn06pSsOhYiciIg2ew2lwMP+E6whc6hEru44WkV987lOpMWEBrvKWFGshqUUYrSKD8PbWqVRp2FTsRETErZRVOigsqeR4SQXHSyqwllRy/NTX1tJKjp+o4HhJJYUlFRSWnvq1pBK78+zDcN5e0LZpyFmfh4sOCTBhZiJ1T8VORETqhN3
  2037. "text/plain": [
  2038. "<Figure size 640x480 with 1 Axes>"
  2039. ]
  2040. },
  2041. "metadata": {},
  2042. "output_type": "display_data"
  2043. }
  2044. ],
  2045. "source": [
  2046. "data = Ncount_mean\n",
  2047. "data_std = Ncount_std\n",
  2048. "fig = plt.figure()\n",
  2049. "# ax = fig.gca()\n",
  2050. "data.plot.errorbar()\n",
  2051. "# plt.xlabel('MOT AOM Frequency (MHz)')\n",
  2052. "# plt.ylabel('MOT Gradient Coil Current (A)')\n",
  2053. "plt.tight_layout()\n",
  2054. "# plt.grid(visible=1)\n",
  2055. "plt.show()"
  2056. ]
  2057. },
  2058. {
  2059. "cell_type": "code",
  2060. "execution_count": 28,
  2061. "metadata": {},
  2062. "outputs": [],
  2063. "source": [
  2064. "data = data * factor_from_Ncounts_to_Natom()\n",
  2065. "data_std = data_std * factor_from_Ncounts_to_Natom()"
  2066. ]
  2067. },
  2068. {
  2069. "cell_type": "code",
  2070. "execution_count": 29,
  2071. "metadata": {},
  2072. "outputs": [
  2073. {
  2074. "data": {
  2075. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAnYAAAHWCAYAAAD6oMSKAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAA9hAAAPYQGoP6dpAABZC0lEQVR4nO3deVxU9f7H8dewiLKJiikIbrkkri1mlrjlvmVoWlpqeb1p3RKt7s26XjVbbt5SKTOtm9Y1zRLRW6alpahZZpvlkjc1FcQVFdkUh+H8/pgfkwgoKDMHZt7Px4MHzHe+c87nAwbvvmfOORbDMAxEREREpMLzMrsAERERESkbCnYiIiIibkLBTkRERMRNKNiJiIiIuAkFOxERERE3oWAnIiIi4iYU7ERERETchIKdiIiIiJtQsBMRERFxEx4X7E6ePEmjRo1ITEws0fy8vDyeffZZIiIiqFq1KrfddhsbN250bpEiIiIiV8Gjgt2WLVto3749+/fvL/Fr5s+fz8qVK/n22285c+YMQ4cOpW/fvpw/f96JlYqIiIiUnscEu/fee49hw4bxwgsvFHruiy++4NZbbyUkJITmzZuzePFix3O//voreXl55OXlYRgGXl5e+Pv7u7J0ERERkRKxGIZhmF2EKxw7dozQ0FB8fHywWCxs2LCBzp078/PPP9O+fXvef/997rrrLr799lvuuusu3n//fXr27Mnu3bvp3bs3SUlJeHt7U6VKFT799FM6duxodksiIiIiBXjMil3t2rXx8fEpND5//nzuuusuYmJi8Pb25vbbb2fMmDHMmTMHgAsXLtC5c2f27NlDRkYGf/3rXxk8eDDHjh1zdQsiIiIil+Uxwa44Bw8eZMWKFYSEhDg+Xn/9dZKTkwF44IEH6N27N02bNqVKlSpMnjyZqlWrsmzZMpMrFxERESmo8BKWh4mIiGDUqFHMmzfPMXb06FHyj1AnJSWRk5NT4DW+vr5UqlTJpXWKiIiIXInHr9iNHj2aJUuWsHbtWvLy8ti7dy8dO3bklVdeAWDAgAE8//zz/P7771itVuLi4jh69Cj9+vUzuXIRERGRgjw+2LVr144PPviAZ555hmrVqtGpUycGDBjAP//5TwDefPNN+vTpQ8eOHbnuuutISEhg7dq11KlTx+TKRURERArymLNiRURERNydx6/YiYiIiLgLBTsRERERN+H2Z8Xm5eVx5MgRgoKCsFgsZpcjIiIiUiqGYZCRkUF4eDheXpdfk3P7YHfkyBEiIyPNLkNERETkmiQnJxMREXHZOW4f7IKCggD7NyM4ONgp+7Baraxdu5YePXrg6+vrlH2UZ+pf/at/9a/+1b/6d17/6enpREZGOjLN5bh9sMs//BocHOzUYOfv709wcLDH/sNW/+pf/at/9a/+PY2r+y/JW8p08oSIiIiIm1CwExEREXETCnYiIiIibkLBTkRERMRNKNiJiIiIuAlTg93Jkydp1KgRiYmJxc6ZN28eTZs2JSgoiCZNmjB37lzXFSgiIiJSgZh2uZMtW7YwcuRI9u/fX+yclStXMmnSJNasWUO7du3YunUrffr0oVatWgwaNMiF1YqIiIiUf6as2L333nsMGzaMF1544bLzjhw5wtNPP81tt92GxWKhffv2dOnShU2bNrmoUhEREZGKw5QVu549ezJ8+HB8fHy49957i533yCOPFHh84sQJNm3axMyZM4t9TU5ODjk5OY7H6enpgP0iglar9RorL1r+dp21/fJO/av/iz97GvWv/i/+7GnUv2v6L832LYZhGE6s5coFWCxs2LCBzp07X3besWPH6Nu3L6GhoXz66af4+BSdSadOncq0adMKjS9ZsgR/f/+yKFlERETEZbKzsxk2bBhnz5694l20KkSw27p1K/fccw/R0dEsXLgQPz+/YucWtWIXGRlJamqqU28ptm7dOrp37+6xt1RR/+pf/at/9a/+PY2r+k9PTyc0NLREwa7c3yt2wYIFPPbYYzz33HM88cQTV5zv5+dXZPDz9fV1+j86V+yjPFP/6l/9q39Ppf7VvzP7L822y3WwW758OePGjePjjz+mZ8+eZpcjIiIiUq6VuwsUBwYGsnjxYgCmTZt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obxe7kJcw4x75ZaEgp2IiJSY2Stm5enkhfL6h108m4KdiIiUmNkrZjp54Q8BAfYVUsNAwVIcFOxERKTEysOKWf7JC3XqFBzXyQsiukCxiIiUQv6K2eDB9hB38UkUrlwxi4mBu+5y/Z0nRMo7BTsRESmV/BWzou78MHu261bMvL11P1aRSynYiYhIqeWvmG3YkMuaNdvp3bsNXbr4aMVMxGQKdiIiUmp5Rh47Tv5Cp07NycpKoVOn1gp1IuWAgp2IiJRI5oVM1u1fxye/fcKnez/lRNYJfv/L72aXJSIXUbATEZFiHc04SsKvCazau4r1B9ZzwXbB8VywXzB7Tu0xsToRuZSCnYiIOOQZeeTk5lDFtwoAGw9t5C9r/uJ4/vpq19O/SX/6N+1PdN1oyIPVv642q1wRuYSCnYiIh7ParGw8tJGEXxNYsWcFf2n7F57t+CwAvRr1olO9TvRp3If+TfpzQ+gNWC66iJ01z2pW2SJSBAU7EREPdD73POv2ryNhTwIf/+9jTp877Xhu/cH1jmAXUjmExFGJJlUpIqWlYCci4mFseTYaxjXkaOYfN3QN9Q9lYNOBDIoaRNcGXU2sTkSuhYKdiIgby7qQxarfVrE5aTNz+swBwNvLmw51O/B18tfENIthULNB3FH3Dny89CdBpKLTf8UiIm4mJzeHz/d/zgc7P+Dj/31MtjUbgEfbPkqzms0AeKv/WwT7BeNl0S3DRdyJgp2IyFXKyoLAQF/gLs6csRISYm49Px/7mbhv40j4NYGzOWcd4w2rNeTe5vcS7BfsGAupHGJChSLibAp2IiIVVJ6Rx/nc8/j7+gOQnJ7Mwu0LAQgPCmd
  2076. "text/plain": [
  2077. "<Figure size 640x480 with 1 Axes>"
  2078. ]
  2079. },
  2080. "metadata": {},
  2081. "output_type": "display_data"
  2082. }
  2083. ],
  2084. "source": [
  2085. "fitModel = NewFitModel(mot_loading)\n",
  2086. "fitAnalyser = FitAnalyser(fitModel, fitDim=1)\n",
  2087. "\n",
  2088. "params = fitAnalyser.fitModel.make_params()\n",
  2089. "params.add(name=\"A\", value=1e8, max=np.inf, min=-np.inf, vary=True)\n",
  2090. "params.add(name=\"tau\", value=1, max=np.inf, min=-np.inf, vary=True)\n",
  2091. "\n",
  2092. "fitResult = fitAnalyser.fit(data, params, x='mot_load_duration').load()\n",
  2093. "freqdata = np.linspace(0, 10, 500)\n",
  2094. "fitCurve = fitAnalyser.eval(fitResult, x=freqdata, dask=\"parallelized\").load()\n",
  2095. "fitCurve = fitCurve.assign_coords({'x':np.array(freqdata)})\n",
  2096. "\n",
  2097. "fig = plt.figure()\n",
  2098. "ax = fig.gca()\n",
  2099. "\n",
  2100. "data.plot.errorbar(ax=ax, yerr = data_std, fmt='ob')\n",
  2101. "fitCurve.plot.errorbar(ax=ax, fmt='--g')\n",
  2102. "plt.xlabel('Push AOM Freq (MHz)')\n",
  2103. "plt.ylabel('NCount')\n",
  2104. "plt.tight_layout()\n",
  2105. "plt.grid(visible=1)\n",
  2106. "plt.show()"
  2107. ]
  2108. },
  2109. {
  2110. "cell_type": "code",
  2111. "execution_count": 30,
  2112. "metadata": {},
  2113. "outputs": [
  2114. {
  2115. "data": {
  2116. "text/html": [
  2117. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2118. "<defs>\n",
  2119. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2120. "<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",
  2121. "<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",
  2122. "<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",
  2123. "</symbol>\n",
  2124. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2125. "<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",
  2126. "<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",
  2127. "<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",
  2128. "<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",
  2129. "</symbol>\n",
  2130. "</defs>\n",
  2131. "</svg>\n",
  2132. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2133. " *\n",
  2134. " */\n",
  2135. "\n",
  2136. ":root {\n",
  2137. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2138. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2139. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2140. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2141. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2142. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2143. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2144. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2145. "}\n",
  2146. "\n",
  2147. "html[theme=dark],\n",
  2148. "body[data-theme=dark],\n",
  2149. "body.vscode-dark {\n",
  2150. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2151. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2152. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2153. " --xr-border-color: #1F1F1F;\n",
  2154. " --xr-disabled-color: #515151;\n",
  2155. " --xr-background-color: #111111;\n",
  2156. " --xr-background-color-row-even: #111111;\n",
  2157. " --xr-background-color-row-odd: #313131;\n",
  2158. "}\n",
  2159. "\n",
  2160. ".xr-wrap {\n",
  2161. " display: block !important;\n",
  2162. " min-width: 300px;\n",
  2163. " max-width: 700px;\n",
  2164. "}\n",
  2165. "\n",
  2166. ".xr-text-repr-fallback {\n",
  2167. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2168. " display: none;\n",
  2169. "}\n",
  2170. "\n",
  2171. ".xr-header {\n",
  2172. " padding-top: 6px;\n",
  2173. " padding-bottom: 6px;\n",
  2174. " margin-bottom: 4px;\n",
  2175. " border-bottom: solid 1px var(--xr-border-color);\n",
  2176. "}\n",
  2177. "\n",
  2178. ".xr-header > div,\n",
  2179. ".xr-header > ul {\n",
  2180. " display: inline;\n",
  2181. " margin-top: 0;\n",
  2182. " margin-bottom: 0;\n",
  2183. "}\n",
  2184. "\n",
  2185. ".xr-obj-type,\n",
  2186. ".xr-array-name {\n",
  2187. " margin-left: 2px;\n",
  2188. " margin-right: 10px;\n",
  2189. "}\n",
  2190. "\n",
  2191. ".xr-obj-type {\n",
  2192. " color: var(--xr-font-color2);\n",
  2193. "}\n",
  2194. "\n",
  2195. ".xr-sections {\n",
  2196. " padding-left: 0 !important;\n",
  2197. " display: grid;\n",
  2198. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  2199. "}\n",
  2200. "\n",
  2201. ".xr-section-item {\n",
  2202. " display: contents;\n",
  2203. "}\n",
  2204. "\n",
  2205. ".xr-section-item input {\n",
  2206. " display: none;\n",
  2207. "}\n",
  2208. "\n",
  2209. ".xr-section-item input + label {\n",
  2210. " color: var(--xr-disabled-color);\n",
  2211. "}\n",
  2212. "\n",
  2213. ".xr-section-item input:enabled + label {\n",
  2214. " cursor: pointer;\n",
  2215. " color: var(--xr-font-color2);\n",
  2216. "}\n",
  2217. "\n",
  2218. ".xr-section-item input:enabled + label:hover {\n",
  2219. " color: var(--xr-font-color0);\n",
  2220. "}\n",
  2221. "\n",
  2222. ".xr-section-summary {\n",
  2223. " grid-column: 1;\n",
  2224. " color: var(--xr-font-color2);\n",
  2225. " font-weight: 500;\n",
  2226. "}\n",
  2227. "\n",
  2228. ".xr-section-summary > span {\n",
  2229. " display: inline-block;\n",
  2230. " padding-left: 0.5em;\n",
  2231. "}\n",
  2232. "\n",
  2233. ".xr-section-summary-in:disabled + label {\n",
  2234. " color: var(--xr-font-color2);\n",
  2235. "}\n",
  2236. "\n",
  2237. ".xr-section-summary-in + label:before {\n",
  2238. " display: inline-block;\n",
  2239. " content: 'â–º';\n",
  2240. " font-size: 11px;\n",
  2241. " width: 15px;\n",
  2242. " text-align: center;\n",
  2243. "}\n",
  2244. "\n",
  2245. ".xr-section-summary-in:disabled + label:before {\n",
  2246. " color: var(--xr-disabled-color);\n",
  2247. "}\n",
  2248. "\n",
  2249. ".xr-section-summary-in:checked + label:before {\n",
  2250. " content: 'â–¼';\n",
  2251. "}\n",
  2252. "\n",
  2253. ".xr-section-summary-in:checked + label > span {\n",
  2254. " display: none;\n",
  2255. "}\n",
  2256. "\n",
  2257. ".xr-section-summary,\n",
  2258. ".xr-section-inline-details {\n",
  2259. " padding-top: 4px;\n",
  2260. " padding-bottom: 4px;\n",
  2261. "}\n",
  2262. "\n",
  2263. ".xr-section-inline-details {\n",
  2264. " grid-column: 2 / -1;\n",
  2265. "}\n",
  2266. "\n",
  2267. ".xr-section-details {\n",
  2268. " display: none;\n",
  2269. " grid-column: 1 / -1;\n",
  2270. " margin-bottom: 5px;\n",
  2271. "}\n",
  2272. "\n",
  2273. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  2274. " display: contents;\n",
  2275. "}\n",
  2276. "\n",
  2277. ".xr-array-wrap {\n",
  2278. " grid-column: 1 / -1;\n",
  2279. " display: grid;\n",
  2280. " grid-template-columns: 20px auto;\n",
  2281. "}\n",
  2282. "\n",
  2283. ".xr-array-wrap > label {\n",
  2284. " grid-column: 1;\n",
  2285. " vertical-align: top;\n",
  2286. "}\n",
  2287. "\n",
  2288. ".xr-preview {\n",
  2289. " color: var(--xr-font-color3);\n",
  2290. "}\n",
  2291. "\n",
  2292. ".xr-array-preview,\n",
  2293. ".xr-array-data {\n",
  2294. " padding: 0 5px !important;\n",
  2295. " grid-column: 2;\n",
  2296. "}\n",
  2297. "\n",
  2298. ".xr-array-data,\n",
  2299. ".xr-array-in:checked ~ .xr-array-preview {\n",
  2300. " display: none;\n",
  2301. "}\n",
  2302. "\n",
  2303. ".xr-array-in:checked ~ .xr-array-data,\n",
  2304. ".xr-array-preview {\n",
  2305. " display: inline-block;\n",
  2306. "}\n",
  2307. "\n",
  2308. ".xr-dim-list {\n",
  2309. " display: inline-block !important;\n",
  2310. " list-style: none;\n",
  2311. " padding: 0 !important;\n",
  2312. " margin: 0;\n",
  2313. "}\n",
  2314. "\n",
  2315. ".xr-dim-list li {\n",
  2316. " display: inline-block;\n",
  2317. " padding: 0;\n",
  2318. " margin: 0;\n",
  2319. "}\n",
  2320. "\n",
  2321. ".xr-dim-list:before {\n",
  2322. " content: '(';\n",
  2323. "}\n",
  2324. "\n",
  2325. ".xr-dim-list:after {\n",
  2326. " content: ')';\n",
  2327. "}\n",
  2328. "\n",
  2329. ".xr-dim-list li:not(:last-child):after {\n",
  2330. " content: ',';\n",
  2331. " padding-right: 5px;\n",
  2332. "}\n",
  2333. "\n",
  2334. ".xr-has-index {\n",
  2335. " font-weight: bold;\n",
  2336. "}\n",
  2337. "\n",
  2338. ".xr-var-list,\n",
  2339. ".xr-var-item {\n",
  2340. " display: contents;\n",
  2341. "}\n",
  2342. "\n",
  2343. ".xr-var-item > div,\n",
  2344. ".xr-var-item label,\n",
  2345. ".xr-var-item > .xr-var-name span {\n",
  2346. " background-color: var(--xr-background-color-row-even);\n",
  2347. " margin-bottom: 0;\n",
  2348. "}\n",
  2349. "\n",
  2350. ".xr-var-item > .xr-var-name:hover span {\n",
  2351. " padding-right: 5px;\n",
  2352. "}\n",
  2353. "\n",
  2354. ".xr-var-list > li:nth-child(odd) > div,\n",
  2355. ".xr-var-list > li:nth-child(odd) > label,\n",
  2356. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  2357. " background-color: var(--xr-background-color-row-odd);\n",
  2358. "}\n",
  2359. "\n",
  2360. ".xr-var-name {\n",
  2361. " grid-column: 1;\n",
  2362. "}\n",
  2363. "\n",
  2364. ".xr-var-dims {\n",
  2365. " grid-column: 2;\n",
  2366. "}\n",
  2367. "\n",
  2368. ".xr-var-dtype {\n",
  2369. " grid-column: 3;\n",
  2370. " text-align: right;\n",
  2371. " color: var(--xr-font-color2);\n",
  2372. "}\n",
  2373. "\n",
  2374. ".xr-var-preview {\n",
  2375. " grid-column: 4;\n",
  2376. "}\n",
  2377. "\n",
  2378. ".xr-index-preview {\n",
  2379. " grid-column: 2 / 5;\n",
  2380. " color: var(--xr-font-color2);\n",
  2381. "}\n",
  2382. "\n",
  2383. ".xr-var-name,\n",
  2384. ".xr-var-dims,\n",
  2385. ".xr-var-dtype,\n",
  2386. ".xr-preview,\n",
  2387. ".xr-attrs dt {\n",
  2388. " white-space: nowrap;\n",
  2389. " overflow: hidden;\n",
  2390. " text-overflow: ellipsis;\n",
  2391. " padding-right: 10px;\n",
  2392. "}\n",
  2393. "\n",
  2394. ".xr-var-name:hover,\n",
  2395. ".xr-var-dims:hover,\n",
  2396. ".xr-var-dtype:hover,\n",
  2397. ".xr-attrs dt:hover {\n",
  2398. " overflow: visible;\n",
  2399. " width: auto;\n",
  2400. " z-index: 1;\n",
  2401. "}\n",
  2402. "\n",
  2403. ".xr-var-attrs,\n",
  2404. ".xr-var-data,\n",
  2405. ".xr-index-data {\n",
  2406. " display: none;\n",
  2407. " background-color: var(--xr-background-color) !important;\n",
  2408. " padding-bottom: 5px !important;\n",
  2409. "}\n",
  2410. "\n",
  2411. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  2412. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  2413. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  2414. " display: block;\n",
  2415. "}\n",
  2416. "\n",
  2417. ".xr-var-data > table {\n",
  2418. " float: right;\n",
  2419. "}\n",
  2420. "\n",
  2421. ".xr-var-name span,\n",
  2422. ".xr-var-data,\n",
  2423. ".xr-index-name div,\n",
  2424. ".xr-index-data,\n",
  2425. ".xr-attrs {\n",
  2426. " padding-left: 25px !important;\n",
  2427. "}\n",
  2428. "\n",
  2429. ".xr-attrs,\n",
  2430. ".xr-var-attrs,\n",
  2431. ".xr-var-data,\n",
  2432. ".xr-index-data {\n",
  2433. " grid-column: 1 / -1;\n",
  2434. "}\n",
  2435. "\n",
  2436. "dl.xr-attrs {\n",
  2437. " padding: 0;\n",
  2438. " margin: 0;\n",
  2439. " display: grid;\n",
  2440. " grid-template-columns: 125px auto;\n",
  2441. "}\n",
  2442. "\n",
  2443. ".xr-attrs dt,\n",
  2444. ".xr-attrs dd {\n",
  2445. " padding: 0;\n",
  2446. " margin: 0;\n",
  2447. " float: left;\n",
  2448. " padding-right: 10px;\n",
  2449. " width: auto;\n",
  2450. "}\n",
  2451. "\n",
  2452. ".xr-attrs dt {\n",
  2453. " font-weight: normal;\n",
  2454. " grid-column: 1;\n",
  2455. "}\n",
  2456. "\n",
  2457. ".xr-attrs dt:hover span {\n",
  2458. " display: inline-block;\n",
  2459. " background: var(--xr-background-color);\n",
  2460. " padding-right: 10px;\n",
  2461. "}\n",
  2462. "\n",
  2463. ".xr-attrs dd {\n",
  2464. " grid-column: 2;\n",
  2465. " white-space: pre-wrap;\n",
  2466. " word-break: break-all;\n",
  2467. "}\n",
  2468. "\n",
  2469. ".xr-icon-database,\n",
  2470. ".xr-icon-file-text2,\n",
  2471. ".xr-no-icon {\n",
  2472. " display: inline-block;\n",
  2473. " vertical-align: middle;\n",
  2474. " width: 1em;\n",
  2475. " height: 1.5em !important;\n",
  2476. " stroke-width: 0;\n",
  2477. " stroke: currentColor;\n",
  2478. " fill: currentColor;\n",
  2479. "}\n",
  2480. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  2481. "Dimensions: ()\n",
  2482. "Data variables:\n",
  2483. " A float64 1.193e+08\n",
  2484. " 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>"
  2485. ],
  2486. "text/plain": [
  2487. "<xarray.Dataset>\n",
  2488. "Dimensions: ()\n",
  2489. "Data variables:\n",
  2490. " A float64 1.193e+08\n",
  2491. " tau float64 4.666"
  2492. ]
  2493. },
  2494. "execution_count": 30,
  2495. "metadata": {},
  2496. "output_type": "execute_result"
  2497. }
  2498. ],
  2499. "source": [
  2500. "val = fitAnalyser.get_fit_value(fitResult)\n",
  2501. "val"
  2502. ]
  2503. },
  2504. {
  2505. "cell_type": "code",
  2506. "execution_count": 31,
  2507. "metadata": {},
  2508. "outputs": [
  2509. {
  2510. "data": {
  2511. "text/html": [
  2512. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2513. "<defs>\n",
  2514. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2515. "<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",
  2516. "<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",
  2517. "<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",
  2518. "</symbol>\n",
  2519. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2520. "<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",
  2521. "<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",
  2522. "<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",
  2523. "<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",
  2524. "</symbol>\n",
  2525. "</defs>\n",
  2526. "</svg>\n",
  2527. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2528. " *\n",
  2529. " */\n",
  2530. "\n",
  2531. ":root {\n",
  2532. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2533. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2534. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2535. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2536. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2537. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2538. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2539. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2540. "}\n",
  2541. "\n",
  2542. "html[theme=dark],\n",
  2543. "body[data-theme=dark],\n",
  2544. "body.vscode-dark {\n",
  2545. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2546. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2547. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2548. " --xr-border-color: #1F1F1F;\n",
  2549. " --xr-disabled-color: #515151;\n",
  2550. " --xr-background-color: #111111;\n",
  2551. " --xr-background-color-row-even: #111111;\n",
  2552. " --xr-background-color-row-odd: #313131;\n",
  2553. "}\n",
  2554. "\n",
  2555. ".xr-wrap {\n",
  2556. " display: block !important;\n",
  2557. " min-width: 300px;\n",
  2558. " max-width: 700px;\n",
  2559. "}\n",
  2560. "\n",
  2561. ".xr-text-repr-fallback {\n",
  2562. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2563. " display: none;\n",
  2564. "}\n",
  2565. "\n",
  2566. ".xr-header {\n",
  2567. " padding-top: 6px;\n",
  2568. " padding-bottom: 6px;\n",
  2569. " margin-bottom: 4px;\n",
  2570. " border-bottom: solid 1px var(--xr-border-color);\n",
  2571. "}\n",
  2572. "\n",
  2573. ".xr-header > div,\n",
  2574. ".xr-header > ul {\n",
  2575. " display: inline;\n",
  2576. " margin-top: 0;\n",
  2577. " margin-bottom: 0;\n",
  2578. "}\n",
  2579. "\n",
  2580. ".xr-obj-type,\n",
  2581. ".xr-array-name {\n",
  2582. " margin-left: 2px;\n",
  2583. " margin-right: 10px;\n",
  2584. "}\n",
  2585. "\n",
  2586. ".xr-obj-type {\n",
  2587. " color: var(--xr-font-color2);\n",
  2588. "}\n",
  2589. "\n",
  2590. ".xr-sections {\n",
  2591. " padding-left: 0 !important;\n",
  2592. " display: grid;\n",
  2593. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  2594. "}\n",
  2595. "\n",
  2596. ".xr-section-item {\n",
  2597. " display: contents;\n",
  2598. "}\n",
  2599. "\n",
  2600. ".xr-section-item input {\n",
  2601. " display: none;\n",
  2602. "}\n",
  2603. "\n",
  2604. ".xr-section-item input + label {\n",
  2605. " color: var(--xr-disabled-color);\n",
  2606. "}\n",
  2607. "\n",
  2608. ".xr-section-item input:enabled + label {\n",
  2609. " cursor: pointer;\n",
  2610. " color: var(--xr-font-color2);\n",
  2611. "}\n",
  2612. "\n",
  2613. ".xr-section-item input:enabled + label:hover {\n",
  2614. " color: var(--xr-font-color0);\n",
  2615. "}\n",
  2616. "\n",
  2617. ".xr-section-summary {\n",
  2618. " grid-column: 1;\n",
  2619. " color: var(--xr-font-color2);\n",
  2620. " font-weight: 500;\n",
  2621. "}\n",
  2622. "\n",
  2623. ".xr-section-summary > span {\n",
  2624. " display: inline-block;\n",
  2625. " padding-left: 0.5em;\n",
  2626. "}\n",
  2627. "\n",
  2628. ".xr-section-summary-in:disabled + label {\n",
  2629. " color: var(--xr-font-color2);\n",
  2630. "}\n",
  2631. "\n",
  2632. ".xr-section-summary-in + label:before {\n",
  2633. " display: inline-block;\n",
  2634. " content: 'â–º';\n",
  2635. " font-size: 11px;\n",
  2636. " width: 15px;\n",
  2637. " text-align: center;\n",
  2638. "}\n",
  2639. "\n",
  2640. ".xr-section-summary-in:disabled + label:before {\n",
  2641. " color: var(--xr-disabled-color);\n",
  2642. "}\n",
  2643. "\n",
  2644. ".xr-section-summary-in:checked + label:before {\n",
  2645. " content: 'â–¼';\n",
  2646. "}\n",
  2647. "\n",
  2648. ".xr-section-summary-in:checked + label > span {\n",
  2649. " display: none;\n",
  2650. "}\n",
  2651. "\n",
  2652. ".xr-section-summary,\n",
  2653. ".xr-section-inline-details {\n",
  2654. " padding-top: 4px;\n",
  2655. " padding-bottom: 4px;\n",
  2656. "}\n",
  2657. "\n",
  2658. ".xr-section-inline-details {\n",
  2659. " grid-column: 2 / -1;\n",
  2660. "}\n",
  2661. "\n",
  2662. ".xr-section-details {\n",
  2663. " display: none;\n",
  2664. " grid-column: 1 / -1;\n",
  2665. " margin-bottom: 5px;\n",
  2666. "}\n",
  2667. "\n",
  2668. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  2669. " display: contents;\n",
  2670. "}\n",
  2671. "\n",
  2672. ".xr-array-wrap {\n",
  2673. " grid-column: 1 / -1;\n",
  2674. " display: grid;\n",
  2675. " grid-template-columns: 20px auto;\n",
  2676. "}\n",
  2677. "\n",
  2678. ".xr-array-wrap > label {\n",
  2679. " grid-column: 1;\n",
  2680. " vertical-align: top;\n",
  2681. "}\n",
  2682. "\n",
  2683. ".xr-preview {\n",
  2684. " color: var(--xr-font-color3);\n",
  2685. "}\n",
  2686. "\n",
  2687. ".xr-array-preview,\n",
  2688. ".xr-array-data {\n",
  2689. " padding: 0 5px !important;\n",
  2690. " grid-column: 2;\n",
  2691. "}\n",
  2692. "\n",
  2693. ".xr-array-data,\n",
  2694. ".xr-array-in:checked ~ .xr-array-preview {\n",
  2695. " display: none;\n",
  2696. "}\n",
  2697. "\n",
  2698. ".xr-array-in:checked ~ .xr-array-data,\n",
  2699. ".xr-array-preview {\n",
  2700. " display: inline-block;\n",
  2701. "}\n",
  2702. "\n",
  2703. ".xr-dim-list {\n",
  2704. " display: inline-block !important;\n",
  2705. " list-style: none;\n",
  2706. " padding: 0 !important;\n",
  2707. " margin: 0;\n",
  2708. "}\n",
  2709. "\n",
  2710. ".xr-dim-list li {\n",
  2711. " display: inline-block;\n",
  2712. " padding: 0;\n",
  2713. " margin: 0;\n",
  2714. "}\n",
  2715. "\n",
  2716. ".xr-dim-list:before {\n",
  2717. " content: '(';\n",
  2718. "}\n",
  2719. "\n",
  2720. ".xr-dim-list:after {\n",
  2721. " content: ')';\n",
  2722. "}\n",
  2723. "\n",
  2724. ".xr-dim-list li:not(:last-child):after {\n",
  2725. " content: ',';\n",
  2726. " padding-right: 5px;\n",
  2727. "}\n",
  2728. "\n",
  2729. ".xr-has-index {\n",
  2730. " font-weight: bold;\n",
  2731. "}\n",
  2732. "\n",
  2733. ".xr-var-list,\n",
  2734. ".xr-var-item {\n",
  2735. " display: contents;\n",
  2736. "}\n",
  2737. "\n",
  2738. ".xr-var-item > div,\n",
  2739. ".xr-var-item label,\n",
  2740. ".xr-var-item > .xr-var-name span {\n",
  2741. " background-color: var(--xr-background-color-row-even);\n",
  2742. " margin-bottom: 0;\n",
  2743. "}\n",
  2744. "\n",
  2745. ".xr-var-item > .xr-var-name:hover span {\n",
  2746. " padding-right: 5px;\n",
  2747. "}\n",
  2748. "\n",
  2749. ".xr-var-list > li:nth-child(odd) > div,\n",
  2750. ".xr-var-list > li:nth-child(odd) > label,\n",
  2751. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  2752. " background-color: var(--xr-background-color-row-odd);\n",
  2753. "}\n",
  2754. "\n",
  2755. ".xr-var-name {\n",
  2756. " grid-column: 1;\n",
  2757. "}\n",
  2758. "\n",
  2759. ".xr-var-dims {\n",
  2760. " grid-column: 2;\n",
  2761. "}\n",
  2762. "\n",
  2763. ".xr-var-dtype {\n",
  2764. " grid-column: 3;\n",
  2765. " text-align: right;\n",
  2766. " color: var(--xr-font-color2);\n",
  2767. "}\n",
  2768. "\n",
  2769. ".xr-var-preview {\n",
  2770. " grid-column: 4;\n",
  2771. "}\n",
  2772. "\n",
  2773. ".xr-index-preview {\n",
  2774. " grid-column: 2 / 5;\n",
  2775. " color: var(--xr-font-color2);\n",
  2776. "}\n",
  2777. "\n",
  2778. ".xr-var-name,\n",
  2779. ".xr-var-dims,\n",
  2780. ".xr-var-dtype,\n",
  2781. ".xr-preview,\n",
  2782. ".xr-attrs dt {\n",
  2783. " white-space: nowrap;\n",
  2784. " overflow: hidden;\n",
  2785. " text-overflow: ellipsis;\n",
  2786. " padding-right: 10px;\n",
  2787. "}\n",
  2788. "\n",
  2789. ".xr-var-name:hover,\n",
  2790. ".xr-var-dims:hover,\n",
  2791. ".xr-var-dtype:hover,\n",
  2792. ".xr-attrs dt:hover {\n",
  2793. " overflow: visible;\n",
  2794. " width: auto;\n",
  2795. " z-index: 1;\n",
  2796. "}\n",
  2797. "\n",
  2798. ".xr-var-attrs,\n",
  2799. ".xr-var-data,\n",
  2800. ".xr-index-data {\n",
  2801. " display: none;\n",
  2802. " background-color: var(--xr-background-color) !important;\n",
  2803. " padding-bottom: 5px !important;\n",
  2804. "}\n",
  2805. "\n",
  2806. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  2807. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  2808. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  2809. " display: block;\n",
  2810. "}\n",
  2811. "\n",
  2812. ".xr-var-data > table {\n",
  2813. " float: right;\n",
  2814. "}\n",
  2815. "\n",
  2816. ".xr-var-name span,\n",
  2817. ".xr-var-data,\n",
  2818. ".xr-index-name div,\n",
  2819. ".xr-index-data,\n",
  2820. ".xr-attrs {\n",
  2821. " padding-left: 25px !important;\n",
  2822. "}\n",
  2823. "\n",
  2824. ".xr-attrs,\n",
  2825. ".xr-var-attrs,\n",
  2826. ".xr-var-data,\n",
  2827. ".xr-index-data {\n",
  2828. " grid-column: 1 / -1;\n",
  2829. "}\n",
  2830. "\n",
  2831. "dl.xr-attrs {\n",
  2832. " padding: 0;\n",
  2833. " margin: 0;\n",
  2834. " display: grid;\n",
  2835. " grid-template-columns: 125px auto;\n",
  2836. "}\n",
  2837. "\n",
  2838. ".xr-attrs dt,\n",
  2839. ".xr-attrs dd {\n",
  2840. " padding: 0;\n",
  2841. " margin: 0;\n",
  2842. " float: left;\n",
  2843. " padding-right: 10px;\n",
  2844. " width: auto;\n",
  2845. "}\n",
  2846. "\n",
  2847. ".xr-attrs dt {\n",
  2848. " font-weight: normal;\n",
  2849. " grid-column: 1;\n",
  2850. "}\n",
  2851. "\n",
  2852. ".xr-attrs dt:hover span {\n",
  2853. " display: inline-block;\n",
  2854. " background: var(--xr-background-color);\n",
  2855. " padding-right: 10px;\n",
  2856. "}\n",
  2857. "\n",
  2858. ".xr-attrs dd {\n",
  2859. " grid-column: 2;\n",
  2860. " white-space: pre-wrap;\n",
  2861. " word-break: break-all;\n",
  2862. "}\n",
  2863. "\n",
  2864. ".xr-icon-database,\n",
  2865. ".xr-icon-file-text2,\n",
  2866. ".xr-no-icon {\n",
  2867. " display: inline-block;\n",
  2868. " vertical-align: middle;\n",
  2869. " width: 1em;\n",
  2870. " height: 1.5em !important;\n",
  2871. " stroke-width: 0;\n",
  2872. " stroke: currentColor;\n",
  2873. " fill: currentColor;\n",
  2874. "}\n",
  2875. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt;\n",
  2876. "Dimensions: ()\n",
  2877. "Data variables:\n",
  2878. " A float64 1.591e+06\n",
  2879. " 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>"
  2880. ],
  2881. "text/plain": [
  2882. "<xarray.Dataset>\n",
  2883. "Dimensions: ()\n",
  2884. "Data variables:\n",
  2885. " A float64 1.591e+06\n",
  2886. " tau float64 0.1586"
  2887. ]
  2888. },
  2889. "execution_count": 31,
  2890. "metadata": {},
  2891. "output_type": "execute_result"
  2892. }
  2893. ],
  2894. "source": [
  2895. "std = fitAnalyser.get_fit_std(fitResult)\n",
  2896. "std"
  2897. ]
  2898. },
  2899. {
  2900. "cell_type": "code",
  2901. "execution_count": 32,
  2902. "metadata": {},
  2903. "outputs": [
  2904. {
  2905. "data": {
  2906. "text/html": [
  2907. "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
  2908. "<defs>\n",
  2909. "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
  2910. "<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",
  2911. "<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",
  2912. "<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",
  2913. "</symbol>\n",
  2914. "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
  2915. "<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",
  2916. "<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",
  2917. "<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",
  2918. "<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",
  2919. "</symbol>\n",
  2920. "</defs>\n",
  2921. "</svg>\n",
  2922. "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
  2923. " *\n",
  2924. " */\n",
  2925. "\n",
  2926. ":root {\n",
  2927. " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
  2928. " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
  2929. " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
  2930. " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
  2931. " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
  2932. " --xr-background-color: var(--jp-layout-color0, white);\n",
  2933. " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
  2934. " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
  2935. "}\n",
  2936. "\n",
  2937. "html[theme=dark],\n",
  2938. "body[data-theme=dark],\n",
  2939. "body.vscode-dark {\n",
  2940. " --xr-font-color0: rgba(255, 255, 255, 1);\n",
  2941. " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
  2942. " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
  2943. " --xr-border-color: #1F1F1F;\n",
  2944. " --xr-disabled-color: #515151;\n",
  2945. " --xr-background-color: #111111;\n",
  2946. " --xr-background-color-row-even: #111111;\n",
  2947. " --xr-background-color-row-odd: #313131;\n",
  2948. "}\n",
  2949. "\n",
  2950. ".xr-wrap {\n",
  2951. " display: block !important;\n",
  2952. " min-width: 300px;\n",
  2953. " max-width: 700px;\n",
  2954. "}\n",
  2955. "\n",
  2956. ".xr-text-repr-fallback {\n",
  2957. " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
  2958. " display: none;\n",
  2959. "}\n",
  2960. "\n",
  2961. ".xr-header {\n",
  2962. " padding-top: 6px;\n",
  2963. " padding-bottom: 6px;\n",
  2964. " margin-bottom: 4px;\n",
  2965. " border-bottom: solid 1px var(--xr-border-color);\n",
  2966. "}\n",
  2967. "\n",
  2968. ".xr-header > div,\n",
  2969. ".xr-header > ul {\n",
  2970. " display: inline;\n",
  2971. " margin-top: 0;\n",
  2972. " margin-bottom: 0;\n",
  2973. "}\n",
  2974. "\n",
  2975. ".xr-obj-type,\n",
  2976. ".xr-array-name {\n",
  2977. " margin-left: 2px;\n",
  2978. " margin-right: 10px;\n",
  2979. "}\n",
  2980. "\n",
  2981. ".xr-obj-type {\n",
  2982. " color: var(--xr-font-color2);\n",
  2983. "}\n",
  2984. "\n",
  2985. ".xr-sections {\n",
  2986. " padding-left: 0 !important;\n",
  2987. " display: grid;\n",
  2988. " grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
  2989. "}\n",
  2990. "\n",
  2991. ".xr-section-item {\n",
  2992. " display: contents;\n",
  2993. "}\n",
  2994. "\n",
  2995. ".xr-section-item input {\n",
  2996. " display: none;\n",
  2997. "}\n",
  2998. "\n",
  2999. ".xr-section-item input + label {\n",
  3000. " color: var(--xr-disabled-color);\n",
  3001. "}\n",
  3002. "\n",
  3003. ".xr-section-item input:enabled + label {\n",
  3004. " cursor: pointer;\n",
  3005. " color: var(--xr-font-color2);\n",
  3006. "}\n",
  3007. "\n",
  3008. ".xr-section-item input:enabled + label:hover {\n",
  3009. " color: var(--xr-font-color0);\n",
  3010. "}\n",
  3011. "\n",
  3012. ".xr-section-summary {\n",
  3013. " grid-column: 1;\n",
  3014. " color: var(--xr-font-color2);\n",
  3015. " font-weight: 500;\n",
  3016. "}\n",
  3017. "\n",
  3018. ".xr-section-summary > span {\n",
  3019. " display: inline-block;\n",
  3020. " padding-left: 0.5em;\n",
  3021. "}\n",
  3022. "\n",
  3023. ".xr-section-summary-in:disabled + label {\n",
  3024. " color: var(--xr-font-color2);\n",
  3025. "}\n",
  3026. "\n",
  3027. ".xr-section-summary-in + label:before {\n",
  3028. " display: inline-block;\n",
  3029. " content: 'â–º';\n",
  3030. " font-size: 11px;\n",
  3031. " width: 15px;\n",
  3032. " text-align: center;\n",
  3033. "}\n",
  3034. "\n",
  3035. ".xr-section-summary-in:disabled + label:before {\n",
  3036. " color: var(--xr-disabled-color);\n",
  3037. "}\n",
  3038. "\n",
  3039. ".xr-section-summary-in:checked + label:before {\n",
  3040. " content: 'â–¼';\n",
  3041. "}\n",
  3042. "\n",
  3043. ".xr-section-summary-in:checked + label > span {\n",
  3044. " display: none;\n",
  3045. "}\n",
  3046. "\n",
  3047. ".xr-section-summary,\n",
  3048. ".xr-section-inline-details {\n",
  3049. " padding-top: 4px;\n",
  3050. " padding-bottom: 4px;\n",
  3051. "}\n",
  3052. "\n",
  3053. ".xr-section-inline-details {\n",
  3054. " grid-column: 2 / -1;\n",
  3055. "}\n",
  3056. "\n",
  3057. ".xr-section-details {\n",
  3058. " display: none;\n",
  3059. " grid-column: 1 / -1;\n",
  3060. " margin-bottom: 5px;\n",
  3061. "}\n",
  3062. "\n",
  3063. ".xr-section-summary-in:checked ~ .xr-section-details {\n",
  3064. " display: contents;\n",
  3065. "}\n",
  3066. "\n",
  3067. ".xr-array-wrap {\n",
  3068. " grid-column: 1 / -1;\n",
  3069. " display: grid;\n",
  3070. " grid-template-columns: 20px auto;\n",
  3071. "}\n",
  3072. "\n",
  3073. ".xr-array-wrap > label {\n",
  3074. " grid-column: 1;\n",
  3075. " vertical-align: top;\n",
  3076. "}\n",
  3077. "\n",
  3078. ".xr-preview {\n",
  3079. " color: var(--xr-font-color3);\n",
  3080. "}\n",
  3081. "\n",
  3082. ".xr-array-preview,\n",
  3083. ".xr-array-data {\n",
  3084. " padding: 0 5px !important;\n",
  3085. " grid-column: 2;\n",
  3086. "}\n",
  3087. "\n",
  3088. ".xr-array-data,\n",
  3089. ".xr-array-in:checked ~ .xr-array-preview {\n",
  3090. " display: none;\n",
  3091. "}\n",
  3092. "\n",
  3093. ".xr-array-in:checked ~ .xr-array-data,\n",
  3094. ".xr-array-preview {\n",
  3095. " display: inline-block;\n",
  3096. "}\n",
  3097. "\n",
  3098. ".xr-dim-list {\n",
  3099. " display: inline-block !important;\n",
  3100. " list-style: none;\n",
  3101. " padding: 0 !important;\n",
  3102. " margin: 0;\n",
  3103. "}\n",
  3104. "\n",
  3105. ".xr-dim-list li {\n",
  3106. " display: inline-block;\n",
  3107. " padding: 0;\n",
  3108. " margin: 0;\n",
  3109. "}\n",
  3110. "\n",
  3111. ".xr-dim-list:before {\n",
  3112. " content: '(';\n",
  3113. "}\n",
  3114. "\n",
  3115. ".xr-dim-list:after {\n",
  3116. " content: ')';\n",
  3117. "}\n",
  3118. "\n",
  3119. ".xr-dim-list li:not(:last-child):after {\n",
  3120. " content: ',';\n",
  3121. " padding-right: 5px;\n",
  3122. "}\n",
  3123. "\n",
  3124. ".xr-has-index {\n",
  3125. " font-weight: bold;\n",
  3126. "}\n",
  3127. "\n",
  3128. ".xr-var-list,\n",
  3129. ".xr-var-item {\n",
  3130. " display: contents;\n",
  3131. "}\n",
  3132. "\n",
  3133. ".xr-var-item > div,\n",
  3134. ".xr-var-item label,\n",
  3135. ".xr-var-item > .xr-var-name span {\n",
  3136. " background-color: var(--xr-background-color-row-even);\n",
  3137. " margin-bottom: 0;\n",
  3138. "}\n",
  3139. "\n",
  3140. ".xr-var-item > .xr-var-name:hover span {\n",
  3141. " padding-right: 5px;\n",
  3142. "}\n",
  3143. "\n",
  3144. ".xr-var-list > li:nth-child(odd) > div,\n",
  3145. ".xr-var-list > li:nth-child(odd) > label,\n",
  3146. ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
  3147. " background-color: var(--xr-background-color-row-odd);\n",
  3148. "}\n",
  3149. "\n",
  3150. ".xr-var-name {\n",
  3151. " grid-column: 1;\n",
  3152. "}\n",
  3153. "\n",
  3154. ".xr-var-dims {\n",
  3155. " grid-column: 2;\n",
  3156. "}\n",
  3157. "\n",
  3158. ".xr-var-dtype {\n",
  3159. " grid-column: 3;\n",
  3160. " text-align: right;\n",
  3161. " color: var(--xr-font-color2);\n",
  3162. "}\n",
  3163. "\n",
  3164. ".xr-var-preview {\n",
  3165. " grid-column: 4;\n",
  3166. "}\n",
  3167. "\n",
  3168. ".xr-index-preview {\n",
  3169. " grid-column: 2 / 5;\n",
  3170. " color: var(--xr-font-color2);\n",
  3171. "}\n",
  3172. "\n",
  3173. ".xr-var-name,\n",
  3174. ".xr-var-dims,\n",
  3175. ".xr-var-dtype,\n",
  3176. ".xr-preview,\n",
  3177. ".xr-attrs dt {\n",
  3178. " white-space: nowrap;\n",
  3179. " overflow: hidden;\n",
  3180. " text-overflow: ellipsis;\n",
  3181. " padding-right: 10px;\n",
  3182. "}\n",
  3183. "\n",
  3184. ".xr-var-name:hover,\n",
  3185. ".xr-var-dims:hover,\n",
  3186. ".xr-var-dtype:hover,\n",
  3187. ".xr-attrs dt:hover {\n",
  3188. " overflow: visible;\n",
  3189. " width: auto;\n",
  3190. " z-index: 1;\n",
  3191. "}\n",
  3192. "\n",
  3193. ".xr-var-attrs,\n",
  3194. ".xr-var-data,\n",
  3195. ".xr-index-data {\n",
  3196. " display: none;\n",
  3197. " background-color: var(--xr-background-color) !important;\n",
  3198. " padding-bottom: 5px !important;\n",
  3199. "}\n",
  3200. "\n",
  3201. ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
  3202. ".xr-var-data-in:checked ~ .xr-var-data,\n",
  3203. ".xr-index-data-in:checked ~ .xr-index-data {\n",
  3204. " display: block;\n",
  3205. "}\n",
  3206. "\n",
  3207. ".xr-var-data > table {\n",
  3208. " float: right;\n",
  3209. "}\n",
  3210. "\n",
  3211. ".xr-var-name span,\n",
  3212. ".xr-var-data,\n",
  3213. ".xr-index-name div,\n",
  3214. ".xr-index-data,\n",
  3215. ".xr-attrs {\n",
  3216. " padding-left: 25px !important;\n",
  3217. "}\n",
  3218. "\n",
  3219. ".xr-attrs,\n",
  3220. ".xr-var-attrs,\n",
  3221. ".xr-var-data,\n",
  3222. ".xr-index-data {\n",
  3223. " grid-column: 1 / -1;\n",
  3224. "}\n",
  3225. "\n",
  3226. "dl.xr-attrs {\n",
  3227. " padding: 0;\n",
  3228. " margin: 0;\n",
  3229. " display: grid;\n",
  3230. " grid-template-columns: 125px auto;\n",
  3231. "}\n",
  3232. "\n",
  3233. ".xr-attrs dt,\n",
  3234. ".xr-attrs dd {\n",
  3235. " padding: 0;\n",
  3236. " margin: 0;\n",
  3237. " float: left;\n",
  3238. " padding-right: 10px;\n",
  3239. " width: auto;\n",
  3240. "}\n",
  3241. "\n",
  3242. ".xr-attrs dt {\n",
  3243. " font-weight: normal;\n",
  3244. " grid-column: 1;\n",
  3245. "}\n",
  3246. "\n",
  3247. ".xr-attrs dt:hover span {\n",
  3248. " display: inline-block;\n",
  3249. " background: var(--xr-background-color);\n",
  3250. " padding-right: 10px;\n",
  3251. "}\n",
  3252. "\n",
  3253. ".xr-attrs dd {\n",
  3254. " grid-column: 2;\n",
  3255. " white-space: pre-wrap;\n",
  3256. " word-break: break-all;\n",
  3257. "}\n",
  3258. "\n",
  3259. ".xr-icon-database,\n",
  3260. ".xr-icon-file-text2,\n",
  3261. ".xr-no-icon {\n",
  3262. " display: inline-block;\n",
  3263. " vertical-align: middle;\n",
  3264. " width: 1em;\n",
  3265. " height: 1.5em !important;\n",
  3266. " stroke-width: 0;\n",
  3267. " stroke: currentColor;\n",
  3268. " fill: currentColor;\n",
  3269. "}\n",
  3270. "</style><pre class='xr-text-repr-fallback'>&lt;xarray.DataArray ()&gt;\n",
  3271. "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>"
  3272. ],
  3273. "text/plain": [
  3274. "<xarray.DataArray ()>\n",
  3275. "array(0.2556310933363963+/-0.009332131323758952, dtype=object)"
  3276. ]
  3277. },
  3278. "execution_count": 32,
  3279. "metadata": {},
  3280. "output_type": "execute_result"
  3281. }
  3282. ],
  3283. "source": [
  3284. "res = fitAnalyser.get_fit_full_result(fitResult)\n",
  3285. "res.A / res.tau / 1e8"
  3286. ]
  3287. },
  3288. {
  3289. "attachments": {},
  3290. "cell_type": "markdown",
  3291. "metadata": {},
  3292. "source": [
  3293. "# Loading rate"
  3294. ]
  3295. },
  3296. {
  3297. "cell_type": "code",
  3298. "execution_count": 33,
  3299. "metadata": {},
  3300. "outputs": [],
  3301. "source": [
  3302. "img_dir = '//DyLabNAS/Data/'\n",
  3303. "SequenceName = \"Repetition_scan\" + \"/\""
  3304. ]
  3305. },
  3306. {
  3307. "cell_type": "code",
  3308. "execution_count": 34,
  3309. "metadata": {},
  3310. "outputs": [],
  3311. "source": [
  3312. "powers = [150, 200, 250, 300, 350, 400]\n",
  3313. "ncounts_withpush = np.array([5072.7, 9171.8, 16721.7, 23160.8, 27965.0, 32395.8]) * Ncount_to_atoms()\n",
  3314. "ncount_withpush_errors = np.array([80.7, 146.9, 142.1, 514.9, 433.6, 631.2]) * Ncount_to_atoms()\n",
  3315. "\n",
  3316. "ncounts_withoutpush = np.array([629.0, 1567.6, 3063.7, 4426.5, 4755.4, 4920.9]) * Ncount_to_atoms()\n",
  3317. "ncount_withoutpush_errors = np.array([22.9, 53.8, 79.9, 63.7, 191.5, 190.9]) * Ncount_to_atoms()\n",
  3318. "\n",
  3319. "sat_ncount_withpush = np.array([23921.7, 39196.8, 60078.6, 75443.0, 84752.0, 91294.0]) * Ncount_to_atoms()\n",
  3320. "sat_ncount_withpush_errors = np.array([88.3, 138.8, 89.0, 278.0, 210.1, 355.1]) * Ncount_to_atoms()\n",
  3321. "\n",
  3322. "sat_ncount_withoutpush = np.array([4224.1, 9672.3, 17949.6, 24080.9, 25218.2, 26968.5]) * Ncount_to_atoms()\n",
  3323. "sat_ncount_withoutpush_errors = np.array([37.5, 77.2, 105.9, 75.3, 217.6, 265.0]) * Ncount_to_atoms()"
  3324. ]
  3325. },
  3326. {
  3327. "cell_type": "code",
  3328. "execution_count": 36,
  3329. "metadata": {},
  3330. "outputs": [
  3331. {
  3332. "data": {
  3333. "text/plain": [
  3334. "array([[1.50000000e+02, 2.00000000e+02, 2.50000000e+02, 3.00000000e+02,\n",
  3335. " 3.50000000e+02, 4.00000000e+02],\n",
  3336. " [1.26452425e+07, 2.28634918e+07, 4.16839061e+07, 5.77353148e+07,\n",
  3337. " 6.97112396e+07, 8.07563517e+07],\n",
  3338. " [1.26452425e+07, 2.28634918e+07, 4.16839061e+07, 5.77353148e+07,\n",
  3339. " 6.97112396e+07, 8.07563517e+07]])"
  3340. ]
  3341. },
  3342. "execution_count": 36,
  3343. "metadata": {},
  3344. "output_type": "execute_result"
  3345. }
  3346. ],
  3347. "source": [
  3348. "np.array([powers, ncounts_withpush, ncounts_withpush])"
  3349. ]
  3350. },
  3351. {
  3352. "cell_type": "code",
  3353. "execution_count": 37,
  3354. "metadata": {},
  3355. "outputs": [],
  3356. "source": [
  3357. "np.savetxt('loading_rate_withpush.txt', \n",
  3358. " np.array([powers, ncounts_withpush, ncount_withpush_errors]),\n",
  3359. " )"
  3360. ]
  3361. },
  3362. {
  3363. "cell_type": "code",
  3364. "execution_count": 38,
  3365. "metadata": {},
  3366. "outputs": [],
  3367. "source": [
  3368. "np.savetxt('loading_rate_withoutpush.txt', \n",
  3369. " np.array([powers, ncounts_withoutpush, ncount_withoutpush_errors]),\n",
  3370. " )"
  3371. ]
  3372. },
  3373. {
  3374. "cell_type": "code",
  3375. "execution_count": 39,
  3376. "metadata": {},
  3377. "outputs": [],
  3378. "source": [
  3379. "np.savetxt('sat_ncount_withpush.txt', \n",
  3380. " np.array([powers, sat_ncount_withpush, sat_ncount_withpush_errors]),\n",
  3381. " )"
  3382. ]
  3383. },
  3384. {
  3385. "cell_type": "code",
  3386. "execution_count": 40,
  3387. "metadata": {},
  3388. "outputs": [],
  3389. "source": [
  3390. "np.savetxt('sat_ncount_withoutpush.txt', \n",
  3391. " np.array([powers, sat_ncount_withoutpush, sat_ncount_withoutpush_errors]),\n",
  3392. " )"
  3393. ]
  3394. },
  3395. {
  3396. "cell_type": "code",
  3397. "execution_count": 41,
  3398. "metadata": {},
  3399. "outputs": [],
  3400. "source": [
  3401. "np.savetxt('old_loading_rate_withpush.txt', \n",
  3402. " np.array([[430], [1.2157134383410748e8], [0.02622973148346536e8]]),\n",
  3403. " )"
  3404. ]
  3405. },
  3406. {
  3407. "cell_type": "code",
  3408. "execution_count": 42,
  3409. "metadata": {},
  3410. "outputs": [],
  3411. "source": [
  3412. "np.savetxt('old_loading_rate_withoutpush.txt', \n",
  3413. " np.array([[430], [0.2556310933363963e8], [0.009332131323758952e8]]),\n",
  3414. " )"
  3415. ]
  3416. },
  3417. {
  3418. "cell_type": "code",
  3419. "execution_count": 43,
  3420. "metadata": {},
  3421. "outputs": [],
  3422. "source": [
  3423. "np.savetxt('old_sat_ncount_withpush.txt', \n",
  3424. " np.array([[430], [3.54756438e8], [2776453.58029856]]),\n",
  3425. " )"
  3426. ]
  3427. },
  3428. {
  3429. "cell_type": "code",
  3430. "execution_count": 44,
  3431. "metadata": {},
  3432. "outputs": [],
  3433. "source": [
  3434. "np.savetxt('old_sat_ncount_withoutpush.txt', \n",
  3435. " np.array([[430], [1.19289449e8], [1591103.66003124]]),\n",
  3436. " )"
  3437. ]
  3438. },
  3439. {
  3440. "cell_type": "code",
  3441. "execution_count": null,
  3442. "metadata": {},
  3443. "outputs": [],
  3444. "source": [
  3445. "plot_axes.errorbar([430], [1.2157134383410748e8], yerr=[0.02622973148346536e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3446. "plot_axes.errorbar([430], [0.2556310933363963e8], yerr=[0.009332131323758952e8], color='k', marker='*', markersize=15)"
  3447. ]
  3448. },
  3449. {
  3450. "cell_type": "code",
  3451. "execution_count": null,
  3452. "metadata": {},
  3453. "outputs": [],
  3454. "source": [
  3455. "plot_axes.errorbar([430], [3.54756438], yerr=[2776453.58029856/1e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3456. "plot_axes.errorbar([430], [1.19289449], yerr=[1591103.66003124/1e8], color=\"k\", marker='*', markersize=15)"
  3457. ]
  3458. },
  3459. {
  3460. "cell_type": "code",
  3461. "execution_count": null,
  3462. "metadata": {},
  3463. "outputs": [],
  3464. "source": []
  3465. },
  3466. {
  3467. "cell_type": "code",
  3468. "execution_count": 48,
  3469. "metadata": {},
  3470. "outputs": [
  3471. {
  3472. "data": {
  3473. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAvsAAAVGCAYAAAAAcnRrAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAEAAElEQVR4nOzdd5xU1f3/8dcHWJBepFkQpCgtCEZF0CgQiSJgCZZEjaJG/SZqEk0zGhVLEpP8ojFRo8av4jdiYiJWxC5gAYwFsCCKIIiCIB0EhHU/vz/u3d27uzOzs7PT9/18POYxZ+49557P7FI+c+bcc8zdERERERGR4tMo1wGIiIiIiEhmKNkXERERESlSSvZFRERERIqUkn0RERERkSKlZF9EREREpEgp2RcRERERKVJK9kVEREREipSSfRERERGRIqVkX0RERESkSCnZFxEREREpUkr2RURERESKVFqTfTP7i5m5md2ZzutGrt/azD4zs1IzOzQTfYiIiIiIFAtz9/RcyOxo4ElgM9DH3T9Py4Vr9nM2cDewBBjs7lsz0Y+IiIiISKFLy8i+mbUE7gIM+G2mEv3QvcACoBfw2wz2IyIiIiJS0NIysm9mfwB+DnwK9Hb3HfW+aOL+jiH4FuEr4CB3n5/J/kREREREClG9R/bNrAfwk/DlDZlO9AHc/Sngv0Bj4E+Z7k9EREREpBClYxrPlUAJ8AXBFJtsuS18HmVmR2axXxERERGRglCvZN/M9gC+F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whH7V8AuoaH3gCOBo4C3gqP7UWQ8O+b5fCim3D1SKJ+90j5g/SGIiIiIlJYlOw3cOFo/Qt
  3474. "text/plain": [
  3475. "<Figure size 816x1615.68 with 4 Axes>"
  3476. ]
  3477. },
  3478. "metadata": {
  3479. "needs_background": "light"
  3480. },
  3481. "output_type": "display_data"
  3482. }
  3483. ],
  3484. "source": [
  3485. "fig = plt.figure(figsize=(6.8, 6.8/4*3*2*(1 + 16/50)), dpi=120)\n",
  3486. "grid = fig.add_gridspec(4, 1, height_ratios=[2, 50, 10, 50], wspace=0.4, hspace=0.1)\n",
  3487. "\n",
  3488. "######################\n",
  3489. "# fig.a\n",
  3490. "######################\n",
  3491. "\n",
  3492. "plot_axes = plt.subplot(grid[1, 0])\n",
  3493. "\n",
  3494. "plot_kwarg = {\n",
  3495. " # 'fmt': 'o',\n",
  3496. " \n",
  3497. " # Style of line\n",
  3498. " 'linestyle': 'None',\n",
  3499. " 'linewidth': 2,\n",
  3500. " \n",
  3501. " # Style of markder\n",
  3502. " # 'marker': '.',\n",
  3503. " 'markersize': 5,\n",
  3504. " # 'markerfacecolor': plot_blue,\n",
  3505. " # 'markeredgecolor': plot_blue,\n",
  3506. " 'markeredgewidth': 4,\n",
  3507. " \n",
  3508. " # Style of errorbar\n",
  3509. " 'capsize': 0,\n",
  3510. " # 'ecolor': plot_blue, # color of errorbar line\n",
  3511. " 'capthick': 1.5,\n",
  3512. " 'elinewidth': 3,\n",
  3513. " \n",
  3514. " # text for legend\n",
  3515. " 'label': 'Experiment',\n",
  3516. " }\n",
  3517. "\n",
  3518. "\n",
  3519. "# 1.2157134383410748+/-0.02622973148346536\n",
  3520. "# 0.2556310933363963+/-0.009332131323758952\n",
  3521. "\n",
  3522. "plot_axes.errorbar(powers, ncounts_withpush, yerr=ncount_withpush_errors, color=plot_red, marker='o', **plot_kwarg)\n",
  3523. "plot_axes.errorbar(powers, ncounts_withoutpush, yerr=ncount_withoutpush_errors, color=\"k\", marker='s', **plot_kwarg)\n",
  3524. "plot_axes.errorbar([430], [1.2157134383410748e8], yerr=[0.02622973148346536e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3525. "plot_axes.errorbar([430], [0.2556310933363963e8], yerr=[0.009332131323758952e8], color='k', marker='*', markersize=15)\n",
  3526. "\n",
  3527. "plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
  3528. "plot_axes.set_ylabel(\"Loading rate $\\Phi_\\mathrm{3D}$ (atoms/s)\", fontsize=20)\n",
  3529. "\n",
  3530. "plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
  3531. "plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
  3532. "plot_axes.xaxis.offsetText.set_fontsize(20)\n",
  3533. "plot_axes.yaxis.offsetText.set_fontsize(20)\n",
  3534. "\n",
  3535. "plt.setp(plot_axes.spines.values(), linewidth=3)\n",
  3536. "plot_axes.xaxis.set_tick_params(width=3)\n",
  3537. "plot_axes.yaxis.set_tick_params(width=3)\n",
  3538. "plot_axes.tick_params(direction='in', length=10)\n",
  3539. "\n",
  3540. "if np.max(plot_axes.get_xticks()) < 1000:\n",
  3541. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
  3542. "else:\n",
  3543. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
  3544. "if np.max(plot_axes.get_yticks()) < 1000:\n",
  3545. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
  3546. "else:\n",
  3547. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
  3548. "\n",
  3549. "# plot_axes.set_ylim([-0.1e8, 9e7])\n",
  3550. "\n",
  3551. "######################\n",
  3552. "\n",
  3553. "plot_axes.legend( [\"with red push\", \"without push\"],\n",
  3554. " fontsize=20, loc = 'lower right', bbox_to_anchor=(0.1, 0.7, 0.5, 0.5), shadow=False, \n",
  3555. " facecolor='white', framealpha=1, edgecolor='gray')\n",
  3556. "\n",
  3557. "######################\n",
  3558. "\n",
  3559. "######################\n",
  3560. "# fig.b\n",
  3561. "######################\n",
  3562. "\n",
  3563. "plot_axes = plt.subplot(grid[3, 0])\n",
  3564. "\n",
  3565. "plot_kwarg = {\n",
  3566. " # 'fmt': 'o',\n",
  3567. " \n",
  3568. " # Style of line\n",
  3569. " 'linestyle': 'None',\n",
  3570. " 'linewidth': 2,\n",
  3571. " \n",
  3572. " # Style of markder\n",
  3573. " # 'marker': '.',\n",
  3574. " 'markersize': 5,\n",
  3575. " # 'markerfacecolor': plot_blue,\n",
  3576. " # 'markeredgecolor': plot_blue,\n",
  3577. " 'markeredgewidth': 4,\n",
  3578. " \n",
  3579. " # Style of errorbar\n",
  3580. " 'capsize': 0,\n",
  3581. " # 'ecolor': plot_blue, # color of errorbar line\n",
  3582. " 'capthick': 1.5,\n",
  3583. " 'elinewidth': 3,\n",
  3584. " \n",
  3585. " # text for legend\n",
  3586. " # 'label': 'Experiment',\n",
  3587. " }\n",
  3588. "\n",
  3589. "plot_axes.errorbar([430], [3.54756438], yerr=[2776453.58029856/1e8], color=plot_red, marker='^', **plot_kwarg)\n",
  3590. "plot_axes.errorbar([430], [1.19289449], yerr=[1591103.66003124/1e8], color=\"k\", marker='*', markersize=15)\n",
  3591. "\n",
  3592. "plot_axes.errorbar(powers, sat_ncount_withpush / 1e8, yerr=sat_ncount_withpush_errors / 1e8, color=plot_red, marker='o', **plot_kwarg)\n",
  3593. "plot_axes.errorbar(powers, sat_ncount_withoutpush / 1e8, yerr=sat_ncount_withoutpush_errors / 1e8, color=\"k\", marker='s', **plot_kwarg)\n",
  3594. "\n",
  3595. "plot_axes.set_xlabel(\"2D-MOT power $P_\\mathrm{2D}$ (mW)\", fontsize=20)\n",
  3596. "plot_axes.set_ylabel(\"Saturation atom $N_\\mathrm{sat}$ $(10^8)$\", fontsize=20)\n",
  3597. "\n",
  3598. "plot_axes.tick_params(axis='both', which='major', labelsize=20)\n",
  3599. "plot_axes.tick_params(axis='both', which='minor', labelsize=16)\n",
  3600. "plot_axes.xaxis.offsetText.set_fontsize(20)\n",
  3601. "plot_axes.yaxis.offsetText.set_fontsize(20)\n",
  3602. "\n",
  3603. "plt.setp(plot_axes.spines.values(), linewidth=3)\n",
  3604. "plot_axes.xaxis.set_tick_params(width=3)\n",
  3605. "plot_axes.yaxis.set_tick_params(width=3)\n",
  3606. "plot_axes.tick_params(direction='in', length=10)\n",
  3607. "\n",
  3608. "if np.max(plot_axes.get_xticks()) < 1000:\n",
  3609. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='plain', useMathText=True)\n",
  3610. "else:\n",
  3611. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='x', style='sci', useMathText=True)\n",
  3612. "if np.max(plot_axes.get_yticks()) < 1000:\n",
  3613. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='plain', useMathText=True)\n",
  3614. "else:\n",
  3615. " plot_axes.ticklabel_format(scilimits=(0, 0), axis='y', style='sci', useMathText=True)\n",
  3616. "\n",
  3617. "plot_axes.set_ylim([0, 4])\n",
  3618. "\n",
  3619. "plt.setp(plot_axes.get_yticklabels()[0], visible=False)\n",
  3620. "\n",
  3621. "######################################\n",
  3622. "\n",
  3623. "plot_axes = plt.subplot(grid[0, 0])\n",
  3624. "plot_axes.text(-0.17, 0.8, '(a)', va='bottom', fontsize=20)\n",
  3625. "plot_axes.set_axis_off()\n",
  3626. "\n",
  3627. "plot_axes = plt.subplot(grid[2, 0])\n",
  3628. "plot_axes.text(-0.17, 0.1, '(b)', va='bottom', fontsize=20)\n",
  3629. "plot_axes.set_axis_off()\n",
  3630. "\n",
  3631. "fig.savefig('figS1_v2.pdf', bbox_inches = \"tight\")\n",
  3632. "\n",
  3633. "plt.show()"
  3634. ]
  3635. },
  3636. {
  3637. "cell_type": "code",
  3638. "execution_count": null,
  3639. "metadata": {},
  3640. "outputs": [],
  3641. "source": []
  3642. }
  3643. ],
  3644. "metadata": {
  3645. "kernelspec": {
  3646. "display_name": "Python 3",
  3647. "language": "python",
  3648. "name": "python3"
  3649. },
  3650. "language_info": {
  3651. "codemirror_mode": {
  3652. "name": "ipython",
  3653. "version": 3
  3654. },
  3655. "file_extension": ".py",
  3656. "mimetype": "text/x-python",
  3657. "name": "python",
  3658. "nbconvert_exporter": "python",
  3659. "pygments_lexer": "ipython3",
  3660. "version": "3.9.12"
  3661. },
  3662. "orig_nbformat": 4
  3663. },
  3664. "nbformat": 4,
  3665. "nbformat_minor": 2
  3666. }