Skip to content

Commit 2e2e1ac

Browse files
committed
Small CHange
1 parent 114b537 commit 2e2e1ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

visualCaseGen/custom_widget_types/case_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def remove_user_nl(model, vars, log_title=True, out=None):
110110
"""
111111

112112
# confirm var_val_pairs is a list of tuples:
113-
assert isinstance(var_val_pairs, list)
113+
assert isinstance(vars, list)
114114

115115
out = DummyOutput() if out is None else out
116116

@@ -138,7 +138,7 @@ def _do_remove_user_nl(user_nl_filename):
138138
]
139139

140140
# Write back filtered lines
141-
with open(user_nl_path, "w") as f:
141+
with open(Path(caseroot) /user_nl_filename, "w") as f:
142142
f.writelines(new_lines)
143143

144144

0 commit comments

Comments
 (0)