Skip to content

Commit

Permalink
from_array names
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Jul 8, 2015
1 parent d7e0ab0 commit 5061876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dask/array/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def from_array(x, chunks, name=None, lock=False, **kwargs):
>>> a = da.from_array(x, chunks=(1000, 1000), lock=True) # doctest: +SKIP
"""
chunks = normalize_chunks(chunks, x.shape)
name = name or next(names)
name = name or 'from-array' + next(tokens)
dsk = getem(name, chunks)
if lock is True:
lock = Lock()
Expand Down

0 comments on commit 5061876

Please sign in to comment.