Skip to content

Fix error when passing skipna to Coarsen reduction methods in latest release - #11686

Merged
headtr1ck merged 5 commits into
pydata:mainfrom
andrew-s28:coarsen-skipna-fix
Oct 8, 2026
Merged

headtr1ck merged 5 commits into
pydata:mainfrom
andrew-s28:coarsen-skipna-fix

Conversation

@andrew-s28

@andrew-s28 andrew-s28 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

The changes introduced #11556 resulted in reduction methods, when called on Coarsen objects, to error if the user specified the kwarg skipna, which was previously supported. This was due to **kwargs being passed (incorrectly) to the _reduce_methods call, when it should have only be passed to the underlying reduction method call. This PR also introduces tests aimed at preventing this regression in the future.

cc @LOCEANlloydizard

Checklist

  • Tests added
  • User visible changes (including notable bug fixes) are documented in whats-new.rst

@headtr1ck headtr1ck added the plan to merge Final call for comments label Oct 7, 2026
Comment thread doc/whats-new.rst Resolved
Co-authored-by: Michael Niklas  <[email protected]>
@headtr1ck
headtr1ck merged commit 190422e into pydata:main Oct 8, 2026
46 checks passed
emmanuelmathot pushed a commit to EOPF-Explorer/data-model that referenced this pull request Oct 12, 2026
* chore(deps): group pending Dependabot updates

Applies #272, #273, #284, #299, #300, #301 and #307 (except xarray,
whose 2026.9.0 breaks coarsen(...).mean(skipna=True); see
pydata/xarray#11686). Raises the urllib3, tornado and virtualenv
security floors to the patched versions.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* ci(dependabot): group major and security updates

Major bumps, requirement widenings (zarr) and security updates each
arrived as one PR per package; give them their own groups. Skip
xarray 2026.9.0 until pydata/xarray#11686 ships.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* chore(deps): bump multidict to 6.9.1

pip-audit blocks on CVE-2026-104874 in multidict 6.8.0, which fails
the security job. Raise its floor with the other security constraints.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
cursor Bot pushed a commit to Muddl/thymeandplace that referenced this pull request Oct 13, 2026
xarray 2026.9.0 rejects skipna= on Coarsen reductions (pydata/xarray#11686,
fix not released). mean() already skips NaNs by default, and the grid
values match 2026.7.0 mean(skipna=True).

Co-authored-by: Wade Kaiser <[email protected]>
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 topic-rolling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants