{"action":"created","issue":{"url":"https://api.github.com/repos/dask/dask/issues/3507","repository_url":"https://api.github.com/repos/dask/dask","labels_url":"https://api.github.com/repos/dask/dask/issues/3507/labels{/name}","comments_url":"https://api.github.com/repos/dask/dask/issues/3507/comments","events_url":"https://api.github.com/repos/dask/dask/issues/3507/events","html_url":"https://github.com/dask/dask/pull/3507","id":323744209,"number":3507,"title":"Introduce \"auto\" value for normalize_chunks","user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars3.githubusercontent.com/u/306380?v=4","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,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-05-16T18:53:56Z","updated_at":"2018-05-22T15:30:06Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/dask/dask/pulls/3507","html_url":"https://github.com/dask/dask/pull/3507","diff_url":"https://github.com/dask/dask/pull/3507.diff","patch_url":"https://github.com/dask/dask/pull/3507.patch"},"body":"This allows for automatic decisions when rechunking in certain dimensions.\r\n\r\n```python\r\nIn [1]: import dask.array as da\r\n\r\nIn [2]: x = da.ones((20, 20), chunks=(2, 2))\r\n\r\nIn [3]: x.rechunk({0: -1, 1: \"auto\"}, block_size_limit=20*8).chunks\r\nOut[3]: ((20,), (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1))\r\n\r\nIn [4]: x.rechunk({0: -1, 1: \"auto\"}, block_size_limit=100*8).chunks\r\nOut[4]: ((20,), (5, 5, 5, 5))\r\n```\r\n\r\nThis also centralizes some logic for dict and -1 handling from rechunk into `normalize_chunks`.  This introduces options for this logic to also be used at construction time.\r\n\r\n```python\r\nIn [1]: import numpy as np\r\n\r\nIn [2]: import dask.array as da\r\n\r\nIn [3]: x = np.random.random((1000, 1000, 1000))\r\n\r\nIn [4]: y = da.from_array(x, chunks={0: 100, 1: -1, 2: \"auto\"})\r\n\r\nIn [5]: y\r\nOut[5]: dask.array<array, shape=(1000, 1000, 1000), dtype=float64, chunksize=(100, 1000, 125)>\r\n```\r\n\r\n- [x] Tests added / passed\r\n- [x] Passes `flake8 dask`\r\n"},"comment":{"url":"https://api.github.com/repos/dask/dask/issues/comments/391034940","html_url":"https://github.com/dask/dask/pull/3507#issuecomment-391034940","issue_url":"https://api.github.com/repos/dask/dask/issues/3507","id":391034940,"user":{"login":"mrocklin","id":306380,"avatar_url":"https://avatars3.githubusercontent.com/u/306380?v=4","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":"2018-05-22T15:30:06Z","updated_at":"2018-05-22T15:30:06Z","author_association":"MEMBER","body":"Gentle ping to bump this up on @jakirkham 's inbox\r\n\r\nAlso @shoyer any further comments?"}}
{"actor":{"display_login":"mrocklin"}}