Skip to content

Commit fc087df

Browse files
committed
cleanup
1 parent 934120f commit fc087df

File tree

2 files changed

+1
-36
lines changed

2 files changed

+1
-36
lines changed

flox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def _get_version():
1010
__version__ = "999"
1111
try:
12-
from ._version import __version__ # type: ignore[import-not-found]
12+
from ._version import __version__
1313
except ImportError:
1414
pass
1515
return __version__

tests/test_core.py

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,38 +1823,3 @@ def test_scans():
18231823
da = dask.array.from_array(array, chunks=2)
18241824
actual = groupby_scan(da, by, **kwargs)
18251825
assert_equal(expected, actual)
1826-
1827-
1828-
# from numpy import nan
1829-
1830-
# array = np.array([nan, 0., nan, nan, 0.], dtype=np.float32)
1831-
# group_idx = np.array([0, 0, 1, 0, 0])
1832-
# ffill.dtype = array.dtype
1833-
# dask_groupby_scan(dask.array.from_array(array, chunks=(1, 1, 1, 2)), group_idx, axes=(0,), agg=ffill).compute()
1834-
# dask_groupby_scan(dask.array.from_array(array, chunks=(2, 1, 2)), group_idx, axes=(0,), agg=ffill).compute()
1835-
1836-
1837-
# DASK/FLOX BUG?
1838-
# func = "ffill"
1839-
# array = array([[ 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.],
1840-
# [ 0., 1., 0., 0., 0., 0., 0., 0., nan, 0.]], dtype=float32),
1841-
# group_idx= array([0, 0, 0, 0, 1, 1, 1, 1, 0, 0])
1842-
# chunks = ((2,), (1, 1, 2, 1, 5))
1843-
1844-
1845-
# NUMPY_GROUPIES BUG
1846-
# import numpy_groupies as npg
1847-
1848-
# npg.aggregate_numpy.aggregate(
1849-
# array([1, 1, 1, 0, 0]),
1850-
# array([[ 5., 6., 7., 8., 9.],
1851-
# [ 0., 0., 0., nan, 0.]], dtype=float32),
1852-
# func="cumsum",
1853-
# axis=-1,
1854-
# )
1855-
1856-
# numpy_array, group_idx = (
1857-
# array([1.6777218e07, 1.0000000e00, 0.0000000e00], dtype=float32),
1858-
# array([0, 1, 1]),
1859-
# )
1860-
# groupby_scan(numpy_array, group_idx, axis=-1, func="nancumsum")

0 commit comments

Comments
 (0)