Skip to content

add order for polynomial interpolation, fixes #8762#9079

Merged
dcherian merged 20 commits into
pydata:mainfrom
nkarasiak:fix_polynomial_resample
Jun 11, 2024
Merged

add order for polynomial interpolation, fixes #8762#9079
dcherian merged 20 commits into
pydata:mainfrom
nkarasiak:fix_polynomial_resample

Conversation

@nkarasiak

@nkarasiak nkarasiak commented Jun 8, 2024

Copy link
Copy Markdown
Contributor

@welcome

welcome Bot commented Jun 8, 2024

Copy link
Copy Markdown

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.

Comment thread xarray/core/resample.py Outdated
@dcherian

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread xarray/tests/test_groupby.py Outdated
Comment thread doc/whats-new.rst Outdated
@dcherian

Copy link
Copy Markdown
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
@welcome

welcome Bot commented Jun 11, 2024

Copy link
Copy Markdown

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