koralgooll
koralgooll

Reputation: 412

How to use no argument function on dask graph?

I know how to call a function with args using dask graph, but I am not able to call a function without any args. This just return a function itself, not a result of call.

dsk = {'res': ask}
dask.get(dsk, 'res')

Could you suggest me how to do it?

Upvotes: 0

Views: 19

Answers (1)

koralgooll
koralgooll

Reputation: 412

Solved, it should be called in such a way;

dsk = {'res': (ask,)}
dask.get(dsk, 'res')

as a tuple of function name and empty.

Upvotes: 0

Related Questions