From 07366c133c8f613b9210a66cf3b408b21a835d2e Mon Sep 17 00:00:00 2001 From: Simon Mazenoux <simon.mazenoux@cern.ch> Date: Tue, 13 Aug 2024 15:36:31 +0200 Subject: [PATCH] remove_compatible_circuit_types_method --- lhcsmapi/api/analysis/qh/quench_heater_ccc.py | 13 ------------- .../analysis/qh/quench_heater_voltage_analysis.py | 11 ----------- .../qh/quench_heater_voltage_current_analysis.py | 5 ----- 3 files changed, 29 deletions(-) diff --git a/lhcsmapi/api/analysis/qh/quench_heater_ccc.py b/lhcsmapi/api/analysis/qh/quench_heater_ccc.py index 68f535d..0b5d006 100644 --- a/lhcsmapi/api/analysis/qh/quench_heater_ccc.py +++ b/lhcsmapi/api/analysis/qh/quench_heater_ccc.py @@ -53,19 +53,6 @@ class QHCCCAnalysis(analysis.Analysis): if initial_charge_check: self._charge_check_level = 800 - @staticmethod - def compatible_circuit_types(): - return [ - signal_metadata.CircuitType.RB, - signal_metadata.CircuitType.RQ, - signal_metadata.CircuitType.IPD2, - signal_metadata.CircuitType.IPD2_B1B2, - signal_metadata.CircuitType.IPQ2, - signal_metadata.CircuitType.IPQ4, - signal_metadata.CircuitType.IPQ8, - signal_metadata.CircuitType.IT, - ] - @property def initial_charge_check(self): """Returns whether if the initial charge check has been enabled.""" diff --git a/lhcsmapi/api/analysis/qh/quench_heater_voltage_analysis.py b/lhcsmapi/api/analysis/qh/quench_heater_voltage_analysis.py index 12c2b23..e5f8478 100644 --- a/lhcsmapi/api/analysis/qh/quench_heater_voltage_analysis.py +++ b/lhcsmapi/api/analysis/qh/quench_heater_voltage_analysis.py @@ -43,17 +43,6 @@ class QuenchHeaterVoltageAnalysis(analysis.Analysis): super().__init__(identifier) - @staticmethod - def compatible_circuit_types(): - return [ - signal_metadata.CircuitType.IPD2, - signal_metadata.CircuitType.IPD2_B1B2, - signal_metadata.CircuitType.IPQ2, - signal_metadata.CircuitType.IPQ4, - signal_metadata.CircuitType.IPQ8, - signal_metadata.CircuitType.IT, - ] - def search_discharges(self) -> pd.DataFrame: return _common.find_source_timestamp_qh( self._circuit_type, self._circuit_name, self._start_time, self._stop_time diff --git a/lhcsmapi/api/analysis/qh/quench_heater_voltage_current_analysis.py b/lhcsmapi/api/analysis/qh/quench_heater_voltage_current_analysis.py index 7e159fa..61e5ec3 100644 --- a/lhcsmapi/api/analysis/qh/quench_heater_voltage_current_analysis.py +++ b/lhcsmapi/api/analysis/qh/quench_heater_voltage_current_analysis.py @@ -10,7 +10,6 @@ from lhcsmapi.api.analysis.qh import _common from lhcsmapi.api import analysis from lhcsmapi.Time import Time -from lhcsmapi.metadata import signal_metadata class QuenchHeaterVoltageCurrentAnalysis(analysis.Analysis): @@ -46,10 +45,6 @@ class QuenchHeaterVoltageCurrentAnalysis(analysis.Analysis): super().__init__(identifier) - @staticmethod - def compatible_circuit_types(): - return [signal_metadata.CircuitType.RB, signal_metadata.CircuitType.RQ] - def search_discharges(self) -> pd.DataFrame: return _common.find_source_timestamp_qh( self._circuit_type, self._circuit_name, self._start_time, self._stop_time -- GitLab