Skip to content

Commit

Permalink
Only add an OutputLevel if Verbosity is set (#205)
Browse files Browse the repository at this point in the history
Unlike Marlin Gaudi doesn't override OutputLevels of Algorithms if they
have been manually set in the options file. Hence, if we populate all
wrapped processor OutputLevels it will require changing all of them
manually afterwards if we want the global OutputLevel that is set in the
AlgorithmMgr to apply.
  • Loading branch information
tmadlener authored Dec 9, 2024
1 parent f895744 commit c1227e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k4MarlinWrapper/scripts/convertMarlinSteeringToGaudi.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ def verbosityTranslator(marlinLogLevel):
def convertParameters(params, proc, globParams, constants):
""" convert json of parameters to gaudi """
lines = []
lines.append("%s.OutputLevel = %s" % (proc.replace(".", "_"), verbosityTranslator(globParams.get("Verbosity"))))
if "Verbosity" in params:
lines.append("%s.OutputLevel = %s" % (proc.replace(".", "_"), verbosityTranslator(params["Verbosity"])))

lines.append("%s.ProcessorType = \"%s\"" % (proc.replace(".", "_"), params.get("type")))
lines.append("%s.Parameters = {" % proc.replace(".", "_"))
for para in sorted(params):
Expand Down

0 comments on commit c1227e9

Please sign in to comment.