Skip to content

Commit

Permalink
add a chunksize attribute with numpy fake dask
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Nov 1, 2024
1 parent b4c095a commit ca3505e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion txpipe/utils/debuggable_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import os

def from_array(arr, block_size):
return np.array(arr)
arr = np.array(arr)
arr.chunksize = 1
return arr

def compute(anything):
return anything,
Expand Down

0 comments on commit ca3505e

Please sign in to comment.