Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent f1b629b commit 3ecdad3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ 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
Expand All @@ -576,9 +577,9 @@ def test_155_boost_factory():
import dask_histogram as dh

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

0 comments on commit 3ecdad3

Please sign in to comment.