Skip to content

Commit b5412a1

Browse files
committed
Fix arange example
1 parent e0f0cd7 commit b5412a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ndarray/arange-constructor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
shape = (N,)
2020
print(f"*** Creating a blosc2 array with {N:_} elements (shape: {shape}) ***")
2121
t0 = time()
22-
a = blosc2.arange(shape=shape, dtype=np.int32)
22+
a = blosc2.arange(N, shape=shape, dtype=np.int32)
2323
cratio = a.schunk.nbytes / a.schunk.cbytes
2424
print(
2525
f"Time: {time() - t0:.3f} s ({N / (time() - t0) / 1e6:.2f} M/s)"

0 commit comments

Comments
 (0)