{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/9124","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/9124/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/9124/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/9124/events","html_url":"https://github.com/scipy/scipy/issues/9124","id":349046235,"node_id":"MDU6SXNzdWUzNDkwNDYyMzU=","number":9124,"title":"doc error in scipy.integrate.dblquad","user":{"login":"keithbriggs","id":5146641,"node_id":"MDQ6VXNlcjUxNDY2NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/5146641?v=4","gravatar_id":"","url":"https://api.github.com/users/keithbriggs","html_url":"https://github.com/keithbriggs","followers_url":"https://api.github.com/users/keithbriggs/followers","following_url":"https://api.github.com/users/keithbriggs/following{/other_user}","gists_url":"https://api.github.com/users/keithbriggs/gists{/gist_id}","starred_url":"https://api.github.com/users/keithbriggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithbriggs/subscriptions","organizations_url":"https://api.github.com/users/keithbriggs/orgs","repos_url":"https://api.github.com/users/keithbriggs/repos","events_url":"https://api.github.com/users/keithbriggs/events{/privacy}","received_events_url":"https://api.github.com/users/keithbriggs/received_events","type":"User","site_admin":false},"labels":[{"id":37342805,"node_id":"MDU6TGFiZWwzNzM0MjgwNQ==","url":"https://api.github.com/repos/scipy/scipy/labels/scipy.integrate","name":"scipy.integrate","color":"207de5","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-09T09:22:12Z","updated_at":"2018-08-10T11:47:54Z","closed_at":"2018-08-10T11:47:54Z","author_association":"NONE","body":"scipy.integrate.dblquad says gfun and hfun can be floats:\r\n\r\n  gfun : callable or float\r\n      The lower boundary curve in y which is a function taking a single floating point argument (x) and   returning a floating point result or a float indicating a constant boundary curve.\r\n  hfun : callable or float\r\n    The upper boundary curve in y (same requirements as gfun).\r\n\r\nHowever:\r\n\r\n>>> from scipy import integrate\r\n>>> f = lambda y, x: x*y**2\r\n>>> integrate.dblquad(f, 0, 2, lambda x: 0, lambda x: 1)\r\n(0.6666666666666667, 7.401486830834377e-15)\r\n>>> integrate.dblquad(f, 0, 2, gfun=0.0, hfun=1.0)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n ...\r\n  File \"/usr/local/lib/python3.4/dist-packages/scipy/integrate/quadpack.py\", line 504, in temp_ranges\r\n    return [gfun(args[0]), hfun(args[0])]\r\nTypeError: 'float' object is not callable\r\n"},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/412059350","html_url":"https://github.com/scipy/scipy/issues/9124#issuecomment-412059350","issue_url":"https://api.github.com/repos/scipy/scipy/issues/9124","id":412059350,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjA1OTM1MA==","user":{"login":"ilayn","id":1303842,"node_id":"MDQ6VXNlcjEzMDM4NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1303842?v=4","gravatar_id":"","url":"https://api.github.com/users/ilayn","html_url":"https://github.com/ilayn","followers_url":"https://api.github.com/users/ilayn/followers","following_url":"https://api.github.com/users/ilayn/following{/other_user}","gists_url":"https://api.github.com/users/ilayn/gists{/gist_id}","starred_url":"https://api.github.com/users/ilayn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilayn/subscriptions","organizations_url":"https://api.github.com/users/ilayn/orgs","repos_url":"https://api.github.com/users/ilayn/repos","events_url":"https://api.github.com/users/ilayn/events{/privacy}","received_events_url":"https://api.github.com/users/ilayn/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T11:47:54Z","updated_at":"2018-08-10T11:47:54Z","author_association":"MEMBER","body":"Indeed if you look at the [1.0.1 docs](https://docs.scipy.org/doc/scipy-1.0.0/reference/generated/scipy.integrate.dblquad.html#scipy.integrate.dblquad) `gfun` is only allowed to be a callable and added in version 1.1.0.\r\n\r\nSo if you update your scipy version, it would work. "}}
{"actor":{"display_login":"ilayn"}}