After some further hacking around, my current solution is to use
functools.partial
to pass in the dask array
Yeah … I’ve been cautioned against using dask arrays that way in an earlier post (follow this link). But if it works for you, then that’s fine by me.
All the best with your work!