From 95581275a0eaa6c357e9bed62ef4bb29a468edb7 Mon Sep 17 00:00:00 2001 From: Dani Coleman <30841536+bitterbark@users.noreply.github.com> Date: Thu, 23 May 2024 16:10:57 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jesse Nusbaumer --- lib/adf_diag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adf_diag.py b/lib/adf_diag.py index 4e0454836..8476750b7 100644 --- a/lib/adf_diag.py +++ b/lib/adf_diag.py @@ -1209,7 +1209,7 @@ def move_tsfiles_for_mdtf(self, verbose): # # Destination file is MDTF directory and name structure # - mdtf_dir = os.sep.join([mdtf_model_data_root, case_name, freq]) + mdtf_dir = os.path.join(mdtf_model_data_root, case_name, freq) os.makedirs(mdtf_dir, exist_ok=True) mdtf_file = ( @@ -1264,7 +1264,7 @@ def setup_run_mdtf(self): start_years = self.climo_yrs["syears"] end_years = self.climo_yrs["eyears"] - case_list_all = list(()) + case_list_all = [] for icase, case in enumerate(case_names): case_list_values = [ case,