From aa7cd033e6121362bdb4841cb773b86e39962c4c Mon Sep 17 00:00:00 2001 From: NiharSaha Date: Mon, 13 Dec 2021 19:04:42 +0100 Subject: [PATCH] Removed dict for wantSummary --- Validation/Performance/python/TimeMemoryG4Info.py | 5 ++--- Validation/Performance/python/TimeMemoryInfo.py | 5 ++--- Validation/Performance/python/TimeMemoryJobReport.py | 5 ++--- Validation/Performance/python/TimeMemorySummary.py | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Validation/Performance/python/TimeMemoryG4Info.py b/Validation/Performance/python/TimeMemoryG4Info.py index 93d861975ccf6..a30ffb0ab2045 100644 --- a/Validation/Performance/python/TimeMemoryG4Info.py +++ b/Validation/Performance/python/TimeMemoryG4Info.py @@ -39,8 +39,7 @@ def customise(process): if hasattr(process,'options'): process.options.wantSummary = cms.untracked.bool(True) else: - process.options = dict( - wantSummary = True - ) + process.options.wantSummary = True + return(process) diff --git a/Validation/Performance/python/TimeMemoryInfo.py b/Validation/Performance/python/TimeMemoryInfo.py index a1a64dab77b04..9e6c7ede7e9a5 100644 --- a/Validation/Performance/python/TimeMemoryInfo.py +++ b/Validation/Performance/python/TimeMemoryInfo.py @@ -13,8 +13,7 @@ def customise(process): if hasattr(process,'options'): process.options.wantSummary = cms.untracked.bool(True) else: - process.options = dict( - wantSummary = True - ) + process.options.wantSummary = True + return(process) diff --git a/Validation/Performance/python/TimeMemoryJobReport.py b/Validation/Performance/python/TimeMemoryJobReport.py index dd92d39f336db..e029a33c8951d 100644 --- a/Validation/Performance/python/TimeMemoryJobReport.py +++ b/Validation/Performance/python/TimeMemoryJobReport.py @@ -16,9 +16,8 @@ def customiseWithTimeMemoryJobReport(process): if hasattr(process,"options"): process.options.wantSummary = cms.untracked.bool(False) else: - process.options = dict( - wantSummary = False - ) + process.options.wantSummary = False + #Silence the final Timing service report process.MessageLogger.cerr.TimeReport = dict(limit = 0) diff --git a/Validation/Performance/python/TimeMemorySummary.py b/Validation/Performance/python/TimeMemorySummary.py index a3b7eeb659220..fbeb1460acf55 100644 --- a/Validation/Performance/python/TimeMemorySummary.py +++ b/Validation/Performance/python/TimeMemorySummary.py @@ -15,9 +15,8 @@ def customise(process): if hasattr(process,"options"): process.options.wantSummary = cms.untracked.bool(True) else: - process.options = dict( - wantSummary = True - ) + process.options.wantSummary = True + return(process)