{"action":"created","issue":{"url":"https://api.github.com/repos/blaze/dask/issues/290","labels_url":"https://api.github.com/repos/blaze/dask/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/blaze/dask/issues/290/comments","events_url":"https://api.github.com/repos/blaze/dask/issues/290/events","html_url":"https://github.com/blaze/dask/issues/290","id":87012229,"number":290,"title":"Improve user experience of interacting with numpy arrays","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-10T15:41:06Z","updated_at":"2015-08-22T15:37:09Z","closed_at":null,"body":"Currently when numpy arrays interact with dask arrays we swallow errors silently, revealing them only at computation time.\r\n\r\n```python\r\nIn [1]: import dask.array as da\r\nIn [2]: import numpy as np\r\nIn [3]: x = da.arange(15, chunks=5)\r\nIn [4]: y = np.arange(15)\r\n\r\nIn [5]: x + y\r\nOut[5]: dask.array<x_1, shape=(15,), chunks=((5, 5, 5)), dtype=int64>\r\n\r\nIn [6]: _.compute()\r\nValueError: operands could not be broadcast together with shapes (5,) (15,) \r\n```\r\n\r\nWe should do one of the following things:\r\n\r\n1.  Figure out automatic conversion of a numpy array into a dask array with appropriate shape to make the operation work (hard in general, maybe easy in a few key cases)\r\n2.  Raise an informative error early on (maybe easier in the hard cases)"},"comment":{"url":"https://api.github.com/repos/blaze/dask/issues/comments/133715878","html_url":"https://github.com/blaze/dask/issues/290#issuecomment-133715878","issue_url":"https://api.github.com/repos/blaze/dask/issues/290","id":133715878,"user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars.githubusercontent.com/u/306380?v=3","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T15:37:09Z","updated_at":"2015-08-22T15:37:09Z","body":"Glad to hear it :)"}}