Commit 7467dd9d authored by thbuffet's avatar thbuffet
Browse files

Fix notebooks

parent b03325f9
Pipeline #2625269 passed with stage
in 18 seconds
...@@ -56,12 +56,22 @@ ...@@ -56,12 +56,22 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 1,
"metadata": { "metadata": {
"deletable": false, "deletable": false,
"scrolled": false "scrolled": false
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Analysis executed with lhc-sm-api version: 1.5.13\n",
"Analysis executed with lhc-sm-hwc notebooks version: 1.5.63\n",
"Analysis performed by thbuffet\n"
]
}
],
"source": [ "source": [
"# External libraries\n", "# External libraries\n",
"print('Loading (1/11)'); import sys; import pandas as pd\n", "print('Loading (1/11)'); import sys; import pandas as pd\n",
...@@ -343,8 +353,8 @@ ...@@ -343,8 +353,8 @@
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"magnet_metadata_resistance_df = rb_analysis.merge_busbar_metadata_with_resistance(res_busbar_df, circuit_type, circuit_name)\n", "magnet_metadata_resistance_df = rb_analysis.merge_busbar_metadata_with_resistance(res_magnet_df, circuit_type, circuit_name, res_col='R_MAG')\n",
"rb_analysis.display_busbar_metadata_resistance_with_threshold(magnet_metadata_resistance_df, threshold=50e-9)" "rb_analysis.display_busbar_metadata_resistance_with_threshold(magnet_metadata_resistance_df, threshold=50e-9, res_col='R_MAG')"
] ]
}, },
{ {
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 2,
"metadata": { "metadata": {
"deleteable": false, "deleteable": false,
"scrolled": false, "scrolled": false,
...@@ -71,7 +71,17 @@ ...@@ -71,7 +71,17 @@
"skip_output" "skip_output"
] ]
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Analysis executed with lhc-sm-api version: 1.5.13\n",
"Analysis executed with lhc-sm-hwc notebooks version: 1.5.63\n",
"Analysis performed by thbuffet\n"
]
}
],
"source": [ "source": [
"# External libraries\n", "# External libraries\n",
"print('Loading (1/11)'); import sys; import pandas as pd\n", "print('Loading (1/11)'); import sys; import pandas as pd\n",
...@@ -125,18 +135,36 @@ ...@@ -125,18 +135,36 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 3,
"metadata": { "metadata": {
"deletable": false "deletable": false
}, },
"outputs": [], "outputs": [],
"source": [] "source": [
"hwc_test = 'PNO.b2'\n",
"circuit_name = 'RB.A34'\n",
"campaign= 'Recommissioning post LS2'\n",
"t_start = '2021-05-07 16:21:21.682000000'\n",
"t_end = '2021-05-07 20:17:10.231000000'"
]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 4,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"hwc_test = 'PNO.b2'\n",
"circuit_name = 'RB.A34'\n",
"campaign = 'Recommissioning post LS2'\n",
"t_start = '2021-05-07 16:21:21.682000000'\n",
"t_end = '2021-05-07 20:17:10.231000000'\n"
]
}
],
"source": [ "source": [
"print('hwc_test = \\'%s\\'\\ncircuit_name = \\'%s\\'\\ncampaign = \\'%s\\'\\nt_start = \\'%s\\'\\nt_end = \\'%s\\'' % (hwc_test, circuit_name, campaign, t_start, t_end))" "print('hwc_test = \\'%s\\'\\ncircuit_name = \\'%s\\'\\ncampaign = \\'%s\\'\\nt_start = \\'%s\\'\\nt_end = \\'%s\\'' % (hwc_test, circuit_name, campaign, t_start, t_end))"
] ]
...@@ -160,7 +188,500 @@ ...@@ -160,7 +188,500 @@
"skip_output" "skip_output"
] ]
}, },
"outputs": [], "outputs": [
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_signal_nxcals: 1/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_raw_signal_nxcals: 2/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_pc: 3/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: FGC, className: lhc_self_pmd, source: RPTE.UA43.RB.A34 from 2021-05-07 16:21:21.682 to 2021-05-07 20:17:10.231\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_pc_pm: 4/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) IAB.I_A, STATUS.I_REF, IEARTH.I_EARTH, STATUS.I_EARTH_PCNT, STATUS.I_MEAS... for system: RPTE.UA43.RB.A34..., className: lhc_self_pmd..., source: FGC... at 2021-05-07 19:47:12.940\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_pc: 5/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: FGC, className: 51_self_pmd, source: RPTE.UA43.RB.A34 from 2018-03-15 18:44:42.063 to 2018-03-15 23:02:26.134\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_pc_pm: 6/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) STATUS.I_MEAS for system: RPTE.UA43.RB.A34, className: 51_self_pmd, source: FGC at 2018-03-15 22:55:34.960\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_timestamp_pic: 7/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying NXCALS signal(s) RB.A34.EVEN:ST_ABORT_PIC, RB.A34.ODD:ST_ABORT_PIC from 2021-05-07 19:47:11.940 to 2021-05-07 19:48:12.940\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_ee: 8/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: QPS, className: DQAMSNRB, source: UJ33.RB.A34 from 2021-05-07 19:47:02.940 to 2021-05-07 20:03:52.940\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_u_dump_res_pm: 9/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UJ33.RB.A34:U_DUMP_RES for system: UJ33.RB.A34, className: DQAMSNRB, source: QPS at 2021-05-07 19:47:13.010\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_ee: 10/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: QPS, className: DQAMSNRB, source: UA43.RB.A34 from 2021-05-07 19:47:02.940 to 2021-05-07 20:03:52.940\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_u_dump_res_pm: 11/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UA43.RB.A34:U_DUMP_RES for system: UA43.RB.A34, className: DQAMSNRB, source: QPS at 2021-05-07 19:47:13.509\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 12/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UJ33.RB.A34:T_RES_BODY_1, UJ33.RB.A34:T_RES_BODY_3, UJ33.RB.A34:T_RES_BODY_2 for system: UJ33.RB.A34, className: DQAMSNRB, source: QPS at 2021-05-07 19:47:13.010\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 13/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UJ33.RB.A34:T_RES_BODY_1, UJ33.RB.A34:T_RES_BODY_3, UJ33.RB.A34:T_RES_BODY_2 for system: UJ33.RB.A34, className: DQAMSNRB, source: QPS at 2021-05-07 19:54:41.004\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 14/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UA43.RB.A34:T_RES_BODY_2, UA43.RB.A34:T_RES_BODY_3, UA43.RB.A34:T_RES_BODY_1 for system: UA43.RB.A34, className: DQAMSNRB, source: QPS at 2021-05-07 19:47:13.509\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 15/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UA43.RB.A34:T_RES_BODY_2, UA43.RB.A34:T_RES_BODY_3, UA43.RB.A34:T_RES_BODY_1 for system: UA43.RB.A34, className: DQAMSNRB, source: QPS at 2021-05-07 19:54:54.604\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_ee: 16/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: QPS, className: DQAMSNRB, source: UJ33.RB.A34 from 2018-03-15 22:55:24.960 to 2018-03-15 23:12:14.960\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_ee: 17/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: QPS, className: DQAMSNRB, source: UA43.RB.A34 from 2018-03-15 22:55:24.960 to 2018-03-15 23:12:14.960\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_u_dump_res_pm: 18/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UJ33.RB.A34:U_DUMP_RES for system: UJ33.RB.A34, className: DQAMSNRB, source: QPS at 2018-03-15 22:55:35.035\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_u_dump_res_pm: 19/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UA43.RB.A34:U_DUMP_RES for system: UA43.RB.A34, className: DQAMSNRB, source: QPS at 2018-03-15 22:55:35.533\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 20/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UJ33.RB.A34:T_RES_BODY_1, UJ33.RB.A34:T_RES_BODY_3, UJ33.RB.A34:T_RES_BODY_2 for system: UJ33.RB.A34, className: DQAMSNRB, source: QPS at 2018-03-15 22:55:35.035\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 21/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UJ33.RB.A34:T_RES_BODY_1, UJ33.RB.A34:T_RES_BODY_3, UJ33.RB.A34:T_RES_BODY_2 for system: UJ33.RB.A34, className: DQAMSNRB, source: QPS at 2018-03-15 23:03:05.204\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 22/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UA43.RB.A34:T_RES_BODY_2, UA43.RB.A34:T_RES_BODY_3, UA43.RB.A34:T_RES_BODY_1 for system: UA43.RB.A34, className: DQAMSNRB, source: QPS at 2018-03-15 22:55:35.533\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_ee_t_res_pm: 23/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event signal(s) UA43.RB.A34:T_RES_BODY_2, UA43.RB.A34:T_RES_BODY_3, UA43.RB.A34:T_RES_BODY_1 for system: UA43.RB.A34, className: DQAMSNRB, source: QPS at 2018-03-15 23:03:09.604\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_signal_nxcals: 24/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_signal_nxcals: 25/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function find_source_timestamp_nqps: 26/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"\tQuerying PM event timestamps for system: QPS, className: DQAMGNSRB_PMREL, source: * from 2021-05-07 19:47:02.940 to 2021-05-07 19:53:52.940\n"
]
},
{
"data": {
"text/html": [
"<text style=color:blue>Executing RB.A34 query function query_voltage_nqps_pm: 27/30.</text>"
],
"text/plain": [
"<IPython.core.display.HTML object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "7a4fb6eb90674702a661861866d41464",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"HBox(children=(FloatProgress(value=0.0, description='Querying PM U_DIODE_RB, U_REF_N1', max=53.0, style=Progre…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [ "source": [
"import pandas as pd\n", "import pandas as pd\n",
"circuit_type = 'RB'\n", "circuit_type = 'RB'\n",
...@@ -275,6 +796,7 @@ ...@@ -275,6 +796,7 @@
" \n", " \n",
" # nQPS\n", " # nQPS\n",
" source_timestamp_nqps_df = rb_query.find_source_timestamp_nqps(timestamp_fgc)\n", " source_timestamp_nqps_df = rb_query.find_source_timestamp_nqps(timestamp_fgc)\n",
" source_timestamp_nqps_df = source_timestamp_nqps_df.drop(labels=53, axis=0)\n",
" u_nqps_dfs = rb_query.query_voltage_nqps_pm(source_timestamp_nqps_df)\n", " u_nqps_dfs = rb_query.query_voltage_nqps_pm(source_timestamp_nqps_df)\n",
" \n", " \n",
" timestamp_dct = {'FGC': timestamp_fgc, 'PIC': min(timestamp_pic), 'EE_EVEN': timestamp_ee_even, 'EE_ODD': timestamp_ee_odd}" " timestamp_dct = {'FGC': timestamp_fgc, 'PIC': min(timestamp_pic), 'EE_EVEN': timestamp_ee_even, 'EE_ODD': timestamp_ee_odd}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment