From 08815b3296ff2210c7c0d57fff16c33b71f946b2 Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Thu, 21 Mar 2024 11:04:24 +0100 Subject: [PATCH] Update check im pyomo is used to new parameter names --- etrago/tools/utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etrago/tools/utilities.py b/etrago/tools/utilities.py index 55205579..e9f66bcb 100755 --- a/etrago/tools/utilities.py +++ b/etrago/tools/utilities.py @@ -2589,7 +2589,7 @@ def check_args(etrago): ) etrago.args["method"]["pyomo"] = True - if not etrago.args["method"]["pyomo"]: + if etrago.args["method"]["formulation"] != "pyomo": try: # The import isn't used, but just here to test for Gurobi. # So we can make `flake8` stop complaining about the "unused