-
Notifications
You must be signed in to change notification settings - Fork 8
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
Move to new CDS, prep for 2.0.0b1 release #166
Conversation
Will pick this up again late August. Hopefully the new CDS will work by then. |
@malininae can you try out this PR and review it? I'll make a beta release of era5cli once this is merged. |
@BSchilperoort Thanks so much! First question, it seems that by running era5cli config --key "herewasmykey", there is a request sent for the 2t at 14:00 on the 1st of December 2012. Originally I thought something went wrong, maybe my old |
@BSchilperoort by sending the
and it sent only the appropriate request. Also, minor, request seem not be deleted on the cds once they are done. Not sure where that is coming from |
Thanks for having a look!
That's intended behavior. It's a small (1.75MB & should be quick) request to ensure that the entered key is valid. This has been part of the code since v1.4 (early 2023).
This is most likely due to a change in the behavior of the Requests cannot be deleted with the legacy api: https://github.com/ecmwf-projects/cads-api-client/blob/main/cads_api_client/legacy_api_client.py#L68
Hm. That's not the intended behavior. It should send separate requests. The Running |
With the new cads-api-client we can do: import cads_api_client
client = cads_api_client.ApiClient(key, url)
client.check_authentication() This functionality was added in ecmwf-projects/cads-api-client#63 but still has to be included in a new release. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #166 +/- ##
==========================================
- Coverage 99.66% 98.95% -0.72%
==========================================
Files 14 13 -1
Lines 601 574 -27
==========================================
- Hits 599 568 -31
- Misses 2 6 +4 |
Sorry, I wasn't clear, it doesn't give 12 test requests, the 'real' requests are good, there are 12 of them. |
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.
@BSchilperoort I tried a few things. From my side, all looks good. Maybe someone else should also look as well.
Thanks for the review! I will release a beta version of the package. If issues arise I hope users will report them. |
… months the default
See #165
Should work with new CDS. Updated the version to 2.0.0b1 & added warnings for users.
When the old CDS is shut down on 3 September, I'll yank the old version on PyPI (see #167).
Also, as this will be v2.0.0, I removed long deprecated parts of the code (prelimbe, orography), and made "--splitmonths True" the default