ESMValGroup / ESMValCore

ESMValCore: A community tool for pre-processing data from Earth system models in CMIP and running analysis scripts.
https://www.esmvaltool.org
Apache License 2.0
42 stars 38 forks source link

Add public `Config.update_from_dirs()` method #2538

Closed schlunma closed 1 month ago

schlunma commented 1 month ago

Description

While working on making ESMValTool with the new configuration (https://github.com/ESMValGroup/ESMValCore/pull/2448) I noticed that we are missing a simple public function to update the configuration from one or more directories.

This PR adds that.

Related to #2371

Link to documentation: https://esmvaltool--2538.org.readthedocs.build/projects/ESMValCore/en/2538/api/esmvalcore.config.html#esmvalcore.config.Config.update_from_dirs


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:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.91%. Comparing base (5b28372) to head (3dcd2d5). Report is 3 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2538 +/- ## ========================================== + Coverage 94.90% 94.91% +0.01% ========================================== Files 251 251 Lines 14295 14301 +6 ========================================== + Hits 13566 13574 +8 + Misses 729 727 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.