{"action":"created","comment":{"url":"https://api.github.com/repos/TerraME/terrame/pulls/comments/71628964","id":71628964,"diff_hunk":"@@ -26,6 +26,114 @@ local terralib = getPackage(\"terralib\")\n \n TeCoord.type_ = \"Coord\" -- We now use Coord only internally, but it is necessary to set its type.\n \n+local function loadNeighborhoodGAL(self, data)\n+\tlocal file = openFile(data.source, \"r\")\n+\tif file == nil then resourceNotFoundError(\"file\", file) end\n+\n+\tlocal header = file:read()\n+\tlocal lineTest = CSVparseLine(header, \"\\t\" )\n+\tlocal b\n+\tif lineTest[2] ~= nil then b = \"\\t\"\n+\telse b = \" \" end\n+\n+\tforEachCell(self, function(cell)\n+\t\tcell:addNeighborhood(Neighborhood{}, data.name)\n+\tend)\n+\n+\trepeat\n+\t\tlocal line_cell = file:read()\n+\t\tif line_cell ~= nil then","path":"packages/base/lua/CellularSpace.lua","position":20,"original_position":20,"commit_id":"76188402b4e55ee3fce72c39a84f958b9da9c87f","original_commit_id":"76188402b4e55ee3fce72c39a84f958b9da9c87f","user":{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false},"body":"it is better to declare line_cell = file:read() before the repeat and in the end and avoid this if here, in the following way:\r\n\r\n```lua\r\nline_cell = ...\r\nwhile line_cell do\r\n    -- process\r\n    line_cell = ...\r\nend\r\n```","created_at":"2016-07-21T00:09:51Z","updated_at":"2016-07-21T00:09:51Z","html_url":"https://github.com/TerraME/terrame/pull/1283#discussion_r71628964","pull_request_url":"https://api.github.com/repos/TerraME/terrame/pulls/1283","_links":{"self":{"href":"https://api.github.com/repos/TerraME/terrame/pulls/comments/71628964"},"html":{"href":"https://github.com/TerraME/terrame/pull/1283#discussion_r71628964"},"pull_request":{"href":"https://api.github.com/repos/TerraME/terrame/pulls/1283"}}},"pull_request":{"url":"https://api.github.com/repos/TerraME/terrame/pulls/1283","id":78196864,"html_url":"https://github.com/TerraME/terrame/pull/1283","diff_url":"https://github.com/TerraME/terrame/pull/1283.diff","patch_url":"https://github.com/TerraME/terrame/pull/1283.patch","issue_url":"https://api.github.com/repos/TerraME/terrame/issues/1283","number":1283,"state":"open","locked":false,"title":"review CellularSpace:loadNeighborhood #716","user":{"login":"JoaoVitor123","id":8431989,"avatar_url":"https://avatars.githubusercontent.com/u/8431989?v=3","gravatar_id":"","url":"https://api.github.com/users/JoaoVitor123","html_url":"https://github.com/JoaoVitor123","followers_url":"https://api.github.com/users/JoaoVitor123/followers","following_url":"https://api.github.com/users/JoaoVitor123/following{/other_user}","gists_url":"https://api.github.com/users/JoaoVitor123/gists{/gist_id}","starred_url":"https://api.github.com/users/JoaoVitor123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoaoVitor123/subscriptions","organizations_url":"https://api.github.com/users/JoaoVitor123/orgs","repos_url":"https://api.github.com/users/JoaoVitor123/repos","events_url":"https://api.github.com/users/JoaoVitor123/events{/privacy}","received_events_url":"https://api.github.com/users/JoaoVitor123/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-20T18:34:55Z","updated_at":"2016-07-21T00:09:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28d35014c99044b396d7db52a3beabca19e0249a","assignee":{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false},"assignees":[{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/TerraME/terrame/milestones/11","html_url":"https://github.com/TerraME/terrame/milestones/2.0.0-beta-3","labels_url":"https://api.github.com/repos/TerraME/terrame/milestones/11/labels","id":1832342,"number":11,"title":"2.0.0-beta-3","description":"","creator":{"login":"pedro-andrade-inpe","id":8777631,"avatar_url":"https://avatars.githubusercontent.com/u/8777631?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro-andrade-inpe","html_url":"https://github.com/pedro-andrade-inpe","followers_url":"https://api.github.com/users/pedro-andrade-inpe/followers","following_url":"https://api.github.com/users/pedro-andrade-inpe/following{/other_user}","gists_url":"https://api.github.com/users/pedro-andrade-inpe/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro-andrade-inpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro-andrade-inpe/subscriptions","organizations_url":"https://api.github.com/users/pedro-andrade-inpe/orgs","repos_url":"https://api.github.com/users/pedro-andrade-inpe/repos","events_url":"https://api.github.com/users/pedro-andrade-inpe/events{/privacy}","received_events_url":"https://api.github.com/users/pedro-andrade-inpe/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":76,"state":"open","created_at":"2016-06-16T14:00:46Z","updated_at":"2016-07-20T19:54:13Z","due_on":"2016-07-29T03:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/TerraME/terrame/pulls/1283/commits","review_comments_url":"https://api.github.com/repos/TerraME/terrame/pulls/1283/comments","review_comment_url":"https://api.github.com/repos/TerraME/terrame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TerraME/terrame/issues/1283/comments","statuses_url":"https://api.github.com/repos/TerraME/terrame/statuses/76188402b4e55ee3fce72c39a84f958b9da9c87f","head":{"label":"JoaoVitor123:master","ref":"master","sha":"76188402b4e55ee3fce72c39a84f958b9da9c87f","user":{"login":"JoaoVitor123","id":8431989,"avatar_url":"https://avatars.githubusercontent.com/u/8431989?v=3","gravatar_id":"","url":"https://api.github.com/users/JoaoVitor123","html_url":"https://github.com/JoaoVitor123","followers_url":"https://api.github.com/users/JoaoVitor123/followers","following_url":"https://api.github.com/users/JoaoVitor123/following{/other_user}","gists_url":"https://api.github.com/users/JoaoVitor123/gists{/gist_id}","starred_url":"https://api.github.com/users/JoaoVitor123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoaoVitor123/subscriptions","organizations_url":"https://api.github.com/users/JoaoVitor123/orgs","repos_url":"https://api.github.com/users/JoaoVitor123/repos","events_url":"https://api.github.com/users/JoaoVitor123/events{/privacy}","received_events_url":"https://api.github.com/users/JoaoVitor123/received_events","type":"User","site_admin":false},"repo":{"id":62805979,"name":"terrame","full_name":"JoaoVitor123/terrame","owner":{"login":"JoaoVitor123","id":8431989,"avatar_url":"https://avatars.githubusercontent.com/u/8431989?v=3","gravatar_id":"","url":"https://api.github.com/users/JoaoVitor123","html_url":"https://github.com/JoaoVitor123","followers_url":"https://api.github.com/users/JoaoVitor123/followers","following_url":"https://api.github.com/users/JoaoVitor123/following{/other_user}","gists_url":"https://api.github.com/users/JoaoVitor123/gists{/gist_id}","starred_url":"https://api.github.com/users/JoaoVitor123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoaoVitor123/subscriptions","organizations_url":"https://api.github.com/users/JoaoVitor123/orgs","repos_url":"https://api.github.com/users/JoaoVitor123/repos","events_url":"https://api.github.com/users/JoaoVitor123/events{/privacy}","received_events_url":"https://api.github.com/users/JoaoVitor123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoaoVitor123/terrame","description":"This project implements experiments with the TerraME platform","fork":true,"url":"https://api.github.com/repos/JoaoVitor123/terrame","forks_url":"https://api.github.com/repos/JoaoVitor123/terrame/forks","keys_url":"https://api.github.com/repos/JoaoVitor123/terrame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoaoVitor123/terrame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoaoVitor123/terrame/teams","hooks_url":"https://api.github.com/repos/JoaoVitor123/terrame/hooks","issue_events_url":"https://api.github.com/repos/JoaoVitor123/terrame/issues/events{/number}","events_url":"https://api.github.com/repos/JoaoVitor123/terrame/events","assignees_url":"https://api.github.com/repos/JoaoVitor123/terrame/assignees{/user}","branches_url":"https://api.github.com/repos/JoaoVitor123/terrame/branches{/branch}","tags_url":"https://api.github.com/repos/JoaoVitor123/terrame/tags","blobs_url":"https://api.github.com/repos/JoaoVitor123/terrame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoaoVitor123/terrame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoaoVitor123/terrame/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoaoVitor123/terrame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoaoVitor123/terrame/statuses/{sha}","languages_url":"https://api.github.com/repos/JoaoVitor123/terrame/languages","stargazers_url":"https://api.github.com/repos/JoaoVitor123/terrame/stargazers","contributors_url":"https://api.github.com/repos/JoaoVitor123/terrame/contributors","subscribers_url":"https://api.github.com/repos/JoaoVitor123/terrame/subscribers","subscription_url":"https://api.github.com/repos/JoaoVitor123/terrame/subscription","commits_url":"https://api.github.com/repos/JoaoVitor123/terrame/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoaoVitor123/terrame/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoaoVitor123/terrame/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoaoVitor123/terrame/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoaoVitor123/terrame/contents/{+path}","compare_url":"https://api.github.com/repos/JoaoVitor123/terrame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoaoVitor123/terrame/merges","archive_url":"https://api.github.com/repos/JoaoVitor123/terrame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoaoVitor123/terrame/downloads","issues_url":"https://api.github.com/repos/JoaoVitor123/terrame/issues{/number}","pulls_url":"https://api.github.com/repos/JoaoVitor123/terrame/pulls{/number}","milestones_url":"https://api.github.com/repos/JoaoVitor123/terrame/milestones{/number}","notifications_url":"https://api.github.com/repos/JoaoVitor123/terrame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoaoVitor123/terrame/labels{/name}","releases_url":"https://api.github.com/repos/JoaoVitor123/terrame/releases{/id}","deployments_url":"https://api.github.com/repos/JoaoVitor123/terrame/deployments","created_at":"2016-07-07T12:43:34Z","updated_at":"2016-07-07T12:43:38Z","pushed_at":"2016-07-20T19:03:20Z","git_url":"git://github.com/JoaoVitor123/terrame.git","ssh_url":"git@github.com:JoaoVitor123/terrame.git","clone_url":"https://github.com/JoaoVitor123/terrame.git","svn_url":"https://github.com/JoaoVitor123/terrame","homepage":"www.terrame.org","size":41050,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TerraME:master","ref":"master","sha":"9bb6154a59811ca0c0dba5ba007a8e923a06503d","user":{"login":"TerraME","id":12460064,"avatar_url":"https://avatars.githubusercontent.com/u/12460064?v=3","gravatar_id":"","url":"https://api.github.com/users/TerraME","html_url":"https://github.com/TerraME","followers_url":"https://api.github.com/users/TerraME/followers","following_url":"https://api.github.com/users/TerraME/following{/other_user}","gists_url":"https://api.github.com/users/TerraME/gists{/gist_id}","starred_url":"https://api.github.com/users/TerraME/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerraME/subscriptions","organizations_url":"https://api.github.com/users/TerraME/orgs","repos_url":"https://api.github.com/users/TerraME/repos","events_url":"https://api.github.com/users/TerraME/events{/privacy}","received_events_url":"https://api.github.com/users/TerraME/received_events","type":"Organization","site_admin":false},"repo":{"id":24053422,"name":"terrame","full_name":"TerraME/terrame","owner":{"login":"TerraME","id":12460064,"avatar_url":"https://avatars.githubusercontent.com/u/12460064?v=3","gravatar_id":"","url":"https://api.github.com/users/TerraME","html_url":"https://github.com/TerraME","followers_url":"https://api.github.com/users/TerraME/followers","following_url":"https://api.github.com/users/TerraME/following{/other_user}","gists_url":"https://api.github.com/users/TerraME/gists{/gist_id}","starred_url":"https://api.github.com/users/TerraME/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TerraME/subscriptions","organizations_url":"https://api.github.com/users/TerraME/orgs","repos_url":"https://api.github.com/users/TerraME/repos","events_url":"https://api.github.com/users/TerraME/events{/privacy}","received_events_url":"https://api.github.com/users/TerraME/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TerraME/terrame","description":"This project implements experiments with the TerraME platform","fork":false,"url":"https://api.github.com/repos/TerraME/terrame","forks_url":"https://api.github.com/repos/TerraME/terrame/forks","keys_url":"https://api.github.com/repos/TerraME/terrame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TerraME/terrame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TerraME/terrame/teams","hooks_url":"https://api.github.com/repos/TerraME/terrame/hooks","issue_events_url":"https://api.github.com/repos/TerraME/terrame/issues/events{/number}","events_url":"https://api.github.com/repos/TerraME/terrame/events","assignees_url":"https://api.github.com/repos/TerraME/terrame/assignees{/user}","branches_url":"https://api.github.com/repos/TerraME/terrame/branches{/branch}","tags_url":"https://api.github.com/repos/TerraME/terrame/tags","blobs_url":"https://api.github.com/repos/TerraME/terrame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TerraME/terrame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TerraME/terrame/git/refs{/sha}","trees_url":"https://api.github.com/repos/TerraME/terrame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TerraME/terrame/statuses/{sha}","languages_url":"https://api.github.com/repos/TerraME/terrame/languages","stargazers_url":"https://api.github.com/repos/TerraME/terrame/stargazers","contributors_url":"https://api.github.com/repos/TerraME/terrame/contributors","subscribers_url":"https://api.github.com/repos/TerraME/terrame/subscribers","subscription_url":"https://api.github.com/repos/TerraME/terrame/subscription","commits_url":"https://api.github.com/repos/TerraME/terrame/commits{/sha}","git_commits_url":"https://api.github.com/repos/TerraME/terrame/git/commits{/sha}","comments_url":"https://api.github.com/repos/TerraME/terrame/comments{/number}","issue_comment_url":"https://api.github.com/repos/TerraME/terrame/issues/comments{/number}","contents_url":"https://api.github.com/repos/TerraME/terrame/contents/{+path}","compare_url":"https://api.github.com/repos/TerraME/terrame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TerraME/terrame/merges","archive_url":"https://api.github.com/repos/TerraME/terrame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TerraME/terrame/downloads","issues_url":"https://api.github.com/repos/TerraME/terrame/issues{/number}","pulls_url":"https://api.github.com/repos/TerraME/terrame/pulls{/number}","milestones_url":"https://api.github.com/repos/TerraME/terrame/milestones{/number}","notifications_url":"https://api.github.com/repos/TerraME/terrame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TerraME/terrame/labels{/name}","releases_url":"https://api.github.com/repos/TerraME/terrame/releases{/id}","deployments_url":"https://api.github.com/repos/TerraME/terrame/deployments","created_at":"2014-09-15T11:12:11Z","updated_at":"2016-07-17T17:59:59Z","pushed_at":"2016-07-20T19:54:12Z","git_url":"git://github.com/TerraME/terrame.git","ssh_url":"git@github.com:TerraME/terrame.git","clone_url":"https://github.com/TerraME/terrame.git","svn_url":"https://github.com/TerraME/terrame","homepage":"www.terrame.org","size":45876,"stargazers_count":4,"watchers_count":4,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":229,"forks":8,"open_issues":229,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TerraME/terrame/pulls/1283"},"html":{"href":"https://github.com/TerraME/terrame/pull/1283"},"issue":{"href":"https://api.github.com/repos/TerraME/terrame/issues/1283"},"comments":{"href":"https://api.github.com/repos/TerraME/terrame/issues/1283/comments"},"review_comments":{"href":"https://api.github.com/repos/TerraME/terrame/pulls/1283/comments"},"review_comment":{"href":"https://api.github.com/repos/TerraME/terrame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TerraME/terrame/pulls/1283/commits"},"statuses":{"href":"https://api.github.com/repos/TerraME/terrame/statuses/76188402b4e55ee3fce72c39a84f958b9da9c87f"}}}}
{"actor":{"display_login":"pedro-andrade-inpe"}}