Skip to content

Commit

Permalink
Fix long line in create diag table script, set build settings to only…
Browse files Browse the repository at this point in the history
… print in debug mode
  • Loading branch information
mkavulich committed Oct 16, 2024
1 parent a92133b commit 4076da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ush/create_diag_table_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def create_diag_table_file(run_dir):

settings = {"starttime": CDATE, "cres": CRES, "additional_entries": ""}
if UFS_FIRE:
settings["additional_entries"] = '"gfs_phys","fsmoke","fsmoke","fv3_history","all",.false.,"none",2'
settings["additional_entries"] = \
'"gfs_phys","fsmoke","fsmoke","fv3_history","all",.false.,"none",2'
settings_str = cfg_to_yaml_str(settings)

print_info_msg(
Expand Down
2 changes: 1 addition & 1 deletion ush/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def setup(USHdir, user_config_fn="config.yaml", debug: bool = False):

# Load build settings as a dictionary; will be used later to make sure the build is consistent with the user settings
build_config = load_config_file(build_config_fp)
logger.debug(f"Build configuration\n{build_config}")

# Set up some paths relative to the SRW clone
expt_config["user"].update(set_srw_paths(USHdir, expt_config))
Expand Down Expand Up @@ -1510,7 +1511,6 @@ def _dict_find(user_dict, substring):
# Check that UFS FIRE settings are correct and consistent
#
# -----------------------------------------------------------------------
print(build_config)
fire_conf = expt_config["fire"]
if fire_conf["UFS_FIRE"]:
if build_config["Application"]!="ATMF":
Expand Down

0 comments on commit 4076da5

Please sign in to comment.