@@ -25,7 +25,7 @@ def test_1D_fill_int(storage):
2525
2626 vals = (0.15 , 0.25 , 0.25 )
2727
28- hist = bh .Histogram (bh .axis .Regular (bins , * ranges ), storage = storage )
28+ hist = bh .Histogram (bh .axis .Regular (bins , * ranges ), storage = storage () )
2929 assert hist ._storage_type == storage
3030 hist .fill (vals )
3131
@@ -49,7 +49,7 @@ def test_2D_fill_int(storage):
4949 hist = bh .Histogram (
5050 bh .axis .Regular (bins [0 ], * ranges [0 ]),
5151 bh .axis .Regular (bins [1 ], * ranges [1 ]),
52- storage = storage ,
52+ storage = storage () ,
5353 )
5454 assert hist ._storage_type == storage
5555 hist .fill (* vals )
@@ -69,7 +69,7 @@ def test_2D_fill_int(storage):
6969
7070def test_edges_histogram ():
7171 edges = (1 , 12 , 22 , 79 )
72- hist = bh .Histogram (bh .axis .Variable (edges ), storage = bh .storage .Int )
72+ hist = bh .Histogram (bh .axis .Variable (edges ), storage = bh .storage .Int () )
7373
7474 vals = (13 , 15 , 24 , 29 )
7575 hist .fill (vals )
@@ -81,7 +81,7 @@ def test_edges_histogram():
8181
8282
8383def test_int_histogram ():
84- hist = bh .Histogram (bh .axis .Integer (3 , 7 ), storage = bh .storage .Int )
84+ hist = bh .Histogram (bh .axis .Integer (3 , 7 ), storage = bh .storage .Int () )
8585
8686 vals = (1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 )
8787 hist .fill (vals )
@@ -93,14 +93,16 @@ def test_int_histogram():
9393
9494
9595def test_str_categories_histogram ():
96- hist = bh .Histogram (bh .axis .Category (["a" , "b" , "c" ]), storage = bh .storage .Int )
96+ hist = bh .Histogram (bh .axis .Category (["a" , "b" , "c" ]), storage = bh .storage .Int () )
9797
9898 vals = ["a" , "b" , "b" , "c" ]
9999 # Can't fill yet
100100
101101
102102def test_growing_histogram ():
103- hist = bh .Histogram (bh .axis .Regular (10 , 0 , 1 , growth = True ), storage = bh .storage .Int )
103+ hist = bh .Histogram (
104+ bh .axis .Regular (10 , 0 , 1 , growth = True ), storage = bh .storage .Int ()
105+ )
104106
105107 hist .fill (1.45 )
106108
@@ -109,7 +111,7 @@ def test_growing_histogram():
109111
110112def test_numpy_flow ():
111113 h = bh .Histogram (
112- bh .axis .Regular (10 , 0 , 1 ), bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int
114+ bh .axis .Regular (10 , 0 , 1 ), bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int ()
113115 )
114116
115117 for i in range (10 ):
@@ -133,7 +135,7 @@ def test_numpy_flow():
133135
134136def test_numpy_compare ():
135137 h = bh .Histogram (
136- bh .axis .Regular (10 , 0 , 1 ), bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int
138+ bh .axis .Regular (10 , 0 , 1 ), bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int ()
137139 )
138140
139141 xs = []
@@ -158,10 +160,10 @@ def test_numpy_compare():
158160
159161def test_project ():
160162 h = bh .Histogram (
161- bh .axis .Regular (10 , 0 , 1 ), bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int
163+ bh .axis .Regular (10 , 0 , 1 ), bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int ()
162164 )
163- h0 = bh .Histogram (bh .axis .Regular (10 , 0 , 1 ), storage = bh .storage .Int )
164- h1 = bh .Histogram (bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int )
165+ h0 = bh .Histogram (bh .axis .Regular (10 , 0 , 1 ), storage = bh .storage .Int () )
166+ h1 = bh .Histogram (bh .axis .Regular (5 , 0 , 1 ), storage = bh .storage .Int () )
165167
166168 for x , y in (
167169 (0.3 , 0.3 ),
@@ -193,7 +195,7 @@ def test_sums():
193195
194196
195197def test_int_cat_hist ():
196- h = bh .Histogram (bh .axis .Category ([1 , 2 , 3 ]), storage = bh .storage .Int )
198+ h = bh .Histogram (bh .axis .Category ([1 , 2 , 3 ]), storage = bh .storage .Int () )
197199
198200 h .fill (1 )
199201 h .fill (2 )
0 commit comments