{"action":"opened","issue":{"url":"https://api.github.com/repos/maubreville/SlideRunner/issues/20","repository_url":"https://api.github.com/repos/maubreville/SlideRunner","labels_url":"https://api.github.com/repos/maubreville/SlideRunner/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/maubreville/SlideRunner/issues/20/comments","events_url":"https://api.github.com/repos/maubreville/SlideRunner/issues/20/events","html_url":"https://github.com/maubreville/SlideRunner/issues/20","id":371873050,"node_id":"MDU6SXNzdWUzNzE4NzMwNTA=","number":20,"title":"AttributeError: 'SlideRunnerUI' object has no attribute 'get_colors'","user":{"login":"mingrui","id":699276,"node_id":"MDQ6VXNlcjY5OTI3Ng==","avatar_url":"https://avatars1.githubusercontent.com/u/699276?v=4","gravatar_id":"","url":"https://api.github.com/users/mingrui","html_url":"https://github.com/mingrui","followers_url":"https://api.github.com/users/mingrui/followers","following_url":"https://api.github.com/users/mingrui/following{/other_user}","gists_url":"https://api.github.com/users/mingrui/gists{/gist_id}","starred_url":"https://api.github.com/users/mingrui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mingrui/subscriptions","organizations_url":"https://api.github.com/users/mingrui/orgs","repos_url":"https://api.github.com/users/mingrui/repos","events_url":"https://api.github.com/users/mingrui/events{/privacy}","received_events_url":"https://api.github.com/users/mingrui/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T09:16:58Z","updated_at":"2018-10-19T09:16:58Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nRecently working an a polygon ROI to .png patches plugin, updated to latest code, but it seems the polygon tool is breaking when \"closing\" a polygon.\r\n\r\nat the end of my polygon drawing, I will double click and select a annotation label, then it crashes.\r\nthis is the error:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/mnt/960EVO/workspace/pathology/SlideRunner-Master/SlideRunner/gui/annotation.py\", line 50, in addPolygonAnnotation\r\n    self.showAnnotationsInOverview()\r\n  File \"/mnt/960EVO/workspace/pathology/SlideRunner-Master/SlideRunner/SlideRunner.py\", line 1003, in showAnnotationsInOverview\r\n    self.tn_annot = self.overlayAnnotations(self.tn_annot, region=[np.zeros(2),tnsize], zoomLevel=self.thumbnail.downsamplingFactor, thickness=1, adjustList = False)\r\n  File \"/mnt/960EVO/workspace/pathology/SlideRunner-Master/SlideRunner/SlideRunner.py\", line 1114, in overlayAnnotations\r\n    image = self.showPolygon(tempimage=image, polygon=poly[0], color=self.get_colors(poly[1]))\r\nAttributeError: 'SlideRunnerUI' object has no attribute 'get_colors'\r\n[1]    12682 abort (core dumped)  python main.py\r\n```"}}
{"actor":{"display_login":"mingrui"}}