From 3e5fedd9db745117f3bd665a211fb1bba0aab265 Mon Sep 17 00:00:00 2001 From: Negin Sobhani Date: Tue, 4 Jan 2022 23:27:14 -0700 Subject: [PATCH 1/2] verbose debug as subparser options. --- python/ctsm/subset_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ctsm/subset_data.py b/python/ctsm/subset_data.py index f84defc9c6..e40ea6e3b4 100644 --- a/python/ctsm/subset_data.py +++ b/python/ctsm/subset_data.py @@ -329,6 +329,7 @@ def get_parser(): type=str, default="", ) + add_logging_args(subparser) # -- print help for both subparsers parser.epilog = textwrap.dedent( @@ -576,7 +577,6 @@ def main(): # add logging flags from ctsm_logging setup_logging_pre_config() parser = get_parser() - add_logging_args(parser) args = parser.parse_args() process_logging_args(args) From 416f45f1c4cb5f6d3a3097b0405f864763b805fb Mon Sep 17 00:00:00 2001 From: Negin Sobhani Date: Tue, 4 Jan 2022 23:27:56 -0700 Subject: [PATCH 2/2] bug fix one line. --- python/ctsm/site_and_regional/single_point_case.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/ctsm/site_and_regional/single_point_case.py b/python/ctsm/site_and_regional/single_point_case.py index b73c5f4485..695cc56404 100644 --- a/python/ctsm/site_and_regional/single_point_case.py +++ b/python/ctsm/site_and_regional/single_point_case.py @@ -275,7 +275,6 @@ def create_surfdata_at_point(self, indir, file, user_mods_dir): # update attributes self.update_metadata(f_out) f_out.attrs["Created_from"] = fsurf_in - del f_out.attrs["History_Log"] # mode 'w' overwrites file wfile = os.path.join(self.output_dir, fsurf_out) f_out.to_netcdf(path=wfile, mode="w", format="NETCDF3_64BIT")