{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7428","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7428/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7428/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7428/events","html_url":"https://github.com/numpy/numpy/issues/7428","id":141612597,"number":7428,"title":"`np.multiply` vs. `*` ","user":{"login":"arokem","id":118582,"avatar_url":"https://avatars.githubusercontent.com/u/118582?v=3","gravatar_id":"","url":"https://api.github.com/users/arokem","html_url":"https://github.com/arokem","followers_url":"https://api.github.com/users/arokem/followers","following_url":"https://api.github.com/users/arokem/following{/other_user}","gists_url":"https://api.github.com/users/arokem/gists{/gist_id}","starred_url":"https://api.github.com/users/arokem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arokem/subscriptions","organizations_url":"https://api.github.com/users/arokem/orgs","repos_url":"https://api.github.com/users/arokem/repos","events_url":"https://api.github.com/users/arokem/events{/privacy}","received_events_url":"https://api.github.com/users/arokem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-17T15:13:13Z","updated_at":"2016-03-17T18:42:00Z","closed_at":null,"body":"In the course of our work over on [dipy](https://github.com/nipy/dipy/pull/951), we stumbled into the following behavior:\r\n\r\nThe following line: \r\nhttps://github.com/nipy/dipy/blob/master/dipy/denoise/shift_twist_convolution.pyx#L68\r\n\r\nraises this error (on np 1.11, but not earlier): \r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"contextual_enhancement.py\", line 149, in <module>\r\n    sh_order=8, test_mode=True)\r\n  File \"dipy/denoise/shift_twist_convolution.pyx\", line 68, in dipy.denoise.shift_twist_convolution.convolve (dipy/denoise/shift_twist_convolution.c:2147)\r\nTypeError: 'numpy.float64' object cannot be interpreted as an index\r\n```\r\n\r\nWhen changed to this: \r\n\r\nhttps://github.com/stephanmeesters/dipy/blob/enhance_5d_update_pr/dipy/denoise/shift_twist_convolution.pyx#L69\r\n\r\nThis error no longer occurs. What does the error mean (it's a bit opaque in this context), and how do we avoid it in the future?\r\n\r\nThanks! "},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/198027073","html_url":"https://github.com/numpy/numpy/issues/7428#issuecomment-198027073","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7428","id":198027073,"user":{"login":"njsmith","id":609896,"avatar_url":"https://avatars.githubusercontent.com/u/609896?v=3","gravatar_id":"","url":"https://api.github.com/users/njsmith","html_url":"https://github.com/njsmith","followers_url":"https://api.github.com/users/njsmith/followers","following_url":"https://api.github.com/users/njsmith/following{/other_user}","gists_url":"https://api.github.com/users/njsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/njsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njsmith/subscriptions","organizations_url":"https://api.github.com/users/njsmith/orgs","repos_url":"https://api.github.com/users/njsmith/repos","events_url":"https://api.github.com/users/njsmith/events{/privacy}","received_events_url":"https://api.github.com/users/njsmith/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T18:42:00Z","updated_at":"2016-03-17T18:42:00Z","body":"Wow. I didn't know that this `nb_mul`/`sq_repeat` mess could get *worse* :-("}}