From 199ee626d2b8090b4d259b54f2002dd68742e6a8 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Fri, 19 Jul 2019 10:51:58 +0200 Subject: [PATCH] TrigMETMonitoring: Python fixes related to flake8 warnings Fix warnings/errors flagged by `flake8` like unused variables/imports, use of deprecaetd Py2 features and stylistic code problems. --- .../python/TrigMETMonitorAlgorithm.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Trigger/TrigMonitoring/TrigMETMonitoring/python/TrigMETMonitorAlgorithm.py b/Trigger/TrigMonitoring/TrigMETMonitoring/python/TrigMETMonitorAlgorithm.py index 92ab457b04a..dbdc5793f3d 100644 --- a/Trigger/TrigMonitoring/TrigMETMonitoring/python/TrigMETMonitorAlgorithm.py +++ b/Trigger/TrigMonitoring/TrigMETMonitoring/python/TrigMETMonitorAlgorithm.py @@ -14,12 +14,6 @@ def TrigMETMonConfig(inputFlags): '''Function to configures some algorithms in the monitoring system.''' - ### STEP 1 ### - # Define one top-level monitoring algorithm. The new configuration - # framework uses a component accumulator. - from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator - result = ComponentAccumulator() - # The following class will make a sequence, configure algorithms, and link # them to GenericMonitoringTools from AthenaMonitoring import AthMonitorCfgHelper @@ -108,11 +102,6 @@ def TrigMETMonConfig(inputFlags): # just return directly (and not create "result" above) return helper.result() - # # Otherwise, merge with result object and return - # acc = helper.result() - # result.merge(acc) - # return result - if __name__=='__main__': # Setup the Run III behavior from AthenaCommon.Configurable import Configurable @@ -120,7 +109,7 @@ if __name__=='__main__': # Setup logs from AthenaCommon.Logging import log - from AthenaCommon.Constants import DEBUG,INFO + from AthenaCommon.Constants import DEBUG log.setLevel(DEBUG) # Set the Athena configuration flags -- GitLab