Skip to content

Commit

Permalink
Fix chgres_cube requirements. (#516)
Browse files Browse the repository at this point in the history
Some configurations of the chgres_cube do not require all these file definitions, so check for existence before including.

---------

Co-authored-by: Paul Madden <[email protected]>
  • Loading branch information
christinaholtNOAA and maddenp-noaa authored Jun 24, 2024
1 parent 62ee9e3 commit d0439b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/uwtools/drivers/chgres_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def namelist_file(self):
] + [
Path(config_files["data_dir_input_grid"]) / config_files[k]
for k in ("atm_files_input_grid", "grib2_file_input_grid", "sfc_files_input_grid")
if k in config_files
]
base_file = self._driver_config["namelist"].get("base_file")
yield [file(input_path) for input_path in input_paths] + (
Expand Down

0 comments on commit d0439b9

Please sign in to comment.