Commit 413f4b39 authored by Zinur Charifoulline's avatar Zinur Charifoulline
Browse files

Contributor

parent b04aee4d
Pipeline #2471346 passed with stage
in 19 seconds
__version__ = "1.5.54"
__version__ = "1.5.55"
......@@ -108,7 +108,13 @@
"scrolled": false
},
"outputs": [],
"source": []
"source": [
"hwc_test = 'PLI2.f1' \n",
"circuit_name = 'RQD.A45' \n",
"campaign= 'Recommissioning post LS2' \n",
"t_start = '2021-04-07 20:44:14.437000000'\n",
"t_end = '2021-04-07 20:55:41.364000000'"
]
},
{
"cell_type": "code",
......@@ -226,13 +232,12 @@
" source_timestamp_qds_rq_df = rqd_query.find_source_timestamp_qds(timestamp_fgc_rqd, duration=[(10, 's'), (200, 's')])\n",
" \n",
" if Time.to_unix_timestamp(timestamp_fgc_rqd) > 1577833200000000000:\n",
" iqps_analog_0_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['U_QS0_INT_A', 'U_QS0_EXT_A'])\n",
" iqps_analog_1_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['U_QS1_INT_A', 'U_QS1_EXT_A'])\n",
" iqps_analog_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['U_QS0_INT_A', 'U_QS0_EXT_A'])\n",
" iqps_digital_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['ST_NOLATCH_BR_EXT_A', 'ST_NOLATCH_BR_INT_A', 'ST_NOTRIG_BR_EXT_A', 'ST_NOTRIG_BR_INT_A'])\n",
" else:\n",
" iqps_analog_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['U_QS0_EXT', 'U_QS0_INT', 'U_1_EXT', 'U_2_EXT', 'U_1_INT', 'U_2_INT'])\n",
" iqps_digital_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['ST_MAGNET_OK', 'ST_MAGNET_OK_INT', 'ST_NQD0_EXT', 'ST_NQD0_INT'])\n",
"\n",
" \n",
" # nQPS\n",
" source_timestamp_nqps_rqd_df = rqd_query.find_source_timestamp_nqps(timestamp_fgc_rqd)\n",
" source_timestamp_nqps_rqf_df = rqf_query.find_source_timestamp_nqps(timestamp_fgc_rqf)\n",
......@@ -308,8 +313,8 @@
"Table below provides timestamps ordered achronologically and represents the sequence of events that occurred in the analyzed circuit: PIC_RQD, PIC_RQF, iQPS, nQPS, FGC_RQD, FGC_RQF, EE_RQD, EE_RQF and optionally LEADS_RQD and LEADS_RQF, provided they exist. Note that for iQPS and nQPS only the first timestamp is reported. Tables with all iQPS and NQPS timestamps are presented in the section dedicated to magnet and quench protection analysis. The table also contains time difference in milliseconds from the first event and from the FGC event.\n",
"\n",
"In short, the following criteria should be kept:\n",
"- The PC timestamp (51_self) is QPS time stamp +/-20 ms.\n",
"- Time stamp difference between FGC and EE: 100±15 ms \n",
"- The PC timestamp (51_self) is QPS time stamp +/-40 ms.\n",
"- Time stamp delay between PIC and EE: 100±15 ms \n",
"\n",
"If one or more of these conditions are not fulfilled, then an in-depth analysis has to be performed by the QPS team."
]
......@@ -791,15 +796,13 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"deletable": false,
"scrolled": false
"deletable": false
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"if Time.to_unix_timestamp(timestamp_fgc_rqd) > 1577833200000000000:\n",
" rq_analysis.analyze_qds_run3(source_timestamp_qds_rq_df.rename(columns={'source':'magnet', 'timestamp':'timestamp_iqps'}), circuit_names, iqps_analog_0_dfs, iqps_digital_dfs, u_nqps_rqd_dfs, u_nqps_rqf_dfs)\n",
" rq_analysis.analyze_qds_run3(source_timestamp_qds_rq_df.rename(columns={'source':'magnet', 'timestamp':'timestamp_iqps'}), circuit_names, iqps_analog_1_dfs, iqps_digital_dfs, u_nqps_rqd_dfs, u_nqps_rqf_dfs)\n",
" rq_analysis.analyze_qds_run3(source_timestamp_qds_rq_df, circuit_names, iqps_analog_dfs, iqps_digital_dfs, u_nqps_rqd_dfs, u_nqps_rqf_dfs)\n",
"else:\n",
" rq_analysis.analyze_qds(source_timestamp_qds_rq_df, circuit_names, iqps_analog_dfs, iqps_digital_dfs, u_nqps_rqd_dfs, u_nqps_rqf_dfs)\n",
"\n",
......
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