{"action":"opened","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7674","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7674/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7674/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7674/events","html_url":"https://github.com/numpy/numpy/issues/7674","id":156719238,"number":7674,"title":"Regression with np.histogram","user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-25T10:46:18Z","updated_at":"2016-05-25T10:46:18Z","closed_at":null,"body":"The following simple example no longer works:\r\n\r\n```\r\nnp.histogram([ 0.,  0.,  0.,  1.,  2.,  3.,  3.,  4.,  5.], bins=30, range=(-0.5, 5))\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-3-7ea9ff24a0b8> in <module>()\r\n----> 1 np.histogram([ 0.,  0.,  0.,  1.,  2.,  3.,  3.,  4.,  5.], bins=30, range=(-0.5, 5))\r\n\r\n/Users/tom/miniconda3/envs/dev35/lib/python3.5/site-packages/numpy/lib/function_base.py in histogram(a, bins, range, normed, weights, density)\r\n    683                 n.imag += np.bincount(indices, weights=tmp_w.imag, minlength=bins)\r\n    684             else:\r\n--> 685                 n += np.bincount(indices, weights=tmp_w, minlength=bins).astype(ntype)\r\n    686 \r\n    687         # Rename the bin edges for return.\r\n\r\nValueError: operands could not be broadcast together with shapes (30,) (31,) (30,) \r\n```\r\n\r\nI think this is a result of https://github.com/numpy/numpy/pull/7667\r\n\r\ncc @rkern @charris"}}
{"actor":{"display_login":"astrofrog"}}