{"action":"created","issue":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/2769","repository_url":"https://api.github.com/repos/inasafe/inasafe","labels_url":"https://api.github.com/repos/inasafe/inasafe/issues/2769/labels{/name}","comments_url":"https://api.github.com/repos/inasafe/inasafe/issues/2769/comments","events_url":"https://api.github.com/repos/inasafe/inasafe/issues/2769/events","html_url":"https://github.com/inasafe/inasafe/issues/2769","id":153375043,"number":2769,"title":"No data in the json impact","user":{"login":"Gustry","id":1609292,"avatar_url":"https://avatars.githubusercontent.com/u/1609292?v=3","gravatar_id":"","url":"https://api.github.com/users/Gustry","html_url":"https://github.com/Gustry","followers_url":"https://api.github.com/users/Gustry/followers","following_url":"https://api.github.com/users/Gustry/following{/other_user}","gists_url":"https://api.github.com/users/Gustry/gists{/gist_id}","starred_url":"https://api.github.com/users/Gustry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gustry/subscriptions","organizations_url":"https://api.github.com/users/Gustry/orgs","repos_url":"https://api.github.com/users/Gustry/repos","events_url":"https://api.github.com/users/Gustry/events{/privacy}","received_events_url":"https://api.github.com/users/Gustry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inasafe/inasafe/labels/Bug","name":"Bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"ismailsunni","id":1421861,"avatar_url":"https://avatars.githubusercontent.com/u/1421861?v=3","gravatar_id":"","url":"https://api.github.com/users/ismailsunni","html_url":"https://github.com/ismailsunni","followers_url":"https://api.github.com/users/ismailsunni/followers","following_url":"https://api.github.com/users/ismailsunni/following{/other_user}","gists_url":"https://api.github.com/users/ismailsunni/gists{/gist_id}","starred_url":"https://api.github.com/users/ismailsunni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismailsunni/subscriptions","organizations_url":"https://api.github.com/users/ismailsunni/orgs","repos_url":"https://api.github.com/users/ismailsunni/repos","events_url":"https://api.github.com/users/ismailsunni/events{/privacy}","received_events_url":"https://api.github.com/users/ismailsunni/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-05-06T04:18:18Z","updated_at":"2016-05-06T20:36:14Z","closed_at":null,"body":"### Problem\r\nRunning Floods on Roads aggregated by the grid in the test data, I got this error : \r\n```\r\nProblem\r\nThe following problem(s) were encountered whilst running the analysis.\r\nValueError\r\n\r\nDetails\r\nThese additional details were reported when the problem occurred.\r\n\r\nError loading impact layer.\r\ninvalid literal for int() with base 10: 'No data *'\r\nDiagnostics\r\n\r\nIn file \"/home/etienne/.qgis2/python/plugins/inasafe/safe/gui/widgets/dock.py\", line 1362, in completed report = self.show_results()\r\nIn file \"/home/etienne/.qgis2/python/plugins/inasafe/safe/gui/widgets/dock.py\", line 1420, in show_results impact_report = impact_template.generate_message_report()\r\nIn file \"/home/etienne/.qgis2/python/plugins/inasafe/safe/impact_template/road_report_template.py\", line 64, in generate_message_report message.add(self.format_postprocessing())\r\nIn file \"/home/etienne/.qgis2/python/plugins/inasafe/safe/impact_template/template_base.py\", line 153, in format_postprocessing row.add(m.Cell(format_int(int(value))))\r\n```\r\n\r\nThis error is raised with area D in the grid. It doesn't contain any roads.\r\n\r\n# Proposed solution\r\nIn PR https://github.com/inasafe/inasafe/pull/2743\r\n![3858](https://cloud.githubusercontent.com/assets/1609292/15064960/963117f8-135a-11e6-87a9-ac0e3a6c76e6.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/comments/217551876","html_url":"https://github.com/inasafe/inasafe/issues/2769#issuecomment-217551876","issue_url":"https://api.github.com/repos/inasafe/inasafe/issues/2769","id":217551876,"user":{"login":"timlinux","id":178003,"avatar_url":"https://avatars.githubusercontent.com/u/178003?v=3","gravatar_id":"","url":"https://api.github.com/users/timlinux","html_url":"https://github.com/timlinux","followers_url":"https://api.github.com/users/timlinux/followers","following_url":"https://api.github.com/users/timlinux/following{/other_user}","gists_url":"https://api.github.com/users/timlinux/gists{/gist_id}","starred_url":"https://api.github.com/users/timlinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timlinux/subscriptions","organizations_url":"https://api.github.com/users/timlinux/orgs","repos_url":"https://api.github.com/users/timlinux/repos","events_url":"https://api.github.com/users/timlinux/events{/privacy}","received_events_url":"https://api.github.com/users/timlinux/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T20:36:14Z","updated_at":"2016-05-06T20:36:14Z","body":"Since the table is encoded as numerical data, would it not be better to use a convention of e.g. -1 to indicate no data? And then convert the -1 to text when we render html. CSV and other formats could retain it as numerical data?"}}