{"action":"created","issue":{"url":"https://api.github.com/repos/hoburg/gpkit/issues/546","repository_url":"https://api.github.com/repos/hoburg/gpkit","labels_url":"https://api.github.com/repos/hoburg/gpkit/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/hoburg/gpkit/issues/546/comments","events_url":"https://api.github.com/repos/hoburg/gpkit/issues/546/events","html_url":"https://github.com/hoburg/gpkit/issues/546","id":138578908,"number":546,"title":"unit test errors with numpy 1.7","user":{"login":"whoburg","id":6042395,"avatar_url":"https://avatars.githubusercontent.com/u/6042395?v=3","gravatar_id":"","url":"https://api.github.com/users/whoburg","html_url":"https://github.com/whoburg","followers_url":"https://api.github.com/users/whoburg/followers","following_url":"https://api.github.com/users/whoburg/following{/other_user}","gists_url":"https://api.github.com/users/whoburg/gists{/gist_id}","starred_url":"https://api.github.com/users/whoburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoburg/subscriptions","organizations_url":"https://api.github.com/users/whoburg/orgs","repos_url":"https://api.github.com/users/whoburg/repos","events_url":"https://api.github.com/users/whoburg/events{/privacy}","received_events_url":"https://api.github.com/users/whoburg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"bqpd","id":1482776,"avatar_url":"https://avatars.githubusercontent.com/u/1482776?v=3","gravatar_id":"","url":"https://api.github.com/users/bqpd","html_url":"https://github.com/bqpd","followers_url":"https://api.github.com/users/bqpd/followers","following_url":"https://api.github.com/users/bqpd/following{/other_user}","gists_url":"https://api.github.com/users/bqpd/gists{/gist_id}","starred_url":"https://api.github.com/users/bqpd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bqpd/subscriptions","organizations_url":"https://api.github.com/users/bqpd/orgs","repos_url":"https://api.github.com/users/bqpd/repos","events_url":"https://api.github.com/users/bqpd/events{/privacy}","received_events_url":"https://api.github.com/users/bqpd/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hoburg/gpkit/milestones/10","html_url":"https://github.com/hoburg/gpkit/milestones/Install%20Issues","labels_url":"https://api.github.com/repos/hoburg/gpkit/milestones/10/labels","id":1608309,"number":10,"title":"Install Issues","description":"","creator":{"login":"whoburg","id":6042395,"avatar_url":"https://avatars.githubusercontent.com/u/6042395?v=3","gravatar_id":"","url":"https://api.github.com/users/whoburg","html_url":"https://github.com/whoburg","followers_url":"https://api.github.com/users/whoburg/followers","following_url":"https://api.github.com/users/whoburg/following{/other_user}","gists_url":"https://api.github.com/users/whoburg/gists{/gist_id}","starred_url":"https://api.github.com/users/whoburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoburg/subscriptions","organizations_url":"https://api.github.com/users/whoburg/orgs","repos_url":"https://api.github.com/users/whoburg/repos","events_url":"https://api.github.com/users/whoburg/events{/privacy}","received_events_url":"https://api.github.com/users/whoburg/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"closed","created_at":"2016-02-26T15:55:37Z","updated_at":"2016-03-15T18:43:04Z","due_on":null,"closed_at":"2016-03-15T18:43:04Z"},"comments":3,"created_at":"2016-03-04T20:30:43Z","updated_at":"2016-03-15T18:49:02Z","closed_at":"2016-03-15T18:40:21Z","body":"Thanks to @galbramc's nightly CI setup, we now know that our unit tests fail on an old version of numpy (1.7.2). The errors are all of two types: unsupported operand type for PosyArray, and missing np.full -- like this:\r\n\r\n```python\r\n======================================================================\r\nERROR [0.001s]: test_vector (gpkit.tests.t_sub.TestNomialSubs)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"gpkit/tests/t_sub.py\", line 73, in test_vector\r\n    self.assertTrue(all(p.sub({x: 1, \"y\": 2}) == 2*z))\r\nTypeError: unsupported operand type(s) for *: 'int' and 'PosyArray'\r\n\r\n======================================================================\r\nERROR [0.008s]: test_vector_init (gpkit.tests.t_sub.TestGPSubs)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"gpkit/tests/t_sub.py\", line 147, in test_vector_init\r\n    sol = m.solve(verbosity=0)\r\n  File \"gpkit/model.py\", line 344, in solve\r\n    *args, **kwargs)\r\n  File \"gpkit/model.py\", line 503, in _solve\r\n    solution.append(parse_result(result, constants, beforesubs))\r\n  File \"gpkit/solution_array.py\", line 355, in parse_result\r\n    vardict[veckey] = np.full(var.descr[\"shape\"], np.nan)\r\nAttributeError: 'module' object has no attribute 'full'\r\n```\r\n\r\nDo we care? If it's not an easy fix, we just say we're compatible with numpy version >= 1.8"},"comment":{"url":"https://api.github.com/repos/hoburg/gpkit/issues/comments/196970097","html_url":"https://github.com/hoburg/gpkit/issues/546#issuecomment-196970097","issue_url":"https://api.github.com/repos/hoburg/gpkit/issues/546","id":196970097,"user":{"login":"bqpd","id":1482776,"avatar_url":"https://avatars.githubusercontent.com/u/1482776?v=3","gravatar_id":"","url":"https://api.github.com/users/bqpd","html_url":"https://github.com/bqpd","followers_url":"https://api.github.com/users/bqpd/followers","following_url":"https://api.github.com/users/bqpd/following{/other_user}","gists_url":"https://api.github.com/users/bqpd/gists{/gist_id}","starred_url":"https://api.github.com/users/bqpd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bqpd/subscriptions","organizations_url":"https://api.github.com/users/bqpd/orgs","repos_url":"https://api.github.com/users/bqpd/repos","events_url":"https://api.github.com/users/bqpd/events{/privacy}","received_events_url":"https://api.github.com/users/bqpd/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T18:49:02Z","updated_at":"2016-03-15T18:49:02Z","body":"Yup!"}}