Skip to content

Commit

Permalink
DRY
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Jun 11, 2024
1 parent 0faaaaa commit c967a0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uwtools/drivers/ww3.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ def namelist_file(self):
yield self._taskname(fn)
path = self._rundir / fn
yield asset(path, path.is_file)
yield file(path=Path(self._driver_config["namelist"]["template_file"]))
template_file = Path(self._driver_config["namelist"]["template_file"])
yield file(template_file)
render(
input_file=Path(self._driver_config["namelist"]["template_file"]),
input_file=template_file,
output_file=path,
overrides=self._driver_config["namelist"]["template_values"],
)
Expand Down

0 comments on commit c967a0f

Please sign in to comment.