Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
acordonez committed Oct 20, 2023
1 parent 269c349 commit 19dc378
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmec/scripts/pmp_param_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ def check_for_opt(key, settings):
settings["test_data_path"] = model_dir
settings["metrics_output_path"] = wk_dir
if "sftlf_filename_template" in settings:
settings["sftlf_filename_template"] = os.path.join(model_dir,settings["sftlf_filename_template"])
settings["sftlf_filename_template"] = os.path.join(
model_dir, settings["sftlf_filename_template"]
)
if obs_dir is not None and "reference_data_path" in settings:
settings["reference_data_path"] = os.path.join(obs_dir,settings["reference_data_path"])
settings["reference_data_path"] = os.path.join(
obs_dir, settings["reference_data_path"]
)

if pmp_config == "monsoon_wang":
settings["test_data_path"] = os.path.join(model_dir, settings["test_data_path"])
Expand Down

0 comments on commit 19dc378

Please sign in to comment.