Skip to content

Commit

Permalink
#3826: Temporarily add CFG experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbillowsMO committed Dec 4, 2024
1 parent 82b7279 commit 836dce5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions esmvaltool/utils/recipe_test_workflow/chris.py
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())

0 comments on commit 836dce5

Please sign in to comment.