{"action":"created","issue":{"url":"https://api.github.com/repos/dougthor42/wafer_map/issues/30","labels_url":"https://api.github.com/repos/dougthor42/wafer_map/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/dougthor42/wafer_map/issues/30/comments","events_url":"https://api.github.com/repos/dougthor42/wafer_map/issues/30/events","html_url":"https://github.com/dougthor42/wafer_map/issues/30","id":92020508,"number":30,"title":"Bug: doubling rows and columns with xi=0 and yi=0","user":{"login":"sinkra","id":13114827,"avatar_url":"https://avatars.githubusercontent.com/u/13114827?v=3","gravatar_id":"","url":"https://api.github.com/users/sinkra","html_url":"https://github.com/sinkra","followers_url":"https://api.github.com/users/sinkra/followers","following_url":"https://api.github.com/users/sinkra/following{/other_user}","gists_url":"https://api.github.com/users/sinkra/gists{/gist_id}","starred_url":"https://api.github.com/users/sinkra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinkra/subscriptions","organizations_url":"https://api.github.com/users/sinkra/orgs","repos_url":"https://api.github.com/users/sinkra/repos","events_url":"https://api.github.com/users/sinkra/events{/privacy}","received_events_url":"https://api.github.com/users/sinkra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dougthor42/wafer_map/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dougthor42/wafer_map/labels/fixed","name":"fixed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-30T08:05:05Z","updated_at":"2015-06-30T18:36:59Z","closed_at":"2015-06-30T18:04:44Z","body":"Hi Thor,\r\n\r\nWrong expressions in wm_utils.py in\r\n\r\ndef coord_to_grid(coord, die_size, grid_center):    \r\n    # TODO: seems have a error with negative 0 grid values.\r\n    grid_x = int(grid_center[0] + 0.5 + (coord[0] / die_size[0]))\r\n    grid_y = int(grid_center[1] + 0.5 - (coord[1] / die_size[1]))\r\n    return (grid_x, grid_y)\r\n\r\ncause doubling rows and columns with zero index (xi=-0 and yi=0) on wafer map.\r\nI fixed the expressions as follows:\r\n\r\ndef coord_to_grid(coord, die_size, grid_center):    \r\n    grid_x = int(round(grid_center[0] + (coord[0] / die_size[0])))\r\n    grid_y = int(round(grid_center[1] - (coord[1] / die_size[1])))\r\n    return (grid_x, grid_y)\r\n\r\nRegards,\r\nAlexander"},"comment":{"url":"https://api.github.com/repos/dougthor42/wafer_map/issues/comments/117296725","html_url":"https://github.com/dougthor42/wafer_map/issues/30#issuecomment-117296725","issue_url":"https://api.github.com/repos/dougthor42/wafer_map/issues/30","id":117296725,"user":{"login":"sinkra","id":13114827,"avatar_url":"https://avatars.githubusercontent.com/u/13114827?v=3","gravatar_id":"","url":"https://api.github.com/users/sinkra","html_url":"https://github.com/sinkra","followers_url":"https://api.github.com/users/sinkra/followers","following_url":"https://api.github.com/users/sinkra/following{/other_user}","gists_url":"https://api.github.com/users/sinkra/gists{/gist_id}","starred_url":"https://api.github.com/users/sinkra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinkra/subscriptions","organizations_url":"https://api.github.com/users/sinkra/orgs","repos_url":"https://api.github.com/users/sinkra/repos","events_url":"https://api.github.com/users/sinkra/events{/privacy}","received_events_url":"https://api.github.com/users/sinkra/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T18:36:59Z","updated_at":"2015-06-30T18:36:59Z","body":"Hi Douglas,\n\nI'm sending a screenshoot with a wafer map example where\ncolumns with Xi=-1 and Xi=0 are blue and white respectively,\nwhile the X index shown in the bottom left is \"x0\" for both columns.\n\nThe same is for rows with Yi=0 and Yi=-1.\n\nRegards,\nAlexander\n\nВ Вт., 30/06/2015 в 11:03 -0700, Douglas Thor пишет:\n> Cool, thanks!\n> \n> I made the change that you gave me, but I'm not sure if I understood\n> what you meant by\n> \n>         cause doubling rows and columns\n>         Was it a graphical issue? Do you have a picture of it?\n>         \n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n> \n\n"}}