Skip to content

[SIGMON-479] new RQ reference for 11R8

Aleksandra Mnich requested to merge SIGMON-479_qh_references_for_rq into dev

task: https://its.cern.ch/jira/browse/SIGMON-479
All the QH references are now 'recent enough' so that I_HDS exists.

from lhcsmapi.api import query
import pandas as pd

rq = pd.read_csv('./RQ_Reference_Discharges.csv')

def query_pm(row):
    cell = row.name
    timestamp = row['Timestamp']
    return query.query_pm_signals('QPS', 'DQAMCNMQ_PMHSU', cell, [f"{cell}:I_HDS_1", f"{cell}:I_HDS_2"], timestamp)

result = rq.groupby(by='Cell', group_keys=True).max().apply(query_pm, axis=1)
Edited by Aleksandra Mnich

Merge request reports