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"
...@@ -75,11 +75,15 @@ ...@@ -75,11 +75,15 @@
- After opening the browser GUI, choose a circuit name in order to display HWC test with, campaign name as well as start and end time - After opening the browser GUI, choose a circuit name in order to display HWC test with, campaign name as well as start and end time
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
hwc_test = 'PLI2.f1'
circuit_name = 'RQD.A45'
campaign= 'Recommissioning post LS2'
t_start = '2021-04-07 20:44:14.437000000'
t_end = '2021-04-07 20:55:41.364000000'
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
...@@ -177,17 +181,16 @@ ...@@ -177,17 +181,16 @@
# iQPS # iQPS
source_timestamp_qds_rq_df = rqd_query.find_source_timestamp_qds(timestamp_fgc_rqd, duration=[(10, 's'), (200, 's')]) source_timestamp_qds_rq_df = rqd_query.find_source_timestamp_qds(timestamp_fgc_rqd, duration=[(10, 's'), (200, 's')])
if Time.to_unix_timestamp(timestamp_fgc_rqd) > 1577833200000000000: if Time.to_unix_timestamp(timestamp_fgc_rqd) > 1577833200000000000:
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']) iqps_analog_dfs = rqd_query.query_iqps_analog_pm(source_timestamp_qds_rq_df, signal_names=['U_QS0_INT_A', 'U_QS0_EXT_A'])
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'])
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']) 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'])
else: else:
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']) 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'])
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']) 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'])
# nQPS # nQPS
source_timestamp_nqps_rqd_df = rqd_query.find_source_timestamp_nqps(timestamp_fgc_rqd) source_timestamp_nqps_rqd_df = rqd_query.find_source_timestamp_nqps(timestamp_fgc_rqd)
source_timestamp_nqps_rqf_df = rqf_query.find_source_timestamp_nqps(timestamp_fgc_rqf) source_timestamp_nqps_rqf_df = rqf_query.find_source_timestamp_nqps(timestamp_fgc_rqf)
u_nqps_rqd_dfs = rqd_query.query_nqps_voltage_pm(source_timestamp_qds_rq_df) u_nqps_rqd_dfs = rqd_query.query_nqps_voltage_pm(source_timestamp_qds_rq_df)
...@@ -245,12 +248,12 @@ ...@@ -245,12 +248,12 @@
# 4. Timestamps # 4. Timestamps
## 4.1. FPA ## 4.1. FPA
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. 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.
In short, the following criteria should be kept: In short, the following criteria should be kept:
- The PC timestamp (51_self) is QPS time stamp +/-20 ms. - The PC timestamp (51_self) is QPS time stamp +/-40 ms.
- Time stamp difference between FGC and EE: 100±15 ms - Time stamp delay between PIC and EE: 100±15 ms
If one or more of these conditions are not fulfilled, then an in-depth analysis has to be performed by the QPS team. If one or more of these conditions are not fulfilled, then an in-depth analysis has to be performed by the QPS team.
%% Cell type:code id: tags: %% Cell type:code id: tags:
...@@ -577,12 +580,11 @@ ...@@ -577,12 +580,11 @@
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
%matplotlib inline %matplotlib inline
if Time.to_unix_timestamp(timestamp_fgc_rqd) > 1577833200000000000: if Time.to_unix_timestamp(timestamp_fgc_rqd) > 1577833200000000000:
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) 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)
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)
else: else:
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) 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)
rq_analysis.results_table[['Circuit Name', 'Position', 'Delta_t(iQPS-PIC)','I_Q_RQD', 'I_Q_RQF', 'Delta_t(nQPS_RQD-PIC)', 'QDS trigger origin', 'dU_iQPS/dt_RQD', 'dU_iQPS/dt_RQF']] rq_analysis.results_table[['Circuit Name', 'Position', 'Delta_t(iQPS-PIC)','I_Q_RQD', 'I_Q_RQF', 'Delta_t(nQPS_RQD-PIC)', 'QDS trigger origin', 'dU_iQPS/dt_RQD', 'dU_iQPS/dt_RQF']]
``` ```
......
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