From 1552aaabae37724d0c954e4c916161fb34f544e1 Mon Sep 17 00:00:00 2001 From: "Gabriel J. Soto" Date: Wed, 16 Oct 2024 13:57:14 -0600 Subject: [PATCH] input specs modification fix --- src/Components.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Components.py b/src/Components.py index 9df6bc5d..2daf45ec 100644 --- a/src/Components.py +++ b/src/Components.py @@ -118,8 +118,8 @@ def get_input_specs(cls): for param_name, param_key in config["add_params"]: new_sub.addParam(param_name, descr=current_sub.parameters[param_key]['description']) # Replace the old sub with the new one - current_sub.popSub(sub_name) - current_sub.addSub(new_sub) + _ = sub.popSub(sub_name) + sub.addSub(new_sub) for sub in input_specs.subs: if sub.getName() == "economics": @@ -133,9 +133,9 @@ def get_input_specs(cls): # Add parameters if any for param_name, param_key in config["add_params"]: new_sub.addParam(param_name, descr=current_sub.parameters[param_key]['description']) - # Replace the old sub with the new one - current_sub.popSub(sub_name) - current_sub.addSub(new_sub) + # Replace the old sub with the new one + econ_sub.popSub(sub_name) + econ_sub.addSub(new_sub) return input_specs