Skip to content

Commit

Permalink
input specs modification fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielSoto-INL committed Oct 16, 2024
1 parent 860876c commit 1552aaa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Components.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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

Expand Down

0 comments on commit 1552aaa

Please sign in to comment.