Skip to content

Commit

Permalink
Add update_input_files() parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Byrnetp committed Nov 26, 2024
1 parent 81545e9 commit 9ed08b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uwtools/drivers/chgres_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def namelist_file(self):
The namelist file.
"""

def update_input_files(k):
def update_input_files(k, config_files, input_files):
v = config_files[k]
context = ".".join(["config", k])
if isinstance(v, str):
Expand Down Expand Up @@ -58,14 +58,14 @@ def update_input_files(k):
]:
if k in config_files:
grid_path = Path(config_files["data_dir_input_grid"])
update_input_files(k)
update_input_files(k, config_files, input_files)
for k in [
"orog_files_input_grid",
"orog_files_target_grid",
]:
if k in config_files:
grid_path = Path(config_files[k.replace("files", "dir")])
update_input_files(k)
update_input_files(k, config_files, input_files)
yield [file(Path(input_file), context) for input_file, context in input_files]
self._create_user_updated_config(
config_class=NMLConfig,
Expand Down

0 comments on commit 9ed08b9

Please sign in to comment.