{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/617","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/617/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/617/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/617/events","html_url":"https://github.com/numpy/numpy/issues/617","id":7718633,"number":617,"title":"np.log gives RuntimeWarning for arrays with nan values when array is float32 but not float64 (Trac #2161)","user":{"login":"numpy-gitbot","id":1955252,"avatar_url":"https://avatars0.githubusercontent.com/u/1955252?v=4","gravatar_id":"","url":"https://api.github.com/users/numpy-gitbot","html_url":"https://github.com/numpy-gitbot","followers_url":"https://api.github.com/users/numpy-gitbot/followers","following_url":"https://api.github.com/users/numpy-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/numpy-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy-gitbot/subscriptions","organizations_url":"https://api.github.com/users/numpy-gitbot/orgs","repos_url":"https://api.github.com/users/numpy-gitbot/repos","events_url":"https://api.github.com/users/numpy-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/numpy-gitbot/received_events","type":"User","site_admin":false},"labels":[{"id":6359214,"url":"https://api.github.com/repos/numpy/numpy/labels/00%20-%20Bug","name":"00 - Bug","color":"fef2c0","default":false},{"id":16917029,"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"009800","default":false},{"id":16915565,"url":"https://api.github.com/repos/numpy/numpy/labels/priority:%20low","name":"priority: low","color":"ff0000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2012-10-19T15:10:03Z","updated_at":"2018-02-08T22:49:22Z","closed_at":null,"author_association":"NONE","body":"_Original ticket http://projects.scipy.org/numpy/ticket/2161 on 2012-06-15 by trac user cmorton, assigned to unknown._\n\nI can easily suppress the warning by changing np.seterr, but it seemed like there shouldn't be a different result between the two.\n\n```\n>>> import numpy as np\n>>> np.seterr(all='raise')\n>>> np.log(np.array([1, np.e, np.e**2, 0, np.nan]).astype(np.float64))\narray([  0.,   1.,   2., -inf])\n>>>np.log(np.array([1, np.e, np.e**2, 0, np.nan]).astype(np.float32))\nTraceback (most recent call last):\n  File \"<pyshell#57>\", line 1, in <module>\n    np.log(np.array([1, np.e, np.e**2, 0]).astype(np.float32))\nFloatingPointError: divide by zero encountered in log\n```\n\nSorry if this ticket is missing something, it is the first one I have ever done.\n"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/364275679","html_url":"https://github.com/numpy/numpy/issues/617#issuecomment-364275679","issue_url":"https://api.github.com/repos/numpy/numpy/issues/617","id":364275679,"user":{"login":"Nodd","id":506348,"avatar_url":"https://avatars2.githubusercontent.com/u/506348?v=4","gravatar_id":"","url":"https://api.github.com/users/Nodd","html_url":"https://github.com/Nodd","followers_url":"https://api.github.com/users/Nodd/followers","following_url":"https://api.github.com/users/Nodd/following{/other_user}","gists_url":"https://api.github.com/users/Nodd/gists{/gist_id}","starred_url":"https://api.github.com/users/Nodd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nodd/subscriptions","organizations_url":"https://api.github.com/users/Nodd/orgs","repos_url":"https://api.github.com/users/Nodd/repos","events_url":"https://api.github.com/users/Nodd/events{/privacy}","received_events_url":"https://api.github.com/users/Nodd/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T22:49:22Z","updated_at":"2018-02-08T22:49:22Z","author_association":"CONTRIBUTOR","body":"The issue can still be closed as of 1.14.0 😉 "}}
{"actor":{"display_login":"Nodd"}}