-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve reading facets from ESGF search results #1920
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1920 +/- ##
==========================================
+ Coverage 92.11% 92.12% +0.01%
==========================================
Files 234 234
Lines 12130 12151 +21
==========================================
+ Hits 11173 11194 +21
Misses 957 957
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good, bud (although am no specialist on esgf searches but I do very much appreciate the amount of testing added here!) 🍺
@ESMValGroup/tech-reviewers, would one of you have time to do a final check and merge this, please? It would be great to have this merged soon as it also helps resolving issues in #1609. Thanks 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @bouweandela, I have two additional minor comments on this.
Could you also please briefly summarize what the issue was and how this PR fixes that? To be honest, I don't really understand what's going on here, and you are adding a significant amount of code here. I think the linked issue (#1873) is only relevant for a small part of the changes.
@schlunma The main issue is that the facets on ESGF are often incorrect. I tried to work around this by reading them from the Unfortunately, this does not work in many cases because either the If you run the code in the description of the pull request with the current |
Nice, got it, thanks for the explanation @bouweandela! I tested the code from the PR description, and can confirm that the facets look much better with this PR! Will merge after the tests have passed. Cheers!! |
Description
Improve the way facets are read from the ESGF search results and use them to create the local directory structure. This results in more cases where the facets are available and fixes an issue with the obs4MIPs directory where a
.
in the dataset name was interpreted as a/
when creating the local file path.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 try out the improved facets, run
and note that with this pull request all datasets have many facets.
Closes #1873
To help with the number pull requests: