{"action":"opened","issue":{"url":"https://api.github.com/repos/FlyRanch/figurefirst/issues/17","repository_url":"https://api.github.com/repos/FlyRanch/figurefirst","labels_url":"https://api.github.com/repos/FlyRanch/figurefirst/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/FlyRanch/figurefirst/issues/17/comments","events_url":"https://api.github.com/repos/FlyRanch/figurefirst/issues/17/events","html_url":"https://github.com/FlyRanch/figurefirst/issues/17","id":187474428,"number":17,"title":"recursive runtime error (when using template feature)","user":{"login":"florisvb","id":246332,"avatar_url":"https://avatars.githubusercontent.com/u/246332?v=3","gravatar_id":"","url":"https://api.github.com/users/florisvb","html_url":"https://github.com/florisvb","followers_url":"https://api.github.com/users/florisvb/followers","following_url":"https://api.github.com/users/florisvb/following{/other_user}","gists_url":"https://api.github.com/users/florisvb/gists{/gist_id}","starred_url":"https://api.github.com/users/florisvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florisvb/subscriptions","organizations_url":"https://api.github.com/users/florisvb/orgs","repos_url":"https://api.github.com/users/florisvb/repos","events_url":"https://api.github.com/users/florisvb/events{/privacy}","received_events_url":"https://api.github.com/users/florisvb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-05T03:40:37Z","updated_at":"2016-11-05T03:40:37Z","closed_at":null,"body":"1. Create layout with a template containing many axes (say, 7), and a figure referencing that template\r\n2. Run figurefirst / plot script, save output\r\n3. Try to open that output as a new layout using figure first > results in a recursive runtime error.\r\n\r\nAttached files include a layout which can be opened (layout = figurefirst.svg_to_axes.FigureLayout('figure1_output_test2_works.svg') with figurefirst, and one that is the output from my script, which produces the runtime error (layout = figurefirst.svg_to_axes.FigureLayout('figure1_output_test2.svg'). \r\n\r\n**Note: change .txt to .svg**\r\n\r\n[figure1_output_test2_works.txt](https://github.com/FlyRanch/figurefirst/files/573001/figure1_output_test2_works.txt)\r\n[figure1_output_test2.txt](https://github.com/FlyRanch/figurefirst/files/573002/figure1_output_test2.txt)\r\n\r\nError:\r\n\r\n`File \"/home/caveman/Documents/src/python/ANALYSIS/lib/python2.7/site-packages/figurefirst/svg_to_axes.py\", line 541, in __init__\r\n    figuretree,grouptree,leafs,svgitemtree = self.make_group_tree()\r\n  File \"/home/caveman/Documents/src/python/ANALYSIS/lib/python2.7/site-packages/figurefirst/svg_to_axes.py\", line 702, in make_group_tree\r\n    newv = copy.deepcopy(figuretree[l.template_source])\r\n  File \"/usr/lib/python2.7/copy.py\", line 190, in deepcopy\r\n    y = _reconstruct(x, rv, 1, memo)\r\n  File \"/usr/lib/python2.7/copy.py\", line 334, in _reconstruct\r\n    state = deepcopy(state, memo)\r\n  File \"/usr/lib/python2.7/copy.py\", line 163, in deepcopy\r\n    y = copier(x, memo)\r\n  File \"/usr/lib/python2.7/copy.py\", line 257, in _deepcopy_dict\r\n    y[deepcopy(key, memo)] = deepcopy(value, memo)\r\n  File \"/usr/lib/python2.7/copy.py\", line 163, in deepcopy\r\n    y = copier(x, memo)\r\n`"}}
{"actor":{"display_login":"florisvb"}}