From c3e49af4262c7ef3ab1ac8d2e27a9f746bdaf285 Mon Sep 17 00:00:00 2001 From: jkirk5 Date: Thu, 26 Dec 2024 15:08:54 -0500 Subject: [PATCH] cleaner verbosity comments for L2 --- aviary/interface/methods_for_level2.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/aviary/interface/methods_for_level2.py b/aviary/interface/methods_for_level2.py index 4efcd235b..4ca5ebd9f 100644 --- a/aviary/interface/methods_for_level2.py +++ b/aviary/interface/methods_for_level2.py @@ -2090,12 +2090,12 @@ def add_driver( driver.options["optimizer"] = optimizer if use_coloring: # define coloring options by verbosity - if verbosity <= Verbosity.VERBOSE: # if QUIET, BRIEF + if verbosity < Verbosity.VERBOSE: # QUIET, BRIEF driver.declare_coloring(show_summary=False) - elif verbosity == Verbosity.DEBUG: - driver.declare_coloring(show_summary=True, show_sparsity=True) - else: # if VERBOSE + elif verbosity == Verbosity.VERBOSE: driver.declare_coloring(show_summary=True) + else: # DEBUG + driver.declare_coloring(show_summary=True, show_sparsity=True) if driver.options["optimizer"] == "SNOPT": # Print Options # @@ -2103,7 +2103,7 @@ def add_driver( isumm, iprint = 0, 0 elif verbosity == Verbosity.BRIEF: isumm, iprint = 6, 0 - elif verbosity > Verbosity.BRIEF: + elif verbosity > Verbosity.BRIEF: # VERBOSE, DEBUG isumm, iprint = 6, 9 driver.opt_settings["iSumm"] = isumm driver.opt_settings["iPrint"] = iprint @@ -2152,11 +2152,11 @@ def add_driver( if optimizer in ("SNOPT", "IPOPT"): if verbosity == Verbosity.QUIET: driver.options['print_results'] = False - elif verbosity < Verbosity.DEBUG: + elif verbosity < Verbosity.DEBUG: # QUIET, BRIEF, VERBOSE driver.options['print_results'] = 'minimal' # optimizer agnostic settings - if verbosity > Verbosity.QUIET: + if verbosity > Verbosity.QUIET: # BRIEF, VERBOSE, QUIET if isinstance(verbosity, list): driver.options['debug_print'] = ['desvars'] elif verbosity == Verbosity.DEBUG: