{"action":"created","issue":{"url":"https://api.github.com/repos/regreg/regreg/issues/12","labels_url":"https://api.github.com/repos/regreg/regreg/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/regreg/regreg/issues/12/comments","events_url":"https://api.github.com/repos/regreg/regreg/issues/12/events","html_url":"https://github.com/regreg/regreg/issues/12","id":123281523,"number":12,"title":"Failures casting arrays with numpy 1.10","user":{"login":"matthew-brett","id":67612,"avatar_url":"https://avatars.githubusercontent.com/u/67612?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-brett","html_url":"https://github.com/matthew-brett","followers_url":"https://api.github.com/users/matthew-brett/followers","following_url":"https://api.github.com/users/matthew-brett/following{/other_user}","gists_url":"https://api.github.com/users/matthew-brett/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-brett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-brett/subscriptions","organizations_url":"https://api.github.com/users/matthew-brett/orgs","repos_url":"https://api.github.com/users/matthew-brett/repos","events_url":"https://api.github.com/users/matthew-brett/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-brett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-21T13:41:22Z","updated_at":"2015-12-21T14:40:48Z","closed_at":null,"body":"Running some travis tests:\r\n\r\nhttps://travis-ci.org/matthew-brett/regreg/jobs/98112406#L512\r\n\r\n```\r\n======================================================================\r\nERROR: regreg.problems.tests.test_nesta_path.test_lasso_path\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/home/travis/build/matthew-brett/regreg/venv/lib/python3.5/site-packages/nose/case.py\", line 198, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/travis/build/matthew-brett/regreg/venv/lib/python3.5/site-packages/regreg/problems/tests/test_nesta_path.py\", line 16, in test_lasso_path\r\n    sol1 = lasso1.main()\r\n  File \"/home/travis/build/matthew-brett/regreg/venv/lib/python3.5/site-packages/regreg/paths.py\", line 325, in main\r\n    all_failing += strong_selector.adjoint_map(strong_failing)\r\nTypeError: Cannot cast ufunc add output from dtype('float64') to dtype('bool') with casting rule 'same_kind'\r\n```\r\n\r\nThis error is correct, because the code is trying to do an in-place add of a float (from the `adjoint_map` call) to a bool (in `all_failing`).  Should this be something like:\r\n\r\n```\r\nall_failing += strong_selector.adjoint_map(strong_failing) != 0\r\n```\r\n\r\n?"},"comment":{"url":"https://api.github.com/repos/regreg/regreg/issues/comments/166319687","html_url":"https://github.com/regreg/regreg/issues/12#issuecomment-166319687","issue_url":"https://api.github.com/repos/regreg/regreg/issues/12","id":166319687,"user":{"login":"matthew-brett","id":67612,"avatar_url":"https://avatars.githubusercontent.com/u/67612?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-brett","html_url":"https://github.com/matthew-brett","followers_url":"https://api.github.com/users/matthew-brett/followers","following_url":"https://api.github.com/users/matthew-brett/following{/other_user}","gists_url":"https://api.github.com/users/matthew-brett/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-brett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-brett/subscriptions","organizations_url":"https://api.github.com/users/matthew-brett/orgs","repos_url":"https://api.github.com/users/matthew-brett/repos","events_url":"https://api.github.com/users/matthew-brett/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-brett/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T14:40:48Z","updated_at":"2015-12-21T14:40:48Z","body":"Added a PR #13 with tentative fixes."}}