From 1d56d51ae1dcaf351cdaf84af6b2b563959d95f9 Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Thu, 3 Mar 2016 12:36:37 +0000 Subject: [PATCH] DDSim: DumpSteeringfile: Order options by name also for helper objects Add white line before documentation block for better readability --- DDSim/DD4hepSimulation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py index e5e288241..d135b0198 100644 --- a/DDSim/DD4hepSimulation.py +++ b/DDSim/DD4hepSimulation.py @@ -628,10 +628,10 @@ SIM = DD4hepSimulation() steeringFileBase += "## %s \n" % "\n## ".join( parameter.__doc__.splitlines() ) steeringFileBase += "################################################################################\n" options = parameter.getOptions() - for opt,valAndDoc in options.iteritems(): + for opt,valAndDoc in sorted( options.iteritems(), sortParameters ): parValue, parDoc = valAndDoc if parDoc: - steeringFileBase += "## %s\n" % "\n## ".join(parDoc.splitlines()) + steeringFileBase += "\n## %s\n" % "\n## ".join(parDoc.splitlines()) ## add quotes if it is a string if isinstance( parValue, basestring ): steeringFileBase += "SIM.%s.%s = \"%s\"\n" %(parName, opt, parValue) -- GitLab