Skip to content

Commit

Permalink
sort all command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschwanden committed Nov 18, 2024
1 parent 3117af6 commit 9333d61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion calibration/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion config/pism.cdl
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion hindcasts/hindcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9333d61

Please sign in to comment.