{"action":"created","issue":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/2812","repository_url":"https://api.github.com/repos/inasafe/inasafe","labels_url":"https://api.github.com/repos/inasafe/inasafe/issues/2812/labels{/name}","comments_url":"https://api.github.com/repos/inasafe/inasafe/issues/2812/comments","events_url":"https://api.github.com/repos/inasafe/inasafe/issues/2812/events","html_url":"https://github.com/inasafe/inasafe/issues/2812","id":155903915,"number":2812,"title":"I/O Error when run EQ using ITB function with bayesian approach","user":{"login":"adissadis","id":2520159,"avatar_url":"https://avatars.githubusercontent.com/u/2520159?v=3","gravatar_id":"","url":"https://api.github.com/users/adissadis","html_url":"https://github.com/adissadis","followers_url":"https://api.github.com/users/adissadis/followers","following_url":"https://api.github.com/users/adissadis/following{/other_user}","gists_url":"https://api.github.com/users/adissadis/gists{/gist_id}","starred_url":"https://api.github.com/users/adissadis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adissadis/subscriptions","organizations_url":"https://api.github.com/users/adissadis/orgs","repos_url":"https://api.github.com/users/adissadis/repos","events_url":"https://api.github.com/users/adissadis/events{/privacy}","received_events_url":"https://api.github.com/users/adissadis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inasafe/inasafe/labels/Bug","name":"Bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/inasafe/inasafe/labels/Needs%20review","name":"Needs review","color":"fbca04"}],"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":{"url":"https://api.github.com/repos/inasafe/inasafe/milestones/34","html_url":"https://github.com/inasafe/inasafe/milestones/Version%203.4","labels_url":"https://api.github.com/repos/inasafe/inasafe/milestones/34/labels","id":1512003,"number":34,"title":"Version 3.4","description":"14 May 2016 = Freeze\r\n25 May 2016 = Actual release day\r\n\r\n## Realtime\r\n\r\n[ ] Export map data to InaWARE -Rizky\r\n[ ] Interoperability with PetaJakarta, InaWARE, JakSAFE (integration when available)?\r\n\r\n## IF Refactoring & General Refactoring\r\n\r\n[ ] Move PDF generation to IF https://github.com/inasafe/inasafe/issues/2670  - Rizky\r\n[x] Move aggregation & post processing to IF - Etienne done PR https://github.com/inasafe/inasafe/pull/2661 \r\n[x] Move clipping to IF (done) and support irregular clip areas (PR https://github.com/inasafe/inasafe/pull/2648 RFC : https://github.com/inasafe/inasafe/issues/2473 flood vector building impact function) - postponed to 3.5 - Etienne\r\n[x] Wizard code cleanup ctd  https://github.com/inasafe/inasafe/issues/2449  - Borys \r\n[x] Wizard to have class mappings for class based layers https://github.com/inasafe/inasafe/issues/2673 - Borys\r\n[x] Class concept mappings in metadata should be used in aggregation - if no class mappings present no breakdown in the report (we will not break down against type column if no breakdowns given) - https://github.com/inasafe/inasafe/issues/2675 -  Etienne\r\n[ ] Wizard review of text and words - Libby / Etienne https://github.com/inasafe/inasafe/issues/2674 \r\n\r\n## Reporting \r\n\r\n[x] Impact summary as data - Ismail https://github.com/inasafe/inasafe/issues/2671 \r\n[x] IF API Stability\r\n[ ] Investigate deprecation of safe_layer, Raster and Vector Layer class -https://github.com/inasafe/inasafe/issues/2672 -  Ismail https://github.com/inasafe/inasafe/issues/2672 \r\n[ ] IF Writing tutorial - WB Funded do\r\n[ ] Post-processors integrated into IF's - shallow integration - call from IF - Etienne\r\n[ ] Flood evacuation - hive out as a separate plugin - DMI to review - discuss with BPBD DKI\r\n\r\n## Impact functions\r\n\r\n\r\n[x] **Generic landcover impact function** - move from experimental to develop - DMI to review - Martin see #1216\r\n\r\n","creator":{"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},"open_issues":31,"closed_issues":30,"state":"open","created_at":"2016-01-18T09:06:11Z","updated_at":"2016-05-25T08:37:41Z","due_on":"2016-05-24T22:00:00Z","closed_at":null},"comments":3,"created_at":"2016-05-20T07:33:04Z","updated_at":"2016-05-25T09:38:36Z","closed_at":null,"body":"### Problem\r\nI tried to run EQ analysis on raster EQ with raster population using ITB bayesian approach impact function but in the middle of the analysis i got this error:\r\n![image](https://cloud.githubusercontent.com/assets/2520159/15420541/7c10da3c-1e97-11e6-9011-77ca3bb5345a.png)\r\n\r\nHere's the error code:\r\n```\r\nProcessing started\r\n\r\nPlease wait - processing may take a while depending on your hardware configuration and the analysis extents and data.\r\n\r\nThis analysis will calculate the impact of Earthquake_Yogyakarta_2006_WGS84 on population yogya .\r\n\r\nThe following postprocessors will be used:\r\n\r\nGender: Calculates gender related statistics.\r\nAge: Calculates age related statistics.\r\nMinimum needs: Aggregates minimum needs.\r\nPreparing hazard data\r\n\r\nResampling and clipping the hazard layer to match the intersection of the exposure layer and the current view extents.\r\n\r\nPreparing exposure data\r\n\r\nResampling and clipping the exposure layer to match the intersection of the hazard layer and the current view extents.\r\n\r\nPreparing aggregation layer\r\n\r\nClipping the aggregation layer to match the intersection of the hazard and exposure layer and the current view extents.\r\n\r\nCalculating impact\r\n\r\nThis may take a little while - we are computing the areas that will be impacted by the hazard and writing the result to a new layer.\r\n\r\nProblem\r\n\r\nThe following problem(s) were encountered whilst running the analysis.\r\n\r\nIOError\r\nSuggestion\r\n\r\nYou can try the following to resolve the issue:\r\n\r\nCheck that you have the latest version of InaSAFE installed - you may have encountered a bug that is fixed in a subsequent release.\r\nCheck the InaSAFE documentation to see if you are trying to do something unsupported.\r\nReport the problem using the issue tracker at https://github.com/AIFDR/inasafe/issues. Reporting an issue requires that you first create a free account at http://github.com. When you report the issue, please copy and paste the complete contents of this panel into the issue to ensure the best possible chance of getting your issue resolved.\r\nTry contacting one of the InaSAFE development team by sending an email to info@inasafe.org. Please ensure that you copy and paste the complete contents of this panel into the email.\r\nDetails\r\n\r\nThese additional details were reported when the problem occurred.\r\n\r\nAn exception occurred when running the impact analysis.\r\n2\r\nNo such file or directory\r\nDiagnostics\r\n\r\nIn file \"C:/Users/Adityo/.qgis2/python/plugins\\inasafe\\safe\\impact_functions\\base.py\", line 677, in run_analysis self._impact = self._calculate_impact()\r\nIn file \"C:/Users/Adityo/.qgis2/python/plugins\\inasafe\\safe\\impact_functions\\base.py\", line 1395, in _calculate_impact result_layer = self.run()\r\nIn file \"C:/Users/Adityo/.qgis2/python/plugins\\inasafe\\safe\\impact_functions\\earthquake\\itb_earthquake_fatality_model\\impact_function.py\", line 256, in run fatality_rate = self.compute_fatality_rate()\r\nIn file \"C:/Users/Adityo/.qgis2/python/plugins\\inasafe\\safe\\impact_functions\\earthquake\\itb_bayesian_earthquake_fatality_model\\impact_function.py\", line 77, in compute_fatality_rate fatality_ = numpy.loadtxt(file_, dtype=float, delimiter=',')\r\nIn file \"C:\\PROGRA~1\\QGISWI~1\\apps\\Python27\\lib\\site-packages\\numpy\\lib\\npyio.py\", line 734, in loadtxt fh = iter(open(fname, 'U'))\r\n```\r\n\r\n### Expected Behaviour\r\nIf the user run the EQ analysis on raster population using ITB function with bayesian approach. It will run without an error\r\n\r\n### Environment\r\nWindows 10 64bit 16GB\r\nQGIS 2.8.9 with InaSAFE 3.4 from github\r\n\r\n### Proposed Solution\r\n"},"comment":{"url":"https://api.github.com/repos/inasafe/inasafe/issues/comments/221523259","html_url":"https://github.com/inasafe/inasafe/issues/2812#issuecomment-221523259","issue_url":"https://api.github.com/repos/inasafe/inasafe/issues/2812","id":221523259,"user":{"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},"created_at":"2016-05-25T09:38:35Z","updated_at":"2016-05-25T09:38:35Z","body":"I tried it on my machine, I couldn't replicate it. See image below:\r\n<img width=\"1299\" alt=\"screen shot 2016-05-25 at 16 24 43\" src=\"https://cloud.githubusercontent.com/assets/1421861/15534904/5111dc80-2295-11e6-84f7-036b1ee0a709.png\">\r\n\r\n\r\nI also try with the other EQ IF (the normal and pager one) and all is good also.\r\n\r\nThen I looked at the code and it seems the path manipulation is not counting the windows OS. I have made a PR in #2844.\r\n\r\nPlease try @adissadis *since I can't test it :D "}}
{"actor":{"display_login":"ismailsunni"}}