Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fix start years #123
Fix start years #123
Changes from 2 commits
bc485c1
23edd96
440d233
73b30d5
56bd56b
b1b98dd
8355950
ac29aed
fde53b0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
While this test was a bit ill-described, I do think it is important to keep it, in a slightly modified form. We need to raise an error if the
--land
and--prelimbe
flags are used together, as there is no back extension for era5-land.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.
@Peter9192, thanks for the suggestion, I looked into it. So, if I understand correctly this particular test was more about
--land
being incompatible with the years prior to 1981, not back extension as comment says. The incompatibility of--prelimbe
and--land
are tested intest_fetch.py
, because it is the place that gives you theValueError
, if those two tags are used together. As highlighted in #130, the request with--ensemble
and--land
actually goes through but fails on thecdsapi
end. My suggestion is, for this pull request delete this test, and I will open a new PR with adding theAssertionError
in case--ensemble
and--land
are used together. Then, I will re-add this test, but testing the--ensemble
and--land
. What do you think? @bvreede what's your opinion?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.
Right! So I did notice that there was a discrepancy between the description (land and back extension not compatible) and the actual test (land not available for years prior to 1981). But you're right, I overlooked that there's also the issue of
--land
and--ensemble
being incompatible. Your suggested approach sounds good to me 👍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.
btw @bvreede is on holiday until next week
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 figuring this out; indeed, that's a good idea, let's do it!