{"action":"created","issue":{"url":"https://api.github.com/repos/hoburg/gpkit/issues/610","repository_url":"https://api.github.com/repos/hoburg/gpkit","labels_url":"https://api.github.com/repos/hoburg/gpkit/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/hoburg/gpkit/issues/610/comments","events_url":"https://api.github.com/repos/hoburg/gpkit/issues/610/events","html_url":"https://github.com/hoburg/gpkit/issues/610","id":144114187,"number":610,"title":"index 0 is out of bounds error for a questionable signomial constraint","user":{"login":"pgkirsch","id":8702579,"avatar_url":"https://avatars.githubusercontent.com/u/8702579?v=3","gravatar_id":"","url":"https://api.github.com/users/pgkirsch","html_url":"https://github.com/pgkirsch","followers_url":"https://api.github.com/users/pgkirsch/followers","following_url":"https://api.github.com/users/pgkirsch/following{/other_user}","gists_url":"https://api.github.com/users/pgkirsch/gists{/gist_id}","starred_url":"https://api.github.com/users/pgkirsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgkirsch/subscriptions","organizations_url":"https://api.github.com/users/pgkirsch/orgs","repos_url":"https://api.github.com/users/pgkirsch/repos","events_url":"https://api.github.com/users/pgkirsch/events{/privacy}","received_events_url":"https://api.github.com/users/pgkirsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T23:55:20Z","updated_at":"2016-03-29T02:02:19Z","closed_at":null,"body":"```python\r\nfrom gpkit import Variable, Model, SignomialsEnabled\r\n\r\nx = Variable('x')\r\ny = Variable('y', 1)\r\nz = Variable('z', 4)\r\nwith SignomialsEnabled():\r\n    m = Model(x, [x + z >= y])\r\n\r\nm.localsolve()\r\n```\r\nI'm not sure how you would like to handle this case (arguably the constraint is valid, even if pretty dumb), but I think it would be good to at the very least have a useful error message, instead of the current:\r\n\r\n```python\r\nIndexError: index 0 is out of bounds for axis 0 with size 0\r\n```"},"comment":{"url":"https://api.github.com/repos/hoburg/gpkit/issues/comments/202667277","html_url":"https://github.com/hoburg/gpkit/issues/610#issuecomment-202667277","issue_url":"https://api.github.com/repos/hoburg/gpkit/issues/610","id":202667277,"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-29T02:02:19Z","updated_at":"2016-03-29T02:02:19Z","body":":+1: issue title"}}