Fixed usage of custom location for custom tables#2052
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2052 +/- ##
=======================================
Coverage 92.94% 92.94%
=======================================
Files 235 235
Lines 12564 12564
=======================================
+ Hits 11677 11678 +1
+ Misses 887 886 -1
|
|
Thanks for looking into this @schlunma! I didn't know we had such a feature. Maybe we should discuss this as part of our wider discussion on configuration at the SMHI workshop ESMValGroup/Community#98. The current custom tables solution leads to all kinds of problems because it mixes CMIP5 and CMIP6 standards. It would be better if we had a per-project configuration of extensions of the CMOR tables, e.g. as an additional project key in config-developer.yml instead of a However, if you're keen to have this as a bugfix release in v2.9 I would be happy to approve and we can improve the configuration for a next release. |
|
I fully agree that the way we use custom tables is certainly not optimal. However, this should be adressed for custom tables in general, i.e., also for those located in our repository. This PR only fixes the usage of external custom tables (which is used by quite some people), so I would be very happy to have this merged. |
Description
When specifying a custom config-developer.yml file (
config_developer_file: ...) that uses a custom location for custom CMOR tables withwe get the very confusing error
esmvalcore.exceptions.InvalidConfigParameter: `config_developer_file` is not a valid config parameter.The reasons for this is that the
custom:entry does not have ainput_dir: since #1835 this leads to aKeyError, which eventually leads to thisesmvalcore.exceptions.InvalidConfigParameterthrough atry/except.This PR fixes that.
Closes #2051
Before you get started
Checklist
It is the responsibility of the author to make sure the pull request is ready to review. The icons indicate whether the item will be subject to the 🛠 Technical or 🧪 Scientific review.
To help with the number pull requests: