Open
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
dcherian
reviewed
Dec 6, 2025
dcherian
reviewed
Dec 6, 2025
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
dcherian
reviewed
Dec 6, 2025
Co-authored-by: Deepak Cherian <dcherian@users.noreply.github.com>
Contributor
Author
|
Writing down these flox issues before I forget: ds = xr.Dataset(
{
"foo": (
("test", "time"),
[[7, 2, 0, 1, 2, np.nan], [1, 1, 1, 1, 1, 1], [2, 2, 2, 2, 2, 2]],
)
},
coords={
"time": [0, 1 / 6, 2 / 6, 3 / 6, 4 / 6, 5 / 6],
"test": ["a", "b", "b"],
"group_idx": ("time", [0, 0, 1, 1, 2, 2]),
"group_idx2": ("time", [0, 1, 1, 1, 1, 1]),
},
)
# group_idx along 1 dim and cumsum dim along another fails with flox:
ds.groupby("group_idx").cumsum("test")
# cumsum along multple dims fails with flox:
ds.groupby("group_idx").cumsum(...) |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Contributor
Author
5 tasks
Contributor
|
Sorry I've lost track here. Are there upstream fixes required in flox? My other concern is that |
Contributor
Author
|
No I think this PR is finished. Mostly waiting on the green CI and maybe a release to give it chance to sit on main for a while. I haven't dug into the performance of resample().cumsum(), is it a stopper for you? Are you expecting it to be worse than what we had previously? |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

whats-new.rstThe non-flox version reduces chunksizes significantly:
With flox the chunksize is retained:
Other changes:
Notes
groupby_scanwas added in: https://github.com/xarray-contrib/flox/releases/tag/v0.9.9cumsumwas added in: https://github.com/xarray-contrib/flox/releases/tag/v0.10.5