From 4f0d26840b5a5b16e83dd06b8694f6372e2e9258 Mon Sep 17 00:00:00 2001 From: Sabri Fernana <sabri.fernana@gmail.com> Date: Fri, 6 Oct 2017 02:03:57 +0200 Subject: [PATCH] FccAnalysis application: formatting of NumberOfEvents --- Workflow/Modules/FccAnalysis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Workflow/Modules/FccAnalysis.py b/Workflow/Modules/FccAnalysis.py index 5ff4d8592..8c61b777c 100644 --- a/Workflow/Modules/FccAnalysis.py +++ b/Workflow/Modules/FccAnalysis.py @@ -153,12 +153,12 @@ class FccAnalysis(ModuleBase): tempContent = content if 'Main:numberOfEvents' in tempContent and self.NumberOfEvents: - eventSetting = "Main:numberOfEvents = %d" % self.NumberOfEvents + eventSetting = "Main:numberOfEvents = %s" % self.NumberOfEvents tempContent = re.sub(r'Main:numberOfEvents *= *\d+', eventSetting, tempContent) elif self.NumberOfEvents: # add the card line eventSetting = ["! N) AUTOMATIC GENERATION OF CODE DONE BY FCC APPLICATION FOR EVENT NUMBER SETTING"] - eventSetting += ["Main:numberOfEvents = %d ! number of events to generate" % self.NumberOfEvents] + eventSetting += ["Main:numberOfEvents = %s ! number of events to generate" % self.NumberOfEvents] tempContent = "%s\n%s\n" % (tempContent, "\n".join(eventSetting)) if "Random:setSeed" in tempContent and "Random:seed" in tempContent and self.RandomSeed: -- GitLab