{"action":"opened","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/5127","labels_url":"https://api.github.com/repos/scipy/scipy/issues/5127/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/5127/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/5127/events","html_url":"https://github.com/scipy/scipy/issues/5127","id":99870809,"number":5127,"title":"Regression in 0.16.0: solve_banded errors out in patsy test suite","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-09T06:39:44Z","updated_at":"2015-08-09T06:39:44Z","closed_at":null,"body":"SciPy 0.15.1:\r\n```\r\n>>> import scipy.linalg\r\n>>> import numpy as np\r\n>>> scipy.linalg.solve_banded((1, 1), np.asarray([[0], [1.0], [0]]), np.asarray([[1.0, 2.0, 3.0]]))\r\narray([[ 1.,  2.,  3.]])\r\n```\r\n\r\nSciPy 0.16.0:\r\n```\r\n>>> import scipy.linalg\r\n>>> import numpy as np\r\n>>> scipy.linalg.solve_banded((1, 1), np.asarray([[0], [1.0], [0]]), np.asarray([[1.0, 2.0, 3.0]]))\r\nunexpected array size: new_size=1, got array with arr_size=0\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/home/njs/miniconda/envs/travis-replica-2.6/lib/python2.6/site-packages/scipy/linalg/basic.py\", line 234, in solve_banded\r\n    overwrite_ab, overwrite_b)\r\n_flapack.error: failed in converting 1st argument `dl' of _flapack.dgtsv to C/Fortran array\r\n```\r\n\r\nThis example is derived from a case that occurs in patsy when computing spline bases: https://github.com/pydata/patsy/blob/master/patsy/mgcv_cubic_splines.py#L48\r\n\r\nand causes failures in the patsy test suite: https://travis-ci.org/pydata/patsy/builds/74659634\r\n\r\nAside from this appearing to be a regression in scipy, I'd appreciate thoughts on how to work around the bug for users who do have scipy 0.16.0 installed, since I didn't actually write this code and am not actually familiar with `solve_banded` :-)"}}