-
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
Fix start years #123
Merged
Merged
Fix start years #123
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bc485c1
changing start year to 1959 for ERA5 and 1950 for ERA5-Land, removing…
23edd96
changing version number, adding Liza to the list of authors
440d233
revert CITATION.cff to the previous release date
malininae 73b30d5
revert CITATION.cff to the previous number
malininae 56bd56b
Removing Liza from era5cli/__version__.py
malininae b1b98dd
Update era5cli/cli.py
malininae 8355950
updating tests for --land and years out of range
ac29aed
Update era5cli/__version__.py
malininae fde53b0
modifying message if ERA5-Land is used with the back extension
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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!