Skip to content
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

add order for polynomial interpolation, fixes #8762 #9079

Merged
merged 20 commits into from
Jun 11, 2024

Conversation

nkarasiak
Copy link
Contributor

@nkarasiak nkarasiak commented Jun 8, 2024

Copy link

welcome bot commented Jun 8, 2024

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

xarray/core/resample.py Outdated Show resolved Hide resolved
@dcherian
Copy link
Contributor

Thanks a lot @nkarasiak this is a nice first PR.

Can you update the test here please for kind="polynomial", order=1?

def test_upsample_interpolate(self) -> None:

@nkarasiak
Copy link
Contributor Author

Tests and implementation are ok for me👍
A bug happenned in CI / windows-latest py3.12 (pull_request) Failing after 19m that doesn't seem to come from any of my little update.

doc/whats-new.rst Outdated Show resolved Hide resolved
@dcherian
Copy link
Contributor

Nice thanks @nkarasiak welcome to Xarray!

@dcherian dcherian added the plan to merge Final call for comments label Jun 10, 2024
@dcherian dcherian merged commit f0ee037 into pydata:main Jun 11, 2024
28 checks passed
Copy link

welcome bot commented Jun 11, 2024

Congratulations on completing your first pull request! Welcome to Xarray! We are proud of you, and hope to see you again! celebration gif

andersy005 pushed a commit that referenced this pull request Jun 14, 2024
* add order for polynomial, fixes #8762

* add bugfixes in whats_new.rst, fixes #8762

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix typo

* Update xarray/core/resample.py

setdefault "bounds_error", and not forcing it. Thanks @dcherian

Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>

* chore(test) : polynomial resample

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix(setdefault) : change dict to arg

* fix(test) : polynomial interpolate tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* chore(test) : add comment using interp1d for polynomial

* Update xarray/tests/test_groupby.py

* Update doc/whats-new.rst

* Update whats-new.rst

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataArrayResample.interpolate and passing kwargs
2 participants