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
40 stars 36 forks source link

More reliable datasets to recipe conversion #2472

Open bouweandela opened 2 weeks ago

bouweandela commented 2 weeks ago

Description

Make the _to_frozen accept more types of input data to avoid a crash.

Closes #2466


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 2 weeks ago

Codecov Report

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

Project coverage is 94.61%. Comparing base (495176a) to head (1f1b2aa).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2472 +/- ## ========================================== - Coverage 94.62% 94.61% -0.01% ========================================== Files 247 247 Lines 14057 14060 +3 ========================================== + Hits 13301 13303 +2 - Misses 756 757 +1 ```

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

schlunma commented 2 weeks ago

I think I know now what's going on in #2466. In summary, datasets from two different rootpaths might have different facets in the input directory DRS which may lead to different types of the facet values.

Unfortunately, this PR does not fix that problem; I am still getting the same errors.