Corrected missing import in IT, IPD, IPQ QHDA, corrected query cell in AN_RQ_PLIx.b3
%% Cell type:markdown id: tags: | ||
<h1><center>Analysis of PLI3.b3 HWC Test in an RQ Circuit</center></h1> | ||
<img src="https://gitlab.cern.ch/LHCData/lhc-sm-hwc/raw/master/figures/rq/RQ.png" width=75%> | ||
The circuit is powered up to I_INTERM_2. After a short plateau the EE system is activated by a quench simulation in a current lead. | ||
<img src="https://gitlab.cern.ch/LHCData/lhc-sm-hwc/raw/master/figures/rq/PLI3_current.png" width=75%> | ||
The aim of this test is to check the performance of the QPS and EE systems and the correct current sharing in the different FWD. The current to earth and the current error from the PC are checked during the sequence. | ||
The required analysis and signatures are listed below. | ||
|Responsible|Type of analysis|Criterion| | ||
|-----------|----------------|---------| | ||
|PC|Free-Wheel Diode Check|Smooth exponential waveform on the PC voltage and current during the whole decay See EDMS <a href="https://edms.cern.ch/ui/#!master/navigator/document?D:1901098320:1901098320:subDocs">910092</a> for current and voltage criteria| | ||
|PC|Automatic analysis on earth current and error current|I_EARTH_PLI3_B3 < I_EARTH_MAX and I_ERR_PLI3_B3 < I_ERR_MAX| | ||
|EE|Energy discharge|Maximum voltage on EE resistance ($R*I$±10%) and maximum temperature of the EE resistance (±10% from theoretical value)| | ||
source: Powering Procedure and Acceptance Criteria for the 13 kA Quadrupole (RQD-RQF) Circuits, MP3 Procedure, <a href="https://edms.cern.ch/document/874714/5.1">https://edms.cern.ch/document/874714/5.1</a> (Please follow this link for the latest version) | ||
%% Cell type:markdown id: tags: | ||
# Analysis Assumptions | ||
- We consider standard analysis scenarios, i.e., all signals can be queried. Depending on what signal is missing, an analysis can raise a warning and continue or an error and abort the analysis. | ||
- It is recommended to execute each cell one after another. However, since the signals are queried prior to an analysis, any order of execution is allowed. In case an analysis cell is aborted, the following ones may not be executed (e.g. I\_MEAS not present). | ||
# Plot Convention | ||
- Scales are labeled with signal name followed by a comma and a unit in the square bracket, e.g., I_MEAS, [A] | ||
- If a reference signal is present, it is represented with a dashed line | ||
- If the main current is present, its axis is on the left. Remaining signals are attached to the axis on the right. The legend of these signals is located on the lower left and upper right, respectively. | ||
- The grid comes from the left axis | ||
- Title contains timestamp, circuit name, signal name allowing for re-access the signal. | ||
- The plots assigned to the left scale got colors: blue (C0) and orange (C1). Plots presented on the right have colors red (C2) and green (C3). | ||
- Each plot has an individual time-synchronization mentioned explicitly in the description. | ||
- If an axis has a single signal, change color of the label to match the signal's color. Otherwise, the label color is black. | ||
%% Cell type:markdown id: tags: | ||
# 0. Initialise Working Environment | ||
%% Cell type:code id: tags: | ||
``` python | ||
# External libraries | ||
print('Loading (1/11)'); import sys | ||
print('Loading (2/11)'); from IPython.display import display, Javascript, clear_output | ||
# Internal libraries | ||
print('Loading (3/11)'); import lhcsmapi | ||
print('Loading (4/11)'); from lhcsmapi.Time import Time | ||
print('Loading (5/11)'); from lhcsmapi.Timer import Timer | ||
print('Loading (6/11)'); from lhcsmapi.analysis.RqCircuitQuery import RqCircuitQuery | ||
print('Loading (7/11)'); from lhcsmapi.analysis.RqCircuitAnalysis import RqCircuitAnalysis | ||
print('Loading (8/11)'); from lhcsmapi.analysis.report_template import apply_report_template | ||
print('Loading (9/11)'); from lhcsmapi.gui.hwc.HwcSearchModuleMediator import HwcSearchModuleMediator | ||
print('Loading (10/11)'); from lhcsmapi.pyedsl.PlotBuilder import create_hwc_plot_title_with_circuit_name | ||
print('Loading (11/11)'); from lhcsmapi.analysis.expert_input import get_expert_decision | ||
analysis_start_time = Time.get_analysis_start_time() | ||
clear_output() | ||
lhcsmapi.get_lhcsmapi_version() | ||
lhcsmapi.get_lhcsmhwc_version('../__init__.py') | ||
print('Analysis performed by %s' % HwcSearchModuleMediator.get_user()) | ||
``` | ||
%% Cell type:markdown id: tags: | ||
# 1. User Input | ||
1. Copy code from AccTesting and paste into an empty cell below | ||
<img src="https://gitlab.cern.ch/LHCData/lhc-sm-hwc/-/raw/master/figures/swan-manual-acctesting-integration.png"> | ||
- If you only want to test the notebook only for the copy&paste feature (without opening the AccTesting), please copy and execute the code below | ||
``` | ||
hwc_test = 'PLI3.b3' | ||
circuit_name = 'RQD.A12' | ||
campaign = 'HWC_2017' | ||
t_start = '2017-04-24 19:29:45.679' | ||
t_end = '2017-04-24 19:51:14.809' | ||
``` | ||
2. To analyze a historical test with a browser GUI, copy and execute the following code in the cell below | ||
``` | ||
circuit_type = 'RQ' | ||
hwc_test = 'PLI3.b3' | ||
hwcb = HwcSearchModuleMediator(circuit_type=circuit_type, hwc_test=hwc_test, hwc_summary_path='/eos/project/l/lhcsm/hwc/HWC_Summary.csv') | ||
``` | ||
- 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: | ||
``` python | ||
``` |