Commit 0890fb85 authored by thbuffet's avatar thbuffet
Browse files

Contributor

parent 76174721
Pipeline #2452285 passed with stage
in 16 seconds
......@@ -123,7 +123,13 @@
"scrolled": false
},
"outputs": [],
"source": []
"source": [
"hwc_test = 'PLI3.d2' \n",
"circuit_name = 'RB.A34' \n",
"campaign= 'Recommissioning post LS2' \n",
"t_start = '2021-03-24 22:19:06.563000000'\n",
"t_end = '2021-03-24 22:44:23.159000000'"
]
},
{
"cell_type": "code",
......@@ -166,6 +172,7 @@
" t_start = Time.to_unix_timestamp(t_start)\n",
" t_end = Time.to_unix_timestamp(t_end)\n",
" t_start_ref, t_end_ref = HwcSearchModuleMediator.get_last_ref_start_end_time('/eos/project/l/lhcsm/hwc/HWC_Summary.csv', circuit_name, hwc_test, Time.to_string_short(t_start))\n",
" print(t_start_ref, t_end_ref)\n",
" t_start_ref, t_end_ref = Time.to_unix_timestamp(t_start_ref), Time.to_unix_timestamp(t_end_ref)\n",
" is_automatic = False\n",
"\n",
......@@ -179,8 +186,12 @@
" source_timestamp_pc = rb_query.find_source_timestamp_pc(t_start, t_end)\n",
" timestamp_fgc = source_timestamp_pc.at[0, 'timestamp']\n",
" \n",
" source_timestamp_pc_ref = rb_query.find_source_timestamp_pc(t_start_ref, t_end_ref)\n",
" timestamp_fgc_ref = source_timestamp_pc_ref.at[0, 'timestamp']\n",
" \n",
" # PIC\n",
" timestamp_pic = rb_query.find_timestamp_pic(timestamp_fgc, spark=spark, duration=[(t_end-timestamp_fgc, 'ns')])\n",
" timestamp_pic_ref = rb_query.find_timestamp_pic(timestamp_fgc_ref, spark=spark, duration=[(t_end_ref-timestamp_fgc_ref, 'ns')])\n",
" i_a_df, i_ref_df = rb_query.query_pc_pm(timestamp_fgc, timestamp_fgc, signal_names=['I_A', 'I_REF'])\n",
" i_meas_df, i_earth_df, i_earth_pcnt_df, v_meas_df = rb_query.query_pc_pm(timestamp_fgc, min(timestamp_pic), signal_names=['I_MEAS', 'I_EARTH', 'I_EARTH_PCNT', 'V_MEAS'])\n",
" \n",
......@@ -192,9 +203,10 @@
" timestamp_fgc_ref = source_timestamp_pc_ref.at[0, 'timestamp']\n",
" else:\n",
" timestamp_fgc_ref = float('nan')\n",
" print(qqqq)\n",
" \n",
" # PIC Reference\n",
" timestamp_pic_ref = rb_query.find_timestamp_pic(timestamp_fgc_ref, spark=spark, duration=[(t_end_ref-timestamp_fgc_ref, 'ns')])\n",
" #timestamp_pic_ref = rb_query.find_timestamp_pic(timestamp_fgc_ref, spark=spark, duration=[(t_end_ref-timestamp_fgc_ref, 'ns')])\n",
" i_meas_ref_df = rb_query.query_pc_pm(timestamp_fgc_ref, min(timestamp_pic_ref), signal_names=['I_MEAS'])[0]\n",
" \n",
" # EE Voltage\n",
......@@ -401,7 +413,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"deletable": false
"deletable": false,
"scrolled": true
},
"outputs": [],
"source": [
......@@ -417,7 +430,7 @@
"source": [
"## 4.4. Power Converter Voltage Analysis\n",
"*CRITERIA*\n",
"- Check if the V_MEAS voltage is within -1.5 +/- 0.5 V range 1 s after the EE timestamp\n",
"- Check if the V_MEAS voltage is within -3.7 +/- 0.5 V range 1 s after the EE timestamp, assuming that I_MEAS = ~9 kA.\n",
"\n",
"*GRAPHS*\n",
"- t = 0 s corresponds to the PM timestamp of the FGC"
......@@ -432,7 +445,7 @@
"outputs": [],
"source": [
"title = create_hwc_plot_title_with_circuit_name(circuit_name=circuit_name, hwc_test=hwc_test, t_start=t_start, t_end=t_end, signal='V_MEAS')\n",
"rb_analysis.assert_v_meas(timestamp_ee_even, min(timestamp_pic), t_after_ee=1, v_meas_df=v_meas_df, value_min=-2.0, value_max=-1.0, title=title, xmax=25)"
"rb_analysis.assert_v_meas(timestamp_ee_even, min(timestamp_pic), t_after_ee=1, v_meas_df=v_meas_df, value_min=-4.2, value_max=-3.2, title=title, xmax=15)"
]
},
{
......@@ -612,7 +625,7 @@
"outputs": [],
"source": [
"timestamp = t_start if source_timestamp_leads_even_df.empty else source_timestamp_leads_even_df.loc[0, 'timestamp']\n",
"rb_analysis.analyze_leads_voltage(u_hts_even_dfs, circuit_name, timestamp, signal='U_HTS', value_min=-0.001, value_max=0.001)"
"rb_analysis.analyze_leads_voltage(u_hts_even_dfs, circuit_name, timestamp, signal='U_HTS', value_min=-0.003, value_max=0.003)"
]
},
{
......
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