{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/12038","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/12038/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/12038/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/12038/events","html_url":"https://github.com/numpy/numpy/issues/12038","id":364074142,"node_id":"MDU6SXNzdWUzNjQwNzQxNDI=","number":12038,"title":"numpy.maximum since 1.15 raises RuntimeWarning when encountering a NaN even though the docs say it should propagate NaNs","user":{"login":"tudorprodan","id":1012368,"node_id":"MDQ6VXNlcjEwMTIzNjg=","avatar_url":"https://avatars0.githubusercontent.com/u/1012368?v=4","gravatar_id":"","url":"https://api.github.com/users/tudorprodan","html_url":"https://github.com/tudorprodan","followers_url":"https://api.github.com/users/tudorprodan/followers","following_url":"https://api.github.com/users/tudorprodan/following{/other_user}","gists_url":"https://api.github.com/users/tudorprodan/gists{/gist_id}","starred_url":"https://api.github.com/users/tudorprodan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tudorprodan/subscriptions","organizations_url":"https://api.github.com/users/tudorprodan/orgs","repos_url":"https://api.github.com/users/tudorprodan/repos","events_url":"https://api.github.com/users/tudorprodan/events{/privacy}","received_events_url":"https://api.github.com/users/tudorprodan/received_events","type":"User","site_admin":false},"labels":[{"id":6394859,"node_id":"MDU6TGFiZWw2Mzk0ODU5","url":"https://api.github.com/repos/numpy/numpy/labels/06%20-%20Regression","name":"06 - Regression","color":"fef2c0","default":false},{"id":30180279,"node_id":"MDU6TGFiZWwzMDE4MDI3OQ==","url":"https://api.github.com/repos/numpy/numpy/labels/54%20-%20Needs%20decision","name":"54 - Needs decision","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-09-26T14:56:59Z","updated_at":"2018-10-08T14:38:05Z","closed_at":null,"author_association":"NONE","body":"`numpy.maximum` now raises a RuntimeWarning when encountering a NaN, but the documentation says it propagates NaNs and even goes to the trouble of saying exactly how they are propagated, which makes it seem like it shouldn't give a warning.\r\n\r\n### Reproducing code example:\r\n```python\r\nIn [1]: import numpy as np\r\n\r\nIn [2]: x = np.array([1, 2, np.nan], dtype=float)\r\n\r\nIn [3]: np.maximum(x, x)\r\n/home/tudor/anaconda3/bin/ipython:1: RuntimeWarning: invalid value encountered in maximum\r\n  #!/home/tudor/anaconda3/bin/python\r\nOut[3]: array([ 1.,  2., nan])\r\n\r\n```\r\n\r\n### Numpy/Python version information:\r\n\r\n```python\r\nIn [6]: import sys, numpy; print(numpy.__version__, sys.version)\r\n1.15.1 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 17:14:51)\r\n[GCC 7.2.0]\r\n```"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/427860457","html_url":"https://github.com/numpy/numpy/issues/12038#issuecomment-427860457","issue_url":"https://api.github.com/repos/numpy/numpy/issues/12038","id":427860457,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzg2MDQ1Nw==","user":{"login":"charris","id":77272,"node_id":"MDQ6VXNlcjc3Mjcy","avatar_url":"https://avatars3.githubusercontent.com/u/77272?v=4","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T14:38:05Z","updated_at":"2018-10-08T14:38:05Z","author_association":"MEMBER","body":"My own feeling on this as that we should do what is most useful to the users, but I don't know what that is :) I find the arguments for not warning a bit stronger than those in favor, although I'd like to know more about the use case in which the warning is a problem. It would be good to have more opinions, maybe a posting on the mailing list would help. Also @pv, @rgommers Thoughts?"}}
{"actor":{"display_login":"charris"}}