Skip to content

Commit

Permalink
Merge branch 'main' into feature/1084_lee1043_MJO-xcdat
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed May 2, 2024
2 parents bf34acc + 6d6b688 commit 2ac7e79
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pcmdi_metrics/variability_mode/variability_modes_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@

model_path_list = sort_human(model_path_list)

debug_print("model_path_list: " + str(model_path_list), debug)
debug_print(f"model_path_list: f{model_path_list}", debug)

# Find where run can be gripped from given filename template for modpath
if realization == "*":
Expand All @@ -561,12 +561,9 @@
# -------------------------------------------------
for model_path in model_path_list:
print("model_path:", model_path)
# try:
if 1:
try:
if realization == "*":
run = re.split("[._]", (model_path.split("/")[-1]).split("."))[
run_in_modpath
]
run = re.split("[._]", model_path.split("/")[-1])[run_in_modpath]
else:
run = realization
print(" --- ", run, " ---")
Expand Down Expand Up @@ -1031,14 +1028,14 @@
run=run,
cmec_flag=cmec,
)
"""

except Exception as err:
if debug:
raise
else:
print("warning: failed for ", model, run, err)
pass
"""

# ========================================================================
# Dictionary to JSON: collective JSON at the end of model_realization loop
# ------------------------------------------------------------------------
Expand Down

0 comments on commit 2ac7e79

Please sign in to comment.