Skip to content

Commit bb1707c

Browse files
GabrielSoto-INLdylanjm
authored andcommitted
input specs modification fix
1 parent e33c390 commit bb1707c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Components.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def get_input_specs(cls):
118118
for param_name, param_key in config["add_params"]:
119119
new_sub.addParam(param_name, descr=current_sub.parameters[param_key]['description'])
120120
# Replace the old sub with the new one
121-
current_sub.popSub(sub_name)
122-
current_sub.addSub(new_sub)
121+
_ = sub.popSub(sub_name)
122+
sub.addSub(new_sub)
123123

124124
for sub in input_specs.subs:
125125
if sub.getName() == "economics":
@@ -133,9 +133,9 @@ def get_input_specs(cls):
133133
# Add parameters if any
134134
for param_name, param_key in config["add_params"]:
135135
new_sub.addParam(param_name, descr=current_sub.parameters[param_key]['description'])
136-
# Replace the old sub with the new one
137-
current_sub.popSub(sub_name)
138-
current_sub.addSub(new_sub)
136+
# Replace the old sub with the new one
137+
econ_sub.popSub(sub_name)
138+
econ_sub.addSub(new_sub)
139139

140140
return input_specs
141141

0 commit comments

Comments
 (0)