Commit 1739e29f authored by Aleksandra Mnich's avatar Aleksandra Mnich
Browse files

[SIGMON-222] import reference not reference.Reference.Reference

parent 8bc2645a
Pipeline #3189384 failed with stage
in 115 minutes and 20 seconds
......@@ -50,16 +50,16 @@
"source": [
"# 1. Find QH Post Mortem Entries"
]
},
{
 
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"parameters"
 
 
},
"outputs": [],
"source": [
"circuit_type = 'RB'\n",
"qh_pm_search = QhPmSearchModuleMediator(DateTimeBaseModule(start_date_time='2021-05-19 11:00:00+01:00', end_date_time='2021-05-19 12:09:00+01:00'), circuit_type=circuit_type)"
......@@ -154,11 +154,11 @@
"Line for actual signal is continuous and dashed for the reference.\n",
"\n",
"Left plot (Voltage view)\n",
"- the querried and filtered quench heater voltage on the left axis, U_HDS\n",
"\n",
"Middle plot (Current view)\n",
"Middle plot (Current view)\n",
"- the querried and filtered quench heater current on the left axis, I_HDS\n",
"\n",
"Bottom plot (Resistance view)\n",
"- the calculated quench heater resistance on the left axis, R_HDS\n",
"\n"
......
......@@ -51,15 +51,15 @@
%% Cell type:code id: tags:skip_output
``` python
from lhcsmapi.pyedsl.QueryBuilder import QueryBuilder
from lhcsmapi.reference.Reference import Reference
from lhcsmapi import reference
def query_qh_parallel(input_param):
source, timestamp, is_ref = input_param
if is_ref:
timestamp = Reference.get_quench_heater_reference_discharge('RQ', source, timestamp)
timestamp = reference.get_quench_heater_reference_discharge('RQ', source, timestamp)
u_hds_dfs = QueryBuilder().with_pm() \
.with_timestamp(timestamp) \
.with_circuit_type('RQ') \
.with_metadata(circuit_name=circuit_name, system='QH', signal=['U_HDS', 'I_HDS'], source=source,
......@@ -146,11 +146,11 @@
# Get matching voltage and current
u_hds_dfs = list(filter(lambda col: 'U_HDS' in col.columns.values[0], qh_source_timestamp_dfs_dct[(source, timestamp)]))
i_hds_dfs = list(filter(lambda col: 'I_HDS' in col.columns.values[0], qh_source_timestamp_dfs_dct[(source, timestamp)]))
# Get matching reference voltage and current
timestamp_ref = Reference.get_quench_heater_reference_discharge('RQ', source, timestamp)
timestamp_ref = reference.get_quench_heater_reference_discharge('RQ', source, timestamp)
u_hds_ref_dfs = list(filter(lambda col: 'U_HDS' in col.columns.values[0], qh_source_timestamp_ref_dfs_dct[(source, timestamp_ref)]))
i_hds_ref_dfs = list(filter(lambda col: 'I_HDS' in col.columns.values[0], qh_source_timestamp_ref_dfs_dct[(source, timestamp_ref)]))
nominal_voltage = discharge_level
mean_start_value = 15 if nominal_voltage < 450 else 50
......
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