-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CFTime support for polyval #6624
Merged
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9796fe3
add cftime support to polyval
headtr1ck ff5ad1e
format changes
headtr1ck e5a9b60
Squashed commit of the following:
dcherian 9c8f6e2
Fix dask?
dcherian de8e162
attempt to fix cftime in polyval
headtr1ck 48b3956
fix overload
headtr1ck 9b3828b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 212e431
fix test discovery typo
headtr1ck 0e23685
specify exception
headtr1ck c75d3f5
Revert "fix overload"
headtr1ck d4aec0e
dask+cftime fixes
dcherian fb29d81
moar fix
dcherian a893d61
Merge branch 'main' into polyvalcf
headtr1ck 8c7b3f0
SKip cftime tests if not present
dcherian 7626368
move polyval_cftime test
headtr1ck f7314ef
add test with different date
headtr1ck 4ac5327
remove deprecation warning
headtr1ck ae03592
add polyval integration test
headtr1ck 9ea0048
Merge branch 'main' into polyvalcf
dcherian 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
*.py[cod] | ||
__pycache__ | ||
.env | ||
.venv | ||
|
||
# example caches from Hypothesis | ||
.hypothesis/ | ||
|
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.
can we get a test with a non-standard calendar / something very far from 1970 (like,
480-01-01
)? I suspect that will cause thecftime
support to fail because_cfoffset
hard-codes the offset to1970-01-01
(not sure, though, I might misunderstand the code).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.
This was added to copy the behavior of
polyfit
. But I agree that such a test can be useful. Additionally we should add an integration test for these two functions.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.
That offset choice is in
v2022.03.0
too:xarray/xarray/core/missing.py
Lines 275 to 280 in 9b4d0b2