-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69ce863
commit ca97b43
Showing
8 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
""" | ||
AtmosCoveragePerfConfig() | ||
AtmosCoveragePerfConfig(; config_dict) | ||
Creates a model configuration that covers many physics components. | ||
The configuration precedence is as follows: | ||
1. Configuration from the given config file/dict (highest precedence) | ||
2. Default perf configuration (to increase coverage) | ||
3. Default configuration (lowest precedence) | ||
""" | ||
function AtmosCoveragePerfConfig(; config_dict = CA.default_config_dict()) | ||
perf_defaults = joinpath( | ||
dirname(@__FILE__), | ||
"..", | ||
"config", | ||
"default_configs", | ||
"default_perf.yml", | ||
) | ||
perf_default_config = YAML.load_file(perf_defaults) | ||
config_dict = merge(perf_default_config, config_dict) | ||
return AtmosConfig(; config_dict) | ||
end | ||
|
||
""" | ||
AtmosTargetConfig() | ||
AtmosTargetConfig(; target_job) | ||
Creates an AtmosConfig given the job ID (target_job). | ||
""" | ||
AtmosTargetConfig(; target_job) = | ||
AtmosConfig(; config_dict = CA.config_from_target_job(target_job)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters