Skip to content

Commit

Permalink
Ensure store_dsk is a ShareDict at the end
Browse files Browse the repository at this point in the history
Whether persisting the results to disk or building off the graph from
the stored step, simply ensure that `store_dsk` is a `ShareDict`.
  • Loading branch information
jakirkham committed Dec 13, 2017
1 parent 6c6b385 commit 77d586b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dask/array/core.py
Expand Up @@ -924,12 +924,13 @@ def store(sources, targets, lock=True, regions=None, compute=True, keep=False, *
store_dlyd = persist(*store_dlyd)
for each_store_dlyd in store_dlyd:
store_dsk.update(each_store_dlyd.dask)
sharedict.merge(store_dsk)
else:
store_dsk = dict(sharedict.merge(
store_dsk = sharedict.merge(
(store_name, store_dsk),
dsk,
src.dask
))
)

results.append(Array(
sharedict.merge(
Expand Down

0 comments on commit 77d586b

Please sign in to comment.