From 9333d6192fc2e4066b01e472a0904fc998f47a2d Mon Sep 17 00:00:00 2001 From: Andy Aschwanden Date: Mon, 18 Nov 2024 07:05:58 -0900 Subject: [PATCH] sort all command line options --- calibration/calibrate.py | 2 +- config/pism.cdl | 2 +- hindcasts/hindcast.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/calibration/calibrate.py b/calibration/calibrate.py index 4b59d00..f43a1eb 100755 --- a/calibration/calibrate.py +++ b/calibration/calibrate.py @@ -715,7 +715,7 @@ def create_offset_file(file_name: str, delta_T: float = 0.0, frac_P: float = 1.0 print("------------------------------------------------------------\n") all_params = " \\\n ".join( - [f"-{k} {v}" for k, v in list(all_params_dict.items())] + [f"-{k} {v}" for k, v in sorted(list(all_params_dict.items()))] ) if commandline_options is not None: diff --git a/config/pism.cdl b/config/pism.cdl index 14eaa8b..8d356ea 100644 --- a/config/pism.cdl +++ b/config/pism.cdl @@ -2,7 +2,7 @@ netcdf pism_overrides { variables: byte pism_overrides; - pism_overrides:output.checkpoint.interval = 1.0; + pism_overrides:output.checkpoint.interval = 100.0; pism_overrides:time.calendar = "standard"; diff --git a/hindcasts/hindcast.py b/hindcasts/hindcast.py index 77e8098..91f4758 100755 --- a/hindcasts/hindcast.py +++ b/hindcasts/hindcast.py @@ -718,7 +718,7 @@ def create_offset_file(file_name: str, delta_T: float = 0.0, frac_P: float = 1.0 print("------------------------------------------------------------\n") all_params = " \\\n ".join( - [f"-{k} {v}" for k, v in list(all_params_dict.items())] + [f"-{k} {v}" for k, v in sorted(list(all_params_dict.items()))] ) if commandline_options is not None: