{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6634","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6634/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6634/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6634/events","html_url":"https://github.com/numpy/numpy/issues/6634","id":115396283,"number":6634,"title":"Problems encountered when trying to upgrade sagemath to numpy-1.10.1","user":{"login":"kiwifb","id":151475,"avatar_url":"https://avatars.githubusercontent.com/u/151475?v=3","gravatar_id":"","url":"https://api.github.com/users/kiwifb","html_url":"https://github.com/kiwifb","followers_url":"https://api.github.com/users/kiwifb/followers","following_url":"https://api.github.com/users/kiwifb/following{/other_user}","gists_url":"https://api.github.com/users/kiwifb/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwifb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwifb/subscriptions","organizations_url":"https://api.github.com/users/kiwifb/orgs","repos_url":"https://api.github.com/users/kiwifb/repos","events_url":"https://api.github.com/users/kiwifb/events{/privacy}","received_events_url":"https://api.github.com/users/kiwifb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2015-11-05T23:09:22Z","updated_at":"2016-11-06T04:40:39Z","closed_at":"2016-11-06T04:40:39Z","body":"I have been looking on and off at moving sagemath beyond numpy 1.8.x and numpy 1.10.1 behaves better for us than the 1.9 series [ see http://trac.sagemath.org/ticket/17642]. However we have a strange conversion problem within numpy's `linspace` function\n\n```\nsage: import numpy\nsage: u1min, u1max = -1.5, 1.5\nsage: u1num = 10\nsage: u1min.__array_interface__\n{'typestr': '=f8'}\nsage: u1max.__array_interface__\n{'typestr': '=f8'}\nsage: u1_array = numpy.linspace(u1min, u1max, u1num)\n---------------------------------------------------------------------------\nTypeError                                 Traceback (most recent call last)\n<ipython-input-6-666f5f61234c> in <module>()\n----> 1 u1_array = numpy.linspace(u1min, u1max, u1num)\n\n/home/frb15/gentoo/usr/lib/python2.7/site-packages/numpy/core/function_base.py in linspace(start, stop, num, endpoint, retstep, dtype)\n     91     stop = stop * 1.\n     92 \n---> 93     dt = result_type(start, stop, float(num))\n     94     if dtype is None:\n     95         dtype = dt\n\nTypeError: data type not understood\n```\n\nIt appears that `start` and `stop` are not converted to float by the multiplication by `1.`. The initial suggestion in issue #3504 to use `float` to cast the value to the right types would work here. Of course in that context `dt` becomes trivially `float`.\n"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/258660165","html_url":"https://github.com/numpy/numpy/issues/6634#issuecomment-258660165","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6634","id":258660165,"user":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"created_at":"2016-11-06T04:40:39Z","updated_at":"2016-11-06T04:40:39Z","body":"that code now works after gh-6659 was merged."}}
{"actor":{"display_login":"rgommers"}}