{"action":"created","issue":{"url":"https://api.github.com/repos/delph-in/pydelphin/issues/40","repository_url":"https://api.github.com/repos/delph-in/pydelphin","labels_url":"https://api.github.com/repos/delph-in/pydelphin/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/delph-in/pydelphin/issues/40/comments","events_url":"https://api.github.com/repos/delph-in/pydelphin/issues/40/events","html_url":"https://github.com/delph-in/pydelphin/issues/40","id":110271688,"number":40,"title":"Subgraph bug","user":{"login":"guyemerson","id":5824426,"avatar_url":"https://avatars.githubusercontent.com/u/5824426?v=3","gravatar_id":"","url":"https://api.github.com/users/guyemerson","html_url":"https://github.com/guyemerson","followers_url":"https://api.github.com/users/guyemerson/followers","following_url":"https://api.github.com/users/guyemerson/following{/other_user}","gists_url":"https://api.github.com/users/guyemerson/gists{/gist_id}","starred_url":"https://api.github.com/users/guyemerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyemerson/subscriptions","organizations_url":"https://api.github.com/users/guyemerson/orgs","repos_url":"https://api.github.com/users/guyemerson/repos","events_url":"https://api.github.com/users/guyemerson/events{/privacy}","received_events_url":"https://api.github.com/users/guyemerson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-07T17:02:33Z","updated_at":"2016-02-28T01:04:35Z","closed_at":null,"body":"If the list of nodeids includes a node qeq to the ltop, then I get the following error:\r\n\r\n  File \"...\\delphin\\mrs\\xmrs.py\", line 413, in subgraph\r\n    lnk=self.lnk, surface=self.surface, identifier=self.identifier\r\n  File \"...\\delphin\\mrs\\xmrs.py\", line 87, in __init__\r\n    self.add_hcons(hcons)\r\n  File \"...\\delphin\\mrs\\xmrs.py\", line 146, in add_hcons\r\n    'Handle constraint already exists for hole %s.' % hi\r\ndelphin._exceptions.XmrsError: Handle constraint already exists for hole h0.\r\n\r\nFor example, if there's an hcon \"h0 qeq h1\", and there's an ep with the label h1 and the nodeid 10001, and you call subgraph([10001]), I get this error."},"comment":{"url":"https://api.github.com/repos/delph-in/pydelphin/issues/comments/189755760","html_url":"https://github.com/delph-in/pydelphin/issues/40#issuecomment-189755760","issue_url":"https://api.github.com/repos/delph-in/pydelphin/issues/40","id":189755760,"user":{"login":"goodmami","id":1428419,"avatar_url":"https://avatars.githubusercontent.com/u/1428419?v=3","gravatar_id":"","url":"https://api.github.com/users/goodmami","html_url":"https://github.com/goodmami","followers_url":"https://api.github.com/users/goodmami/followers","following_url":"https://api.github.com/users/goodmami/following{/other_user}","gists_url":"https://api.github.com/users/goodmami/gists{/gist_id}","starred_url":"https://api.github.com/users/goodmami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodmami/subscriptions","organizations_url":"https://api.github.com/users/goodmami/orgs","repos_url":"https://api.github.com/users/goodmami/repos","events_url":"https://api.github.com/users/goodmami/events{/privacy}","received_events_url":"https://api.github.com/users/goodmami/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T01:04:35Z","updated_at":"2016-02-28T01:04:35Z","body":"Sorry for letting this one go for a while. I'm unable to reproduce, though:\r\n\r\n```python\r\n>>> s\r\n'[ LTOP: h0 INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ] RELS: < [ udef_q_rel<0:10> LBL: h4 ARG0: x3 [ x PERS: 3 NUM: pl IND: + ] RSTR: h5 BODY: h6 ]  [ \"_large_a_1_rel\"<0:5> LBL: h7 ARG0: e8 [ e SF: prop TENSE: untensed MOOD: indicative ] ARG1: x3 ]  [ \"_dog_n_1_rel\"<6:10> LBL: h7 ARG0: x3 ]  [ \"_bark_v_1_rel\"<11:15> LBL: h1 ARG0: e2 ARG1: x3 ]  [ \"_loud_a_1_rel\"<16:23> LBL: h1 ARG0: e9 [ e SF: prop TENSE: untensed MOOD: indicative PROG: - PERF: - ] ARG1: e2 ] > HCONS: < h0 qeq h1 h5 qeq h7 > ]'\r\n>>> m = simplemrs.loads_one(s)\r\n>>> m.ep(10003)\r\n<ElementaryPredication object (\"_bark_v_1_rel\" (e2)) at 139640359245168>\r\n>>> m.top\r\n'h0'\r\n>>> m.hcon(m.top)\r\n('h0', 'qeq', 'h1')\r\n>>> m.hcon(m.top)[2] == m.ep(10003).label\r\nTrue\r\n>>> print(simpledmrs.dumps_one(m.subgraph([10003]), pretty_print=True))\r\ndmrs {\r\n  10003 [\"_bark_v_1_rel\"<11:15> e PROG=- SF=prop TENSE=pres PERF=- MOOD=indicative];\r\n  0:/H -> 10003;\r\n}\r\n```\r\n\r\nDo you still have the *MRS that caused the error? There might be something else special about it."}}