Dask numpy, dask.array, , , :
grid = dask.array.zeros((100,100), chunks=(50,50))
100 100, 4 . , , . Dash ghost cells, .
:
,
import dask.array as da
grid = da.zeros((100,100), chunks=(50,50))
g = da.ghost.ghost(grid, depth={0:1,1:1}, boundary={0:0,1:1})
g2 = g.map_blocks( some_function )
s = da.ghost.trim_internals(g2, {0:1,1:1})
s.compute()
, Dask , s.compute(). MRocklin, numpy.
dask.array dask.theated scheduler , , , , , , , . dask , dask.multiprocessing:
import dask.multiprocessing
import dask
dask.set_options(get=dask.multiprocessing.get)
compute(), Dask python, , , , dask.multiprocessing .
Dask .