{"action":"created","issue":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/371","labels_url":"https://api.github.com/repos/convexopt/gpkit/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/convexopt/gpkit/issues/371/comments","events_url":"https://api.github.com/repos/convexopt/gpkit/issues/371/events","html_url":"https://github.com/convexopt/gpkit/issues/371","id":103356236,"number":371,"title":"pformat calling <","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":{"url":"https://api.github.com/repos/convexopt/gpkit/milestones/6","html_url":"https://github.com/convexopt/gpkit/milestones/0.3.2%20-%20bug%20fixes%20and%20signomial%20constraints","labels_url":"https://api.github.com/repos/convexopt/gpkit/milestones/6/labels","id":1273824,"number":6,"title":"0.3.2 - bug fixes and signomial constraints","description":"Minor release for bug fixes and making signomial constraint math right.","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":5,"closed_issues":10,"state":"open","created_at":"2015-08-26T17:42:10Z","updated_at":"2015-09-03T19:55:18Z","due_on":"2015-09-03T04:00:00Z","closed_at":null},"comments":6,"created_at":"2015-08-26T20:22:28Z","updated_at":"2015-09-03T22:21:30Z","closed_at":null,"body":"Perhaps unrelated, perhaps not, but another `repr` error:\r\n\r\n```\r\nfrom gpkit.shortcuts import *\r\nfrom numpy import ones\r\n\r\nN = 6\r\nL = 5.\r\ndx = L/(N-1)\r\n\r\nEI = Var(\"EI\",10)\r\n\r\nP = 100\r\np = Vec(N, \"p\", descr=\"Distributed load\")\r\np = p.sub(p, P*ones(N))\r\n\r\nV  = Vec(N, \"V\", label=\"Internal shear\")\r\nM  = Vec(N, \"M\", label=\"Internal moment\")\r\nth = Vec(N, \"th\", label=\"Slope\")\r\nw  = Vec(N, \"w\", label=\"Displacement\")\r\n\r\neps = 1E-6 #something small\r\n\r\nsubstitutions = {var: eps for var in [V[-1], M[-1], th[0], w[0]]}\r\n\r\nobjective = w[-1]\r\n\r\nconstraints = [EI*V.left[1:N]     >= EI*V[1:N]    + 0.5*dx*p.left[1:N]     + 0.5*dx*p[1:N],\r\n               EI*M.left[1:N]     >= EI*M[1:N]    + 0.5*dx*V.left[1:N]     + 0.5*dx*V[1:N],\r\n               EI*th.right[0:N-1] >= EI*th[0:N-1] + 0.5*dx*M.right[0:N-1]  + 0.5*dx*M[0:N-1],\r\n               EI*w.right[0:N-1]  >= EI*w[0:N-1]  + 0.5*dx*th.right[0:N-1] + 0.5*dx*th[0:N-1]]\r\n\r\nm = Model(objective, constraints, substitutions)\r\n```\r\n\r\nThis code doesn't generate an error on its own, but\r\n\r\n```\r\nIn [2]: m\r\nOut[2]: <repr(<gpkit.model.Model at 0x10441d090>) failed: TypeError: unsupported operand types for <: 'Variable' and 'Variable'>\r\n```"},"comment":{"url":"https://api.github.com/repos/convexopt/gpkit/issues/comments/137589742","html_url":"https://github.com/convexopt/gpkit/issues/371#issuecomment-137589742","issue_url":"https://api.github.com/repos/convexopt/gpkit/issues/371","id":137589742,"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},"created_at":"2015-09-03T22:21:30Z","updated_at":"2015-09-03T22:21:30Z","body":"Should we just not call `pformat` on the list of subs? That would resolve this.\r\n\r\nAnother approach -- we already have `NomialData._get_varkeys`, but that would mean we need a way to get the NomialData corresponding to a given Model (perhaps we want that)?"}}