Skip to content

Commit

Permalink
add config_file, job_id defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Nov 25, 2024
1 parent 570dbbf commit 54e6b6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
19 changes: 0 additions & 19 deletions config/ci_configs/interactive_debug.yml

This file was deleted.

7 changes: 4 additions & 3 deletions experiments/ClimaEarth/cli_options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ function argparse_settings()
### ClimaCoupler flags
# Simulation-identifying information
"--config_file"
help = "[REQUIRED] A yaml file used to set the configuration of the coupled model"
help = "[REQUIRED] A yaml file used to set the configuration of the coupled model [\"config/ci_configs/amip_default.yml\" (default)]"
arg_type = String
default = "config/ci_configs/amip_default.yml"
"--job_id"
help = "[REQUIRED] A unique identifier for this run"
help = "[REQUIRED] A unique identifier for this run [\"amip_default\" (default)]"
arg_type = String
default = nothing
default = "amip_default"
"--print_config_dict"
help = "Boolean flag indicating whether to print the final configuration dictionary [`true` (default), `false`]"
arg_type = Bool
Expand Down
8 changes: 0 additions & 8 deletions experiments/ClimaEarth/user_io/arg_parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ function get_coupler_config()
## coupler simulation default configuration
parsed_args = parse_commandline(argparse_settings())

## modify parsed args for fast testing from REPL #hide
if isinteractive()
parsed_args["config_file"] =
isnothing(parsed_args["config_file"]) ? joinpath(pkg_dir, "config/ci_configs/interactive_debug.yml") :
parsed_args["config_file"]
parsed_args["job_id"] = "interactive_debug"
end

## the unique job id should be passed in via the command line
job_id = parsed_args["job_id"]
@assert !isnothing(job_id) "job_id must be passed in via the command line"
Expand Down

0 comments on commit 54e6b6b

Please sign in to comment.