Skip to content

Import from esmvalcore.config in the esmvalcore.experimental module#1816

Merged
valeriupredoi merged 1 commit intomainfrom
fix-deprecation-warning
Nov 22, 2022
Merged

Import from esmvalcore.config in the esmvalcore.experimental module#1816
valeriupredoi merged 1 commit intomainfrom
fix-deprecation-warning

Conversation

@bouweandela
Copy link
Member

@bouweandela bouweandela commented Nov 21, 2022

Description

When importing esmvalcore.experimental, a deprecation warning from esmvalcore.experimental.config is shown because the configuration is still imported from the old place. Importing from the new esmvalcore.config module avoids the warning.

Closes #1815


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:

@bouweandela bouweandela added the bug Something isn't working label Nov 21, 2022
@codecov
Copy link

codecov bot commented Nov 21, 2022

Codecov Report

Merging #1816 (66dc794) into main (9a2a318) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1816      +/-   ##
==========================================
- Coverage   91.49%   91.49%   -0.01%     
==========================================
  Files         202      202              
  Lines       10908    10907       -1     
==========================================
- Hits         9980     9979       -1     
  Misses        928      928              
Impacted Files Coverage Δ
esmvalcore/experimental/recipe.py 90.16% <100.00%> (-0.16%) ⬇️
esmvalcore/experimental/recipe_output.py 82.45% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bouweandela bouweandela marked this pull request as ready for review November 21, 2022 15:44
@bouweandela bouweandela added this to the v2.8.0 milestone Nov 21, 2022
Copy link
Contributor

@schlunma schlunma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected, thanks Bouwe!

@bouweandela
Copy link
Member Author

@ESMValGroup/technical-lead-development-team Would anyone have time for a final check and merge please?

Copy link
Contributor

@valeriupredoi valeriupredoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢

@valeriupredoi
Copy link
Contributor

cheers @bouweandela and @schlunma 🍺

@valeriupredoi valeriupredoi merged commit f9b45a8 into main Nov 22, 2022
@valeriupredoi valeriupredoi deleted the fix-deprecation-warning branch November 22, 2022 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Importing esmvalcore.experimental gives deprecation warning for esmvalcore.experimental.config

3 participants