-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3826: Temporarily add CFG experiments
- Loading branch information
1 parent
82b7279
commit 836dce5
Showing
1 changed file
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Used esmvt-rtw env with my branch of ESMValCore installed per: | ||
# https://docs.esmvaltool.org/en/latest/quickstart/installation.html#using-the-development-version-of-the-esmvalcore-package | ||
import esmvalcore | ||
from esmvalcore.config import CFG, Config, Session | ||
|
||
# Show I'm working and to be friendly | ||
print("Hello Chris!") | ||
|
||
print("ESMValCore Version:", esmvalcore.__version__) | ||
|
||
# Generate an InvalidConfigParameter Error | ||
# my_list = [1, 2, 3] | ||
# CFG["config_file"] = my_list | ||
|
||
# Generate a Deprecation Warning | ||
CFG["config_file"] = "not_a_dir_but_i_still_work" | ||
|
||
# Config file not present | ||
print(CFG['config_file']) | ||
|
||
print(CFG.__dict__['_mapping'].keys()) |