[Git][debian-gis-team/flox][master] Update pr201-32bit-support-int64-to-intp-for-count.patch.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sat Jan 14 06:53:54 GMT 2023
Bas Couwenberg pushed to branch master at Debian GIS Project / flox
Commits:
fa378a10 by Bas Couwenberg at 2023-01-14T07:53:43+01:00
Update pr201-32bit-support-int64-to-intp-for-count.patch.
- - - - -
1 changed file:
- debian/patches/pr201-32bit-support-int64-to-intp-for-count.patch
Changes:
=====================================
debian/patches/pr201-32bit-support-int64-to-intp-for-count.patch
=====================================
@@ -23,7 +23,7 @@ Bug: https://github.com/xarray-contrib/flox/issues/200
def test_func_is_aggregation():
-@@ -408,12 +408,12 @@ def test_numpy_reduce_axis_subset(engine
+@@ -408,29 +408,29 @@ def test_numpy_reduce_axis_subset(engine
array = np.ones_like(by, dtype=np.int64)
kwargs = dict(func="count", engine=engine, fill_value=0)
result, _ = groupby_reduce(array, by, **kwargs, axis=1)
@@ -38,6 +38,26 @@ Bug: https://github.com/xarray-contrib/flox/issues/200
expected = np.tile(subarr, (3, 1, 1))
assert_equal(result, expected)
+ result, _ = groupby_reduce(array, by, **kwargs, axis=2)
+- subarr = np.array([[2, 3], [2, 3]], dtype=np.int64)
++ subarr = np.array([[2, 3], [2, 3]], dtype=np.intp)
+ expected = np.tile(subarr, (3, 1, 1))
+ assert_equal(result, expected)
+
+ result, _ = groupby_reduce(array, by, **kwargs, axis=(1, 2))
+- expected = np.array([[4, 6], [4, 6], [4, 6]], dtype=np.int64)
++ expected = np.array([[4, 6], [4, 6], [4, 6]], dtype=np.intp)
+ assert_equal(result, expected)
+
+ result, _ = groupby_reduce(array, by, **kwargs, axis=(2, 1))
+ assert_equal(result, expected)
+
+ result, _ = groupby_reduce(array, by[0, ...], **kwargs, axis=(1, 2))
+- expected = np.array([[4, 6], [4, 6], [4, 6]], dtype=np.int64)
++ expected = np.array([[4, 6], [4, 6], [4, 6]], dtype=np.intp)
+ assert_equal(result, expected)
+
+
@@ -672,7 +672,7 @@ def test_groupby_bins(chunk_labels, chun
engine=engine,
method=method,
View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/commit/fa378a1061f8236ba8fa93763329908466d444cf
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/commit/fa378a1061f8236ba8fa93763329908466d444cf
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/20230114/c40ddf4e/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list