[Git][debian-gis-team/flox][master] 5 commits: New upstream version 0.11.1
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Feb 14 10:05:47 GMT 2026
Antonio Valentino pushed to branch master at Debian GIS Project / flox
Commits:
21938a12 by Antonio Valentino at 2026-02-14T09:40:21+00:00
New upstream version 0.11.1
- - - - -
414807ad by Antonio Valentino at 2026-02-14T09:40:23+00:00
Update upstream source from tag 'upstream/0.11.1'
Update to upstream version '0.11.1'
with Debian dir 31b3e1136c1cf1440d0d84f98a5a24f767d299b7
- - - - -
f4f702f9 by Antonio Valentino at 2026-02-14T09:41:02+00:00
New upstream release
- - - - -
64a15ad5 by Antonio Valentino at 2026-02-14T09:44:06+00:00
Drop 0002-BE-compat.patch
- - - - -
aad3aea2 by Antonio Valentino at 2026-02-14T09:44:45+00:00
Set distribution to unstable
- - - - -
5 changed files:
- debian/changelog
- − debian/patches/0002-BE-compat.patch
- debian/patches/series
- flox/xarray.py
- tests/test_core.py
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+flox (0.11.1-1) unstable; urgency=medium
+
+ * New upstream release.
+ * debian/patches:
+ - Drop 0002-BE-compat.patch.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sat, 14 Feb 2026 09:44:29 +0000
+
flox (0.11.0-3) unstable; urgency=medium
* debian/patches:
=====================================
debian/patches/0002-BE-compat.patch deleted
=====================================
@@ -1,22 +0,0 @@
-From: Antonio Valentino <antonio.valentino at tiscali.it>
-Date: Fri, 6 Feb 2026 07:10:48 +0000
-Subject: BE compat
-
-Forwarded: https://github.com/xarray-contrib/flox/pull/491
----
- tests/test_core.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/test_core.py b/tests/test_core.py
-index 53a3a30..2154b99 100644
---- a/tests/test_core.py
-+++ b/tests/test_core.py
-@@ -2136,7 +2136,7 @@ def test_blockwise_avoid_rechunk() -> None:
- array = dask.array.zeros((6,), chunks=(2, 4), dtype=np.int64)
- by = np.array(["1", "1", "0", "", "0", ""], dtype="<U1")
- actual, *groups = groupby_reduce(array, by, func="first")
-- assert_equal(groups, [["", "0", "1"]])
-+ assert_equal(groups, np.asarray([["", "0", "1"]], dtype="<U1"))
- assert_equal(actual, np.array([0, 0, 0], dtype=np.int64))
-
-
=====================================
debian/patches/series
=====================================
@@ -1,2 +1 @@
0001-Robust-module_available.patch
-0002-BE-compat.patch
=====================================
flox/xarray.py
=====================================
@@ -20,6 +20,12 @@ from .rechunk import rechunk_for_blockwise as rechunk_array_for_blockwise
from .rechunk import rechunk_for_cohorts as rechunk_array_for_cohorts
from .reindex import ReindexStrategy
+try:
+ from xarray.indexes import PandasMultiIndex
+except ImportError:
+ PandasMultiIndex = tuple() # type: ignore[misc,assignment,unused-ignore]
+
+
if TYPE_CHECKING:
from xarray.core.types import T_DataArray, T_Dataset
@@ -238,7 +244,7 @@ def xarray_reduce(
unindexed_dims = tuple(
b
for b, isbin_ in zip(by, isbins)
- if isinstance(b, Hashable) and not isbin_ and b in obj.dims and b not in obj.indexes
+ if isinstance(b, Hashable) and not isbin_ and b in obj.dims and b not in obj.xindexes
)
by_da = tuple(obj[g] if isinstance(g, Hashable) else g for g in by)
@@ -253,12 +259,6 @@ def xarray_reduce(
ds = cast(xr.Dataset, obj)
else:
ds = obj._to_temp_dataset()
-
- try:
- from xarray.indexes import PandasMultiIndex
- except ImportError:
- PandasMultiIndex = tuple() # type: ignore[misc,assignment,unused-ignore]
-
more_drop = set()
for var in maybe_drop:
maybe_midx = ds._indexes.get(var, None)
@@ -467,12 +467,9 @@ def xarray_reduce(
actual = actual.drop_vars(name)
# When grouping by MultiIndex, expect is an pd.Index wrapping
# an object array of tuples
- if (
- name in ds_broad.indexes
- and isinstance(ds_broad.indexes[name], pd.MultiIndex)
- and not isinstance(expect3, pd.RangeIndex)
- ):
- levelnames = ds_broad.indexes[name].names
+ xindex = ds_broad.xindexes.get(name)
+ if isinstance(xindex, PandasMultiIndex) and not isinstance(expect3, pd.RangeIndex):
+ levelnames = xindex.index.names
if isinstance(expect3, np.ndarray):
# TODO: workaround for IntervalIndex issue.
raise NotImplementedError
=====================================
tests/test_core.py
=====================================
@@ -2136,7 +2136,7 @@ def test_blockwise_avoid_rechunk() -> None:
array = dask.array.zeros((6,), chunks=(2, 4), dtype=np.int64)
by = np.array(["1", "1", "0", "", "0", ""], dtype="<U1")
actual, *groups = groupby_reduce(array, by, func="first")
- assert_equal(groups, [["", "0", "1"]])
+ assert_equal(groups, np.asarray([["", "0", "1"]], dtype="<U1"))
assert_equal(actual, np.array([0, 0, 0], dtype=np.int64))
View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/compare/10f8e02f0be48c4f65ca307e68a91f13babd10f7...aad3aea2e121dcf727026e9687ce8737e6fdfa21
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/compare/10f8e02f0be48c4f65ca307e68a91f13babd10f7...aad3aea2e121dcf727026e9687ce8737e6fdfa21
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260214/a3965d41/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list