[Git][debian-gis-team/flox][master] Update pr201-32bit-support-int64-to-intp-for-count.patch.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Fri Jan 13 20:36:16 GMT 2023
Bas Couwenberg pushed to branch master at Debian GIS Project / flox
Commits:
08d23c4f by Bas Couwenberg at 2023-01-13T21:36:06+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,13 @@ Bug: https://github.com/xarray-contrib/flox/issues/200
def test_func_is_aggregation():
-@@ -413,7 +413,7 @@ def test_numpy_reduce_axis_subset(engine
+@@ -408,12 +408,12 @@ 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)
+- assert_equal(result, np.array([[2, 3], [2, 3]], dtype=np.int64))
++ assert_equal(result, np.array([[2, 3], [2, 3]], dtype=np.intp))
+
by = np.broadcast_to(labels2d, (3, *labels2d.shape))
array = np.ones_like(by)
result, _ = groupby_reduce(array, by, **kwargs, axis=1)
@@ -41,6 +47,24 @@ Bug: https://github.com/xarray-contrib/flox/issues/200
for left, right in zip(groups, pd.IntervalIndex.from_arrays([1, 2, 4], [2, 4, 5]).to_numpy()):
assert left == right
assert_equal(actual, expected)
+@@ -955,7 +955,7 @@ def test_group_by_datetime(engine, metho
+
+
+ def test_factorize_values_outside_bins():
+-
++ # pd.factorize returns intp
+ vals = factorize_(
+ (np.arange(10).reshape(5, 2), np.arange(10).reshape(5, 2)),
+ axis=(0, 1),
+@@ -967,7 +967,7 @@ def test_factorize_values_outside_bins()
+ fastpath=True,
+ )
+ actual = vals[0]
+- expected = np.array([[-1, -1], [-1, 0], [6, 12], [18, 24], [-1, -1]], np.int64)
++ expected = np.array([[-1, -1], [-1, 0], [6, 12], [18, 24], [-1, -1]], np.intp)
+ assert_equal(expected, actual)
+
+
@@ -991,7 +991,8 @@ def test_multiple_groupers_bins(chunk) -
),
func="count",
View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/commit/08d23c4fdd6ddef4917c921f7261b89c941d20a5
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/flox/-/commit/08d23c4fdd6ddef4917c921f7261b89c941d20a5
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/20230113/d3355ef2/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list