Skip to content

Commit

Permalink
fix: dask_histogram.factory broken after dask 2024.12
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray authored Dec 17, 2024
1 parent f2c91b5 commit d18d3a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,3 +567,17 @@ def test_boost_output_pickles():

o = dask.compute(h)
pickle.dumps(o)

def test_155_boost_factory():
import boost_histogram as bh
import dask_awkward as dak
import dask_histogram as dh
import numpy as np

arr = dak.from_lists([list(range(10))] * 3)
axis = bh.axis.Regular(10, 0., 10.)
hist = dh.factory(
arr,
axes=(axis,),
).compute()
assert np.all(hist.values() == [3. 3. 3. 3. 3. 3. 3. 3. 3. 3.])

0 comments on commit d18d3a8

Please sign in to comment.