diff --git a/doc/PES_spectra_extraction.ipynb b/doc/PES_spectra_extraction.ipynb index 132d232d54a15e490161d30a896e98ba9fbb6f3c..2aafb0304939e369894391df04f5097c565fff39 100644 --- a/doc/PES_spectra_extraction.ipynb +++ b/doc/PES_spectra_extraction.ipynb @@ -7,13 +7,6 @@ "# Basic analysis of PES spectra" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "The functions related to PES analysis are in the *detectors* submodule of the ToolBox. Let's import it as `tbdet`." - ] - }, { "cell_type": "code", "execution_count": 1, @@ -21,8 +14,7 @@ "outputs": [], "source": [ "import matplotlib.pyplot as plt\n", - "import toolbox_scs as tb\n", - "import toolbox_scs.detectors as tbdet" + "import toolbox_scs as tb" ] }, { @@ -403,8 +395,8 @@ " PES_pressure (trainId) float32 6.28733e-07 ... 6.7894194e-07\n", " XTD10_SA3 (trainId, sa3_pId) float64 2.661e+03 ... 2.11e+03\n", "Attributes:\n", - " runFolder: /gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</pre><div class='xr-wrap' hidden><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-3dc9406e-4e36-42ee-8318-da51896601f6' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-3dc9406e-4e36-42ee-8318-da51896601f6' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>PESsampleId</span>: 600000</li><li><span>pulse_slot</span>: 2700</li><li><span class='xr-has-index'>sa3_pId</span>: 100</li><li><span class='xr-has-index'>trainId</span>: 4044</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-dccd1455-52bc-4d24-be40-d30716ee5cc3' class='xr-section-summary-in' type='checkbox' checked><label for='section-dccd1455-52bc-4d24-be40-d30716ee5cc3' class='xr-section-summary' >Coordinates: <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 class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>1044495172 ... 1044501582</div><input id='attrs-f26777d1-c11e-4d2f-aed2-1c145252d687' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f26777d1-c11e-4d2f-aed2-1c145252d687' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c0600120-d411-4fd2-94f9-34e148d958fa' class='xr-var-data-in' type='checkbox'><label for='data-c0600120-d411-4fd2-94f9-34e148d958fa' 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([1044495172, 1044495174, 1044495175, ..., 1044501578, 1044501580,\n", - " 1044501582], dtype=uint64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sa3_pId</span></div><div class='xr-var-dims'>(sa3_pId)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1032 1036 1040 ... 1420 1424 1428</div><input id='attrs-31a03bd6-7626-4af8-a1d8-0443ded49d25' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-31a03bd6-7626-4af8-a1d8-0443ded49d25' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8f7b67c6-7a2e-4c4a-ad1d-71bd6ca258c6' class='xr-var-data-in' type='checkbox'><label for='data-8f7b67c6-7a2e-4c4a-ad1d-71bd6ca258c6' 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([1032, 1036, 1040, 1044, 1048, 1052, 1056, 1060, 1064, 1068, 1072, 1076,\n", + " runFolder: /gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</pre><div class='xr-wrap' hidden><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-afa68c8c-e04e-43ab-a09e-e5e61077f5e4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-afa68c8c-e04e-43ab-a09e-e5e61077f5e4' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>PESsampleId</span>: 600000</li><li><span>pulse_slot</span>: 2700</li><li><span class='xr-has-index'>sa3_pId</span>: 100</li><li><span class='xr-has-index'>trainId</span>: 4044</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-341b8eea-b81d-4b2b-add0-ca9c12775d59' class='xr-section-summary-in' type='checkbox' checked><label for='section-341b8eea-b81d-4b2b-add0-ca9c12775d59' class='xr-section-summary' >Coordinates: <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 class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>1044495172 ... 1044501582</div><input id='attrs-8cf5a3f7-15a0-42d9-85ac-0df333a6f66b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8cf5a3f7-15a0-42d9-85ac-0df333a6f66b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ba97d253-d4a5-40d8-a28b-25aa46d90ad5' class='xr-var-data-in' type='checkbox'><label for='data-ba97d253-d4a5-40d8-a28b-25aa46d90ad5' 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([1044495172, 1044495174, 1044495175, ..., 1044501578, 1044501580,\n", + " 1044501582], dtype=uint64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sa3_pId</span></div><div class='xr-var-dims'>(sa3_pId)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1032 1036 1040 ... 1420 1424 1428</div><input id='attrs-9a394f49-3408-44d2-9ece-14071b6b97b2' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9a394f49-3408-44d2-9ece-14071b6b97b2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-555440eb-322e-4e31-99f8-5145dc4ccd03' class='xr-var-data-in' type='checkbox'><label for='data-555440eb-322e-4e31-99f8-5145dc4ccd03' 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([1032, 1036, 1040, 1044, 1048, 1052, 1056, 1060, 1064, 1068, 1072, 1076,\n", " 1080, 1084, 1088, 1092, 1096, 1100, 1104, 1108, 1112, 1116, 1120, 1124,\n", " 1128, 1132, 1136, 1140, 1144, 1148, 1152, 1156, 1160, 1164, 1168, 1172,\n", " 1176, 1180, 1184, 1188, 1192, 1196, 1200, 1204, 1208, 1212, 1216, 1220,\n", @@ -412,27 +404,27 @@ " 1272, 1276, 1280, 1284, 1288, 1292, 1296, 1300, 1304, 1308, 1312, 1316,\n", " 1320, 1324, 1328, 1332, 1336, 1340, 1344, 1348, 1352, 1356, 1360, 1364,\n", " 1368, 1372, 1376, 1380, 1384, 1388, 1392, 1396, 1400, 1404, 1408, 1412,\n", - " 1416, 1420, 1424, 1428])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-d638148a-0781-4b51-bbb8-bd308de0128d' class='xr-section-summary-in' type='checkbox' checked><label for='section-d638148a-0781-4b51-bbb8-bd308de0128d' class='xr-section-summary' >Data variables: <span>(5)</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>bunchPatternTable</span></div><div class='xr-var-dims'>(trainId, pulse_slot)</div><div class='xr-var-dtype'>uint32</div><div class='xr-var-preview xr-preview'>2113321 0 2097193 0 ... 0 0 0 0</div><input id='attrs-105b156c-b8ca-4e4a-9a58-be17c19c97c0' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-105b156c-b8ca-4e4a-9a58-be17c19c97c0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-67c38fad-cc3a-4729-9440-2b0fef335210' class='xr-var-data-in' type='checkbox'><label for='data-67c38fad-cc3a-4729-9440-2b0fef335210' 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([[2113321, 0, 2097193, ..., 0, 0, 0],\n", + " 1416, 1420, 1424, 1428])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0578628d-f521-472d-9949-26ad89e7e6d6' class='xr-section-summary-in' type='checkbox' checked><label for='section-0578628d-f521-472d-9949-26ad89e7e6d6' class='xr-section-summary' >Data variables: <span>(5)</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>bunchPatternTable</span></div><div class='xr-var-dims'>(trainId, pulse_slot)</div><div class='xr-var-dtype'>uint32</div><div class='xr-var-preview xr-preview'>2113321 0 2097193 0 ... 0 0 0 0</div><input id='attrs-4d3aa9e4-bdc9-4499-a9cd-8c485158d48a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4d3aa9e4-bdc9-4499-a9cd-8c485158d48a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-94835d55-dc89-4ed3-90da-22030cc7293f' class='xr-var-data-in' type='checkbox'><label for='data-94835d55-dc89-4ed3-90da-22030cc7293f' 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([[2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " ...,\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0]],\n", - " dtype=uint32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_W_raw</span></div><div class='xr-var-dims'>(trainId, PESsampleId)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>1 5 -1 2 3 3 3 4 ... 4 1 4 -1 4 1 4</div><input id='attrs-291b6842-b2eb-4478-abcc-82a6a866ba92' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-291b6842-b2eb-4478-abcc-82a6a866ba92' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3c615efc-9bf7-4b56-92b3-99f95bf64d29' class='xr-var-data-in' type='checkbox'><label for='data-3c615efc-9bf7-4b56-92b3-99f95bf64d29' 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, 5, -1, ..., 4, 3, 5],\n", + " dtype=uint32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_W_raw</span></div><div class='xr-var-dims'>(trainId, PESsampleId)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>1 5 -1 2 3 3 3 4 ... 4 1 4 -1 4 1 4</div><input id='attrs-e3178de3-2008-49d5-972f-0e8f944efcc7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e3178de3-2008-49d5-972f-0e8f944efcc7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cd244553-ee7c-42da-98bd-b2ca8ba1a1e2' class='xr-var-data-in' type='checkbox'><label for='data-cd244553-ee7c-42da-98bd-b2ca8ba1a1e2' 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, 5, -1, ..., 4, 3, 5],\n", " [ 4, 2, 2, ..., 3, 1, 5],\n", " [ 1, 2, 2, ..., 2, 1, 3],\n", " ...,\n", " [ 1, 5, 0, ..., 2, 4, 1],\n", " [ 1, 5, -1, ..., 2, 1, 2],\n", - " [ 2, 3, 1, ..., 4, 1, 4]], dtype=int16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_E_raw</span></div><div class='xr-var-dims'>(trainId, PESsampleId)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>-5 -8 -5 -5 -6 ... -3 -5 -3 -7 -3</div><input id='attrs-03b9d769-33e8-4d06-8d91-5f4d88067e14' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-03b9d769-33e8-4d06-8d91-5f4d88067e14' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cd4e7aed-a251-4544-86b8-48cc115e858e' class='xr-var-data-in' type='checkbox'><label for='data-cd4e7aed-a251-4544-86b8-48cc115e858e' 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([[-5, -8, -5, ..., -3, -2, -6],\n", + " [ 2, 3, 1, ..., 4, 1, 4]], dtype=int16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_E_raw</span></div><div class='xr-var-dims'>(trainId, PESsampleId)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>-5 -8 -5 -5 -6 ... -3 -5 -3 -7 -3</div><input id='attrs-6d1e0069-133a-41fa-a0d0-1e71180f9d9b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6d1e0069-133a-41fa-a0d0-1e71180f9d9b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ca6160ea-f45b-4225-91e7-170c2b8ca6c1' class='xr-var-data-in' type='checkbox'><label for='data-ca6160ea-f45b-4225-91e7-170c2b8ca6c1' 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([[-5, -8, -5, ..., -3, -2, -6],\n", " [-2, -6, -7, ..., -5, -6, -4],\n", " [-2, -5, -6, ..., -4, -4, 0],\n", " ...,\n", " [-4, -6, -8, ..., -5, -6, -4],\n", " [-6, -7, -7, ..., -3, -3, -4],\n", - " [-5, -5, -7, ..., -3, -7, -3]], dtype=int16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_pressure</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>6.28733e-07 ... 6.7894194e-07</div><input id='attrs-5badaceb-cf5c-42f2-a6fd-9d188fabf10e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5badaceb-cf5c-42f2-a6fd-9d188fabf10e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-03d461bf-f523-46bc-afd8-27339daf326c' class='xr-var-data-in' type='checkbox'><label for='data-03d461bf-f523-46bc-afd8-27339daf326c' 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([6.2873301e-07, 6.2873301e-07, 6.2873301e-07, ..., 6.4182740e-07,\n", - " 6.7894194e-07, 6.7894194e-07], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>XTD10_SA3</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.661e+03 2.445e+03 ... 2.11e+03</div><input id='attrs-d6a3453b-c9da-4b7b-b633-b7d2b2b88f29' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d6a3453b-c9da-4b7b-b633-b7d2b2b88f29' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8b530953-066e-485f-8cb2-b67185a15ed0' class='xr-var-data-in' type='checkbox'><label for='data-8b530953-066e-485f-8cb2-b67185a15ed0' 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([[2661.23291016, 2444.58691406, 2480.74072266, ..., 2380.93359375,\n", + " [-5, -5, -7, ..., -3, -7, -3]], dtype=int16)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_pressure</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>6.28733e-07 ... 6.7894194e-07</div><input id='attrs-7a74acd5-c913-4a37-8595-e7d79d125bb7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7a74acd5-c913-4a37-8595-e7d79d125bb7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-96db60a9-6d2c-43ca-9521-63f17b9a2b37' class='xr-var-data-in' type='checkbox'><label for='data-96db60a9-6d2c-43ca-9521-63f17b9a2b37' 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([6.2873301e-07, 6.2873301e-07, 6.2873301e-07, ..., 6.4182740e-07,\n", + " 6.7894194e-07, 6.7894194e-07], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>XTD10_SA3</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.661e+03 2.445e+03 ... 2.11e+03</div><input id='attrs-ceb66a12-9dc6-4b18-b29a-e69039e90e88' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ceb66a12-9dc6-4b18-b29a-e69039e90e88' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2f8f63f2-56d1-4a8a-bdc5-c7bc98f4728b' class='xr-var-data-in' type='checkbox'><label for='data-2f8f63f2-56d1-4a8a-bdc5-c7bc98f4728b' 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([[2661.23291016, 2444.58691406, 2480.74072266, ..., 2380.93359375,\n", " 2479.30371094, 2232.07226562],\n", " [2404.85668945, 2658.734375 , 2217.1796875 , ..., 2488.41577148,\n", " 2629.03076172, 2302.22460938],\n", @@ -444,7 +436,7 @@ " [2123.55004883, 2414.68261719, 2608.14404297, ..., 2427.31542969,\n", " 2626.33886719, 2505.59179688],\n", " [1932.66723633, 1922.01318359, 2103.00415039, ..., 2199.97802734,\n", - " 2235.63769531, 2109.60400391]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e9799fc1-26da-4bd5-91a5-a35f4305ae58' class='xr-section-summary-in' type='checkbox' checked><label for='section-e9799fc1-26da-4bd5-91a5-a35f4305ae58' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>runFolder :</span></dt><dd>/gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</dd></dl></div></li></ul></div></div>" + " 2235.63769531, 2109.60400391]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4fe9059a-c8f5-4d9b-a550-98e1fc4e2125' class='xr-section-summary-in' type='checkbox' checked><label for='section-4fe9059a-c8f5-4d9b-a550-98e1fc4e2125' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>runFolder :</span></dt><dd>/gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</dd></dl></div></li></ul></div></div>" ], "text/plain": [ "<xarray.Dataset>\n", @@ -492,7 +484,7 @@ { "data": { "text/plain": [ - "[<matplotlib.lines.Line2D at 0x2b3354aff9b0>]" + "[<matplotlib.lines.Line2D at 0x2b786f4696a0>]" ] }, "execution_count": 3, @@ -540,7 +532,7 @@ } ], "source": [ - "params = tbdet.get_pes_params(run)\n", + "params = tb.get_pes_params(run)\n", "params" ] }, @@ -930,8 +922,8 @@ " PES_E_tof (sa3_pId, trainId, time_ns) float64 -3.6 -0.6 ... 0.4125\n", " PES_W_tof (sa3_pId, trainId, time_ns) float64 -1.337 ... 0.0375\n", "Attributes:\n", - " runFolder: /gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</pre><div class='xr-wrap' hidden><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-7aed755c-43e1-4314-a9e3-f318efb3a7c0' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7aed755c-43e1-4314-a9e3-f318efb3a7c0' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>pulse_slot</span>: 2700</li><li><span class='xr-has-index'>sa3_pId</span>: 100</li><li><span class='xr-has-index'>time_ns</span>: 300</li><li><span class='xr-has-index'>trainId</span>: 4044</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-09b9caca-46c3-4a9b-bf77-a8bf5e067eeb' class='xr-section-summary-in' type='checkbox' checked><label for='section-09b9caca-46c3-4a9b-bf77-a8bf5e067eeb' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>1044495172 ... 1044501582</div><input id='attrs-6d980b1d-9c6c-42db-8bc6-1f8dd343f456' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6d980b1d-9c6c-42db-8bc6-1f8dd343f456' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0aac231c-3d48-4961-97bb-6d26aa0a4464' class='xr-var-data-in' type='checkbox'><label for='data-0aac231c-3d48-4961-97bb-6d26aa0a4464' 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([1044495172, 1044495174, 1044495175, ..., 1044501578, 1044501580,\n", - " 1044501582], dtype=uint64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sa3_pId</span></div><div class='xr-var-dims'>(sa3_pId)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1032 1036 1040 ... 1420 1424 1428</div><input id='attrs-56a30367-8d0f-44c5-8170-f4d007ee3605' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-56a30367-8d0f-44c5-8170-f4d007ee3605' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-76a80a9a-7686-432c-b3cb-44758ac46f3b' class='xr-var-data-in' type='checkbox'><label for='data-76a80a9a-7686-432c-b3cb-44758ac46f3b' 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([1032, 1036, 1040, 1044, 1048, 1052, 1056, 1060, 1064, 1068, 1072, 1076,\n", + " runFolder: /gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</pre><div class='xr-wrap' hidden><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-92b955e0-8b98-4126-a184-cf3a14f37581' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-92b955e0-8b98-4126-a184-cf3a14f37581' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>pulse_slot</span>: 2700</li><li><span class='xr-has-index'>sa3_pId</span>: 100</li><li><span class='xr-has-index'>time_ns</span>: 300</li><li><span class='xr-has-index'>trainId</span>: 4044</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-70c80e35-a2da-4f65-ba3c-bd9e9f34cd5a' class='xr-section-summary-in' type='checkbox' checked><label for='section-70c80e35-a2da-4f65-ba3c-bd9e9f34cd5a' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>1044495172 ... 1044501582</div><input id='attrs-8c32c104-710f-44e2-ba06-4f000e0b4345' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8c32c104-710f-44e2-ba06-4f000e0b4345' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ac5ab7ba-61d9-4b68-a8b4-7444abac7722' class='xr-var-data-in' type='checkbox'><label for='data-ac5ab7ba-61d9-4b68-a8b4-7444abac7722' 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([1044495172, 1044495174, 1044495175, ..., 1044501578, 1044501580,\n", + " 1044501582], dtype=uint64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sa3_pId</span></div><div class='xr-var-dims'>(sa3_pId)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1032 1036 1040 ... 1420 1424 1428</div><input id='attrs-aa2f6a4d-fd99-4355-898e-301b2fc93c51' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-aa2f6a4d-fd99-4355-898e-301b2fc93c51' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5152aa39-4a5a-409a-802b-70f28fd8dee4' class='xr-var-data-in' type='checkbox'><label for='data-5152aa39-4a5a-409a-802b-70f28fd8dee4' 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([1032, 1036, 1040, 1044, 1048, 1052, 1056, 1060, 1064, 1068, 1072, 1076,\n", " 1080, 1084, 1088, 1092, 1096, 1100, 1104, 1108, 1112, 1116, 1120, 1124,\n", " 1128, 1132, 1136, 1140, 1144, 1148, 1152, 1156, 1160, 1164, 1168, 1172,\n", " 1176, 1180, 1184, 1188, 1192, 1196, 1200, 1204, 1208, 1212, 1216, 1220,\n", @@ -939,15 +931,15 @@ " 1272, 1276, 1280, 1284, 1288, 1292, 1296, 1300, 1304, 1308, 1312, 1316,\n", " 1320, 1324, 1328, 1332, 1336, 1340, 1344, 1348, 1352, 1356, 1360, 1364,\n", " 1368, 1372, 1376, 1380, 1384, 1388, 1392, 1396, 1400, 1404, 1408, 1412,\n", - " 1416, 1420, 1424, 1428])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time_ns</span></div><div class='xr-var-dims'>(time_ns)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.5 1.0 ... 148.5 149.0 149.5</div><input id='attrs-2e949958-907e-4eea-ba72-e551f5b703d0' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-2e949958-907e-4eea-ba72-e551f5b703d0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-264fe1e8-93e5-4052-aab5-c4c599c7f4e3' class='xr-var-data-in' type='checkbox'><label for='data-264fe1e8-93e5-4052-aab5-c4c599c7f4e3' 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. , 0.5, 1. , ..., 148.5, 149. , 149.5])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-95abda8d-0fa8-4f1e-86f6-340409bd8863' class='xr-section-summary-in' type='checkbox' checked><label for='section-95abda8d-0fa8-4f1e-86f6-340409bd8863' class='xr-section-summary' >Data variables: <span>(5)</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>bunchPatternTable</span></div><div class='xr-var-dims'>(trainId, pulse_slot)</div><div class='xr-var-dtype'>uint32</div><div class='xr-var-preview xr-preview'>2113321 0 2097193 0 ... 0 0 0 0</div><input id='attrs-313cc549-1cb4-438a-9171-a37da5aabc91' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-313cc549-1cb4-438a-9171-a37da5aabc91' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bcf5cd39-4e36-45d2-ae7f-1d0002277a07' class='xr-var-data-in' type='checkbox'><label for='data-bcf5cd39-4e36-45d2-ae7f-1d0002277a07' 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([[2113321, 0, 2097193, ..., 0, 0, 0],\n", + " 1416, 1420, 1424, 1428])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time_ns</span></div><div class='xr-var-dims'>(time_ns)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>0.0 0.5 1.0 ... 148.5 149.0 149.5</div><input id='attrs-3820619b-bc06-42e3-997b-3598b32d5244' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3820619b-bc06-42e3-997b-3598b32d5244' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e043ec1a-93b7-48f5-87a2-04464150c9c8' class='xr-var-data-in' type='checkbox'><label for='data-e043ec1a-93b7-48f5-87a2-04464150c9c8' 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. , 0.5, 1. , ..., 148.5, 149. , 149.5])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-872e1227-923d-407c-8600-7e20183aff3a' class='xr-section-summary-in' type='checkbox' checked><label for='section-872e1227-923d-407c-8600-7e20183aff3a' class='xr-section-summary' >Data variables: <span>(5)</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>bunchPatternTable</span></div><div class='xr-var-dims'>(trainId, pulse_slot)</div><div class='xr-var-dtype'>uint32</div><div class='xr-var-preview xr-preview'>2113321 0 2097193 0 ... 0 0 0 0</div><input id='attrs-be56dd9a-c379-4940-9c49-3a231b660fc8' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-be56dd9a-c379-4940-9c49-3a231b660fc8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-932201ac-ba27-498b-b91a-fa4046f4ea64' class='xr-var-data-in' type='checkbox'><label for='data-932201ac-ba27-498b-b91a-fa4046f4ea64' 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([[2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " ...,\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0],\n", " [2113321, 0, 2097193, ..., 0, 0, 0]],\n", - " dtype=uint32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_pressure</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>6.28733e-07 ... 6.7894194e-07</div><input id='attrs-c7517b97-3fb4-4b2d-aadc-0268cbf900eb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c7517b97-3fb4-4b2d-aadc-0268cbf900eb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bdef63d4-773e-4a1a-ac5c-6d3c4954b600' class='xr-var-data-in' type='checkbox'><label for='data-bdef63d4-773e-4a1a-ac5c-6d3c4954b600' 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([6.2873301e-07, 6.2873301e-07, 6.2873301e-07, ..., 6.4182740e-07,\n", - " 6.7894194e-07, 6.7894194e-07], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>XTD10_SA3</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.661e+03 2.445e+03 ... 2.11e+03</div><input id='attrs-81452082-85ee-4e10-9c00-c800f790fbed' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-81452082-85ee-4e10-9c00-c800f790fbed' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4d7a170f-94d6-4f99-bcef-c2ffb3a81378' class='xr-var-data-in' type='checkbox'><label for='data-4d7a170f-94d6-4f99-bcef-c2ffb3a81378' 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([[2661.23291016, 2444.58691406, 2480.74072266, ..., 2380.93359375,\n", + " dtype=uint32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_pressure</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>6.28733e-07 ... 6.7894194e-07</div><input id='attrs-fc2253dc-0b56-42ec-aee9-0020a8df58e1' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-fc2253dc-0b56-42ec-aee9-0020a8df58e1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b66f0bf8-e9e0-42ab-aaa0-1335c784708a' class='xr-var-data-in' type='checkbox'><label for='data-b66f0bf8-e9e0-42ab-aaa0-1335c784708a' 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([6.2873301e-07, 6.2873301e-07, 6.2873301e-07, ..., 6.4182740e-07,\n", + " 6.7894194e-07, 6.7894194e-07], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>XTD10_SA3</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.661e+03 2.445e+03 ... 2.11e+03</div><input id='attrs-c8ad5458-298e-459a-b619-bfa73861997b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c8ad5458-298e-459a-b619-bfa73861997b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e7458918-a98c-460c-99b2-e2a00d5eb979' class='xr-var-data-in' type='checkbox'><label for='data-e7458918-a98c-460c-99b2-e2a00d5eb979' 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([[2661.23291016, 2444.58691406, 2480.74072266, ..., 2380.93359375,\n", " 2479.30371094, 2232.07226562],\n", " [2404.85668945, 2658.734375 , 2217.1796875 , ..., 2488.41577148,\n", " 2629.03076172, 2302.22460938],\n", @@ -959,7 +951,7 @@ " [2123.55004883, 2414.68261719, 2608.14404297, ..., 2427.31542969,\n", " 2626.33886719, 2505.59179688],\n", " [1932.66723633, 1922.01318359, 2103.00415039, ..., 2199.97802734,\n", - " 2235.63769531, 2109.60400391]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_E_tof</span></div><div class='xr-var-dims'>(sa3_pId, trainId, time_ns)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-3.6 -0.6 -1.6 ... -2.588 0.4125</div><input id='attrs-73201525-465d-45e6-ae64-19c06fdc4e68' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-73201525-465d-45e6-ae64-19c06fdc4e68' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-62de59f6-dd0e-47c5-bc2f-d193b290318d' class='xr-var-data-in' type='checkbox'><label for='data-62de59f6-dd0e-47c5-bc2f-d193b290318d' 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.6 , -0.6 , -1.6 , ..., 0.4 , -1.6 , 1.4 ],\n", + " 2235.63769531, 2109.60400391]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_E_tof</span></div><div class='xr-var-dims'>(sa3_pId, trainId, time_ns)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-3.6 -0.6 -1.6 ... -2.588 0.4125</div><input id='attrs-baca41af-79da-4298-b664-df1415065614' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-baca41af-79da-4298-b664-df1415065614' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9a67984a-9a6d-425f-b7d5-92c2732ed091' class='xr-var-data-in' type='checkbox'><label for='data-9a67984a-9a6d-425f-b7d5-92c2732ed091' 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.6 , -0.6 , -1.6 , ..., 0.4 , -1.6 , 1.4 ],\n", " [ 0.45 , 0.45 , -0.55 , ..., 0.45 , -2.55 , 1.45 ],\n", " [-0.5875, -0.5875, 0.4125, ..., 0.4125, 0.4125, 1.4125],\n", " ...,\n", @@ -999,7 +991,7 @@ " ...,\n", " [-1.75 , 0.25 , -2.75 , ..., 3.25 , -1.75 , 1.25 ],\n", " [-2.475 , 4.525 , -2.475 , ..., -0.475 , -1.475 , 3.525 ],\n", - " [ 0.4125, 0.4125, 0.4125, ..., 2.4125, -2.5875, 0.4125]]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_W_tof</span></div><div class='xr-var-dims'>(sa3_pId, trainId, time_ns)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-1.337 2.663 1.663 ... 1.038 0.0375</div><input id='attrs-7977a11c-a7d5-4565-95b6-365e6b9c8d9e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7977a11c-a7d5-4565-95b6-365e6b9c8d9e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4f5bc505-5de3-4c05-ae7e-5d6755edab38' class='xr-var-data-in' type='checkbox'><label for='data-4f5bc505-5de3-4c05-ae7e-5d6755edab38' 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.3375, 2.6625, 1.6625, ..., 1.6625, 0.6625,\n", + " [ 0.4125, 0.4125, 0.4125, ..., 2.4125, -2.5875, 0.4125]]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>PES_W_tof</span></div><div class='xr-var-dims'>(sa3_pId, trainId, time_ns)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-1.337 2.663 1.663 ... 1.038 0.0375</div><input id='attrs-29e52ad5-26cd-4b5b-966a-1ecf7d406435' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-29e52ad5-26cd-4b5b-966a-1ecf7d406435' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-93314496-f174-434f-ad71-d14e17a7cc25' class='xr-var-data-in' type='checkbox'><label for='data-93314496-f174-434f-ad71-d14e17a7cc25' 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.3375, 2.6625, 1.6625, ..., 1.6625, 0.6625,\n", " 1.6625],\n", " [ -0.55 , -1.55 , 0.45 , ..., 1.45 , -1.55 ,\n", " -0.55 ],\n", @@ -1039,7 +1031,7 @@ " [ -1.7875, 2.2125, 0.2125, ..., 0.2125, -10.7875,\n", " -0.7875],\n", " [ -3.9625, 2.0375, -2.9625, ..., 4.0375, 1.0375,\n", - " 0.0375]]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-76772d41-74cf-48b6-8fd9-02d00910a1b2' class='xr-section-summary-in' type='checkbox' checked><label for='section-76772d41-74cf-48b6-8fd9-02d00910a1b2' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>runFolder :</span></dt><dd>/gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</dd></dl></div></li></ul></div></div>" + " 0.0375]]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e025a1ca-4a09-48ed-a31a-c33334d86068' class='xr-section-summary-in' type='checkbox' checked><label for='section-e025a1ca-4a09-48ed-a31a-c33334d86068' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>runFolder :</span></dt><dd>/gpfs/exfel/exp/SCS/202121/p002927/raw/r0100</dd></dl></div></li></ul></div></div>" ], "text/plain": [ "<xarray.Dataset>\n", @@ -1065,7 +1057,7 @@ } ], "source": [ - "pes = tbdet.get_pes_tof(run, merge_with=ds)\n", + "pes = tb.get_pes_tof(run, merge_with=ds)\n", "# this is to make sure that the train Ids are well sorted\n", "pes = pes.sortby(pes.trainId)\n", "pes" @@ -1086,7 +1078,7 @@ { "data": { "text/plain": [ - "<matplotlib.collections.QuadMesh at 0x2b335533bf60>" + "<matplotlib.collections.QuadMesh at 0x2b786fcbc780>" ] }, "execution_count": 6, @@ -1133,7 +1125,7 @@ { "data": { "text/plain": [ - "<matplotlib.collections.QuadMesh at 0x2b3357f7cbe0>" + "<matplotlib.collections.QuadMesh at 0x2b78728e34a8>" ] }, "execution_count": 7,