Created
June 10, 2013 12:25
-
-
Save timlinux/5748352 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: Test we can send a basic message. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe/messaging/test_dispatcher.py", line 27, in setUp | |
self.handle_message_event, | |
AttributeError: 'DispatcherTest' object has no attribute 'handle_message_event' | |
====================================================================== | |
ERROR: Test we can send a basic message, setting it to the dispatcher. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe/messaging/test_dispatcher.py", line 27, in setUp | |
self.handle_message_event, | |
AttributeError: 'DispatcherTest' object has no attribute 'handle_message_event' | |
====================================================================== | |
ERROR: Preprocessing results are correct. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_aggregator.py", line 239, in test_preprocessing | |
DOCK.aggregator.preprocessedFeatureCount)) | |
AttributeError: 'Aggregator' object has no attribute 'preprocessedFeatureCount' | |
-------------------- >> begin captured logging << -------------------- | |
InaSAFE: INFO: Error: Computed cellsize was None. | |
InaSAFE: DEBUG: my pre dialog keywords{'category': 'postprocessing', 'source': 'OpenStreetMap', 'aggregation attribute': 'KAB_NAME', 'title': 'kabupaten jakarta'} | |
InaSAFE: DEBUG: AOImode: False | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: togglePostprocessingWidgets | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: togglePostprocessingWidgets | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: Search path: /home/timlinux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/timlinux/bin | |
InaSAFE: DEBUG: Path for gdalwarp: ['/usr/local/bin/gdalwarp'] | |
InaSAFE: DEBUG: /usr/local/bin/gdalwarp -q -t_srs EPSG:4326 -r near -cutline /tmp/inasafe/2013-06-10/timlinux/work/extent_zERdMZ.kml -crop_to_cutline -of GTiff "/home/timlinux/dev/python/inasafe_data/exposure/glp10ag.asc" "/tmp/inasafe/2013-06-10/timlinux/work/clip_5Dc5Nn.tif" | |
--------------------- >> end captured logging << --------------------- | |
====================================================================== | |
FAIL: Aggregation results are correct. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_dock.py", line 1079, in test_fullRunResults | |
self.assertEqual(myExpectedResult, myResult, myMessage) | |
AssertionError: The aggregation report should be: | |
::InaSAFE Logo [qrc:/plugins/inasafe/logo.svg] | |
*****Analysis Results | |
<table class="table table-striped condensed"> <tbody> <tr> <td colspan="100%">In the event of <i>a flood in jakarta like in 2007</i> how many <i>people</i> might <i>need evacuation</i></td> </tr> <tr> <th>People in 1.0 m of water</th> <th>977,000*</th> </tr> <tr> <td colspan="100%">* Number is rounded to the nearest 1000</td> </tr> <tr> <td colspan="100%">Map shows population density needing evacuation</td> </tr> <tr> <th>Needs per week</th> <th>Total</th> </tr> <tr> <td>Rice [kg]</td> <td>2,735,600</td> </tr> <tr> <td>Drinking Water [l]</td> <td>17,097,500</td> </tr> <tr> <td>Clean Water [l]</td> <td>102,585,000</td> </tr> <tr> <td>Family Kits</td> <td>195,400</td> </tr> <tr> <td>Toilets</td> <td>48,850</td> </tr> <tr> <th colspan="100%">Action Checklist:</th> </tr> <tr> <td colspan="100%">How will warnings be disseminated?</td> </tr> <tr> <td colspan="100%">How will we reach stranded people?</td> </tr> <tr> <td colspan="100%">Do we have enough relief items?</td> </tr> <tr> <td colspan="100%">If yes, where are they located and how will we distribute them?</td> </tr> <tr> <td colspan="100%">If no, where can we obtain additional relief items from and how will we transport them to here?</td> </tr> <tr> <th colspan="100%">Notes</th> </tr> <tr> <td colspan="100%">Total population: 10,484,000</td> </tr> <tr> <td colspan="100%">People need evacuation if flood levels exceed 1.0 m</td> </tr> <tr> <td colspan="100%">Minimum needs are defined in BNPB regulation 7/2008</td> </tr> <tr> <td colspan="100%">All values are rounded up to the nearest integer in order to avoid representing human lives as fractionals.</td> </tr> </tbody></table><table class="table table-condensed table-striped"><caption>Detailed gender report</caption><tbody><tr><td>Kab_name</td><td>Total</td><td>Female population</td><td>Weekly hygiene packs</td><td>Additional weekly rice kg for pregnant and lactating women</td></tr><tr><td>JAKARTA UTARA</td><td>344,655</td><td>175,774</td><td>139,512</td><td>16,379</td></tr><tr><td>JAKARTA BARAT</td><td>278,349</td><td>141,958</td><td>112,672</td><td>13,228</td></tr><tr><td>JAKARTA TIMUR</td><td>251,489</td><td>128,259</td><td>101,800</td><td>11,952</td></tr><tr><td>JAKARTA PUSAT</td><td>66,829</td><td>34,083</td><td>27,052</td><td>3,176</td></tr><tr><td>JAKARTA SELATAN</td><td>33,221</td><td>16,943</td><td>13,447</td><td>1,579</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr></tbody></table><table class="table table-condensed table-striped"><caption>Detailed age report</caption><tbody><tr><td>Kab_name</td><td>Total</td><td>Youth count</td><td>Adult count</td><td>Elderly count</td></tr><tr><td>JAKARTA UTARA</td><td>344,655</td><td>90,644</td><td>227,128</td><td>26,883</td></tr><tr><td>JAKARTA BARAT</td><td>278,349</td><td>73,206</td><td>183,432</td><td>21,711</td></tr><tr><td>JAKARTA TIMUR</td><td>251,489</td><td>66,142</td><td>165,731</td><td>19,616</td></tr><tr><td>JAKARTA PUSAT</td><td>66,829</td><td>17,576</td><td>44,040</td><td>5,213</td></tr><tr><td>JAKARTA SELATAN</td><td>33,221</td><td>8,737</td><td>21,893</td><td>2,591</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr></tbody></table> | |
*****Hazard details | |
A flood in Jakarta like in 2007 - sourced from HKV | |
*****Exposure details | |
People - sourced from Center for International Earth Science Information Network (CIESIN) | |
Found: | |
::InaSAFE Logo [qrc:/plugins/inasafe/logo.svg] | |
*****Analysis Results | |
<table class="table table-striped condensed"> <tbody> <tr> <td colspan="100%">In the event of <i>a flood in jakarta like in 2007</i> how many <i>people</i> might <i>need evacuation</i></td> </tr> <tr> <th>People in 1.0 m of water</th> <th>977,000*</th> </tr> <tr> <td colspan="100%">* Number is rounded to the nearest 1000</td> </tr> <tr> <td colspan="100%">Map shows population density needing evacuation</td> </tr> <tr> <th>Needs per week</th> <th>Total</th> </tr> <tr> <td>Rice [kg]</td> <td>2,735,600</td> </tr> <tr> <td>Drinking Water [l]</td> <td>17,097,500</td> </tr> <tr> <td>Clean Water [l]</td> <td>102,585,000</td> </tr> <tr> <td>Family Kits</td> <td>195,400</td> </tr> <tr> <td>Toilets</td> <td>48,850</td> </tr> <tr> <th colspan="100%">Action Checklist:</th> </tr> <tr> <td colspan="100%">How will warnings be disseminated?</td> </tr> <tr> <td colspan="100%">How will we reach stranded people?</td> </tr> <tr> <td colspan="100%">Do we have enough relief items?</td> </tr> <tr> <td colspan="100%">If yes, where are they located and how will we distribute them?</td> </tr> <tr> <td colspan="100%">If no, where can we obtain additional relief items from and how will we transport them to here?</td> </tr> <tr> <th colspan="100%">Notes</th> </tr> <tr> <td colspan="100%">Total population: 10,484,000</td> </tr> <tr> <td colspan="100%">People need evacuation if flood levels exceed 1.0 m</td> </tr> <tr> <td colspan="100%">Minimum needs are defined in BNPB regulation 7/2008</td> </tr> <tr> <td colspan="100%">All values are rounded up to the nearest integer in order to avoid representing human lives as fractionals.</td> </tr> </tbody></table><table class="table table-condensed table-striped"><caption>Detailed gender report</caption><tbody><tr><td>Kab_name</td><td>Total</td><td>Female population</td><td>Weekly hygiene packs</td><td>Additional weekly rice kg for pregnant and lactating women</td></tr><tr><td>JAKARTA UTARA</td><td>344,655</td><td>172,327</td><td>136,776</td><td>16,058</td></tr><tr><td>JAKARTA BARAT</td><td>278,349</td><td>139,174</td><td>110,463</td><td>12,969</td></tr><tr><td>JAKARTA TIMUR</td><td>251,489</td><td>125,745</td><td>99,803</td><td>11,717</td></tr><tr><td>JAKARTA PUSAT</td><td>66,829</td><td>33,415</td><td>26,521</td><td>3,114</td></tr><tr><td>JAKARTA SELATAN</td><td>33,221</td><td>16,610</td><td>13,184</td><td>1,548</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr></tbody></table><table class="table table-condensed table-striped"><caption>Detailed age report</caption><tbody><tr><td>Kab_name</td><td>Total</td><td>Youth count</td><td>Adult count</td><td>Elderly count</td></tr><tr><td>JAKARTA UTARA</td><td>344,655</td><td>90,644</td><td>227,128</td><td>26,883</td></tr><tr><td>JAKARTA BARAT</td><td>278,349</td><td>73,206</td><td>183,432</td><td>21,711</td></tr><tr><td>JAKARTA TIMUR</td><td>251,489</td><td>66,142</td><td>165,731</td><td>19,616</td></tr><tr><td>JAKARTA PUSAT</td><td>66,829</td><td>17,576</td><td>44,040</td><td>5,213</td></tr><tr><td>JAKARTA SELATAN</td><td>33,221</td><td>8,737</td><td>21,893</td><td>2,591</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr><tr><td>JAKARTA TIMUR</td><td>0</td><td>0</td><td>0</td><td>0</td></tr></tbody></table> | |
*****Hazard details | |
A flood in Jakarta like in 2007 - sourced from HKV | |
*****Exposure details | |
People - sourced from Center for International Earth Science Information Network (CIESIN) | |
-------------------- >> begin captured stdout << --------------------- | |
min_value, max_value: 0.0 60.7295593145 | |
--------------------- >> end captured stdout << ---------------------- | |
-------------------- >> begin captured logging << -------------------- | |
InaSAFE: INFO: Width: 638.0 | |
InaSAFE: INFO: Height: 649.0 | |
InaSAFE: INFO: Pixel Size: 0.00045228819716 | |
InaSAFE: INFO: Memory requirement: about 3mb per raster layer (7544mb available). 0.04 / 10 | |
InaSAFE: DEBUG: my pre dialog keywords{'category': 'postprocessing', 'aggregation attribute': 'KAB_NAME', 'subcategory': 'aggregation', 'title': 'kabupaten jakarta singlepart', 'female ratio attribute': 'Use default', 'female ratio default': 0.5} | |
InaSAFE: DEBUG: AOImode: False | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: togglePostprocessingWidgets | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: togglePostprocessingWidgets | |
InaSAFE: DEBUG: adjust ing dialog size | |
InaSAFE: DEBUG: Search path: /home/timlinux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/timlinux/bin | |
InaSAFE: DEBUG: Path for gdalwarp: ['/usr/local/bin/gdalwarp'] | |
InaSAFE: DEBUG: /usr/local/bin/gdalwarp -q -t_srs EPSG:4326 -r near -tr 0.000452 0.000452 -cutline /tmp/inasafe/2013-06-10/timlinux/work/extent_W_1fWg.kml -crop_to_cutline -of GTiff "/home/timlinux/dev/python/inasafe_data/hazard/Flood_Current_Depth_Jakarta_geographic.asc" "/tmp/inasafe/2013-06-10/timlinux/work/clip_HA5V6h.tif" | |
InaSAFE: DEBUG: Search path: /home/timlinux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/timlinux/bin | |
InaSAFE: DEBUG: Path for gdalwarp: ['/usr/local/bin/gdalwarp'] | |
InaSAFE: DEBUG: /usr/local/bin/gdalwarp -q -t_srs EPSG:4326 -r near -tr 0.000452 0.000452 -cutline /tmp/inasafe/2013-06-10/timlinux/work/extent_pdb8kY.kml -crop_to_cutline -of GTiff "/home/timlinux/dev/python/inasafe_data/exposure/glp10ag.asc" "/tmp/inasafe/2013-06-10/timlinux/work/clip_Ck4_kC.tif" | |
InaSAFE: DEBUG: calculate_impact called with: | |
Layers: [<safe.storage.raster.Raster instance at 0x656e1b8>, <safe.storage.raster.Raster instance at 0x656e200>] | |
Function:<class 'safe.impact_functions.inundation.flood_population_evacuation.FloodEvacuationFunction'> | |
InaSAFE: DEBUG: Removing this attributes: [] | |
InaSAFE: DEBUG: Running this postprocessors: {'Gender': <safe.postprocessors.gender_postprocessor.GenderPostprocessor instance at 0x42feb90>, 'Age': <safe.postprocessors.age_postprocessor.AgePostprocessor instance at 0x42fe3f8>} | |
InaSAFE: DEBUG: name : Total | |
result : 278349 | |
InaSAFE: DEBUG: name : Female population | |
result : 139174 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 110463 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 12969 | |
InaSAFE: DEBUG: name : Total | |
result : 278349 | |
InaSAFE: DEBUG: name : Youth count | |
result : 73206 | |
InaSAFE: DEBUG: name : Adult count | |
result : 183432 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 21711 | |
InaSAFE: DEBUG: name : Total | |
result : 66829 | |
InaSAFE: DEBUG: name : Female population | |
result : 33415 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 26521 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 3114 | |
InaSAFE: DEBUG: name : Total | |
result : 66829 | |
InaSAFE: DEBUG: name : Youth count | |
result : 17576 | |
InaSAFE: DEBUG: name : Adult count | |
result : 44040 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 5213 | |
InaSAFE: DEBUG: name : Total | |
result : 33221 | |
InaSAFE: DEBUG: name : Female population | |
result : 16610 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 13184 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 1548 | |
InaSAFE: DEBUG: name : Total | |
result : 33221 | |
InaSAFE: DEBUG: name : Youth count | |
result : 8737 | |
InaSAFE: DEBUG: name : Adult count | |
result : 21893 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 2591 | |
InaSAFE: DEBUG: name : Total | |
result : 0 | |
InaSAFE: DEBUG: name : Female population | |
result : 0 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 0 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 0 | |
InaSAFE: DEBUG: name : Total | |
result : 0 | |
InaSAFE: DEBUG: name : Youth count | |
result : 0 | |
InaSAFE: DEBUG: name : Adult count | |
result : 0 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 0 | |
InaSAFE: DEBUG: name : Total | |
result : 0 | |
InaSAFE: DEBUG: name : Female population | |
result : 0 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 0 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 0 | |
InaSAFE: DEBUG: name : Total | |
result : 0 | |
InaSAFE: DEBUG: name : Youth count | |
result : 0 | |
InaSAFE: DEBUG: name : Adult count | |
result : 0 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 0 | |
InaSAFE: DEBUG: name : Total | |
result : 251489 | |
InaSAFE: DEBUG: name : Female population | |
result : 125745 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 99803 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 11717 | |
InaSAFE: DEBUG: name : Total | |
result : 251489 | |
InaSAFE: DEBUG: name : Youth count | |
result : 66142 | |
InaSAFE: DEBUG: name : Adult count | |
result : 165731 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 19616 | |
InaSAFE: DEBUG: name : Total | |
result : 344655 | |
InaSAFE: DEBUG: name : Female population | |
result : 172327 | |
InaSAFE: DEBUG: name : Weekly hygiene packs | |
result : 136776 | |
InaSAFE: DEBUG: name : Additional weekly rice kg for pregnant and lactating women | |
result : 16058 | |
InaSAFE: DEBUG: name : Total | |
result : 344655 | |
InaSAFE: DEBUG: name : Youth count | |
result : 90644 | |
InaSAFE: DEBUG: name : Adult count | |
result : 227128 | |
InaSAFE: DEBUG: name : Elderly count | |
result : 26883 | |
InaSAFE: DEBUG: myEngineImpactLayer.is_raster | |
InaSAFE: DEBUG: Rendering raster using <= 1.8 styling | |
InaSAFE: DEBUG: [{'min': 0.0, 'max': 7.591194914315853, 'colour': '#FFFFFF', 'label': '[0 - 8] High', 'transparency': 100, 'quantity': 7.591194914315853}, {'min': 7.5911949143158539, 'max': 15.182389828631706, 'colour': '#38A800', 'label': '[8 - 15] Low', 'transparency': 0, 'quantity': 15.182389828631706}, {'min': 15.182389828631708, 'max': 22.77358474294756, 'colour': '#79C900', 'label': '[15 - 23] High', 'transparency': 0, 'quantity': 22.77358474294756}, {'min': 22.773584742947563, 'max': 30.364779657263412, 'colour': '#CEED00', 'label': '[23 - 30] High', 'transparency': 0, 'quantity': 30.364779657263412}, {'min': 30.364779657263416, 'max': 37.95597457157926, 'colour': '#FFCC00', 'label': '[30 - 38] Medium', 'transparency': 0, 'quantity': 37.95597457157926}, {'min': 37.955974571579269, 'max': 45.54716948589512, 'colour': '#FF6600', 'label': '[38 - 46] High', 'transparency': 0, 'quantity': 45.54716948589512}, {'min': 45.547169485895125, 'max': 53.138364400210975, 'colour': '#FF0000', 'label': '[46 - 53] High', 'transparency': 0, 'quantity': 53.138364400210975}, {'min': 53.138364400210982, 'max': 60.729559314526824, 'colour': '#7A0000', 'label': '[53 - 61] High', 'transparency': 0, 'quantity': 60.729559314526824}] | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 0.0, 'max': 7.591194914315853, 'colour': '#FFFFFF', 'label': '[0 - 8] High', 'transparency': 100, 'quantity': 7.591194914315853} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 7.5911949143158539, 'max': 15.182389828631706, 'colour': '#38A800', 'label': '[8 - 15] Low', 'transparency': 0, 'quantity': 15.182389828631706} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 15.182389828631708, 'max': 22.77358474294756, 'colour': '#79C900', 'label': '[15 - 23] High', 'transparency': 0, 'quantity': 22.77358474294756} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 22.773584742947563, 'max': 30.364779657263412, 'colour': '#CEED00', 'label': '[23 - 30] High', 'transparency': 0, 'quantity': 30.364779657263412} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 30.364779657263416, 'max': 37.95597457157926, 'colour': '#FFCC00', 'label': '[30 - 38] Medium', 'transparency': 0, 'quantity': 37.95597457157926} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 37.955974571579269, 'max': 45.54716948589512, 'colour': '#FF6600', 'label': '[38 - 46] High', 'transparency': 0, 'quantity': 45.54716948589512} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 45.547169485895125, 'max': 53.138364400210975, 'colour': '#FF0000', 'label': '[46 - 53] High', 'transparency': 0, 'quantity': 53.138364400210975} | |
InaSAFE: DEBUG: Evaluating class: | |
{'min': 53.138364400210982, 'max': 60.729559314526824, 'colour': '#7A0000', 'label': '[53 - 61] High', 'transparency': 0, 'quantity': 60.729559314526824} | |
--------------------- >> end captured logging << --------------------- | |
====================================================================== | |
FAIL: Test that we can render html from impact table keywords. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_html_renderer.py", line 129, in test_printImpactTable | |
assert mySize >= myExpectedSize, myMessage | |
AssertionError: Expected rendered table pdf to be at least 20936, got 20605 | |
-------------------- >> begin captured logging << -------------------- | |
InaSAFE: DEBUG: InaSAFE HtmlRenderer testing printImpactTable | |
InaSAFE: DEBUG: InaSAFE HtmlRenderer class initialised | |
InaSAFE: INFO: InaSAFE Map printToPdf called | |
InaSAFE: DEBUG: InaSAFE Map setupPrinter called | |
InaSAFE: DEBUG: htmlLoadedSlot slot called | |
InaSAFE: ERROR: Failed to load html | |
--------------------- >> end captured logging << --------------------- | |
====================================================================== | |
FAIL: Test that we can render html to a pixmap. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_html_renderer.py", line 153, in test_renderHtmlToImage | |
assert myFlag, myMessage | |
AssertionError: Checking for platform specific variant... | |
/tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png | |
/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-13.04-x86_64.png | |
No platform specific control image could be found, | |
testing against all control images. Try adding Ubuntu-13.04-x86_64 in | |
the file name if you want it to be detected for this | |
platform which will speed up image comparison tests. | |
Control and test images are different sizes. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-12.04-x86_64 (2952 x 773) | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png (2952 x 816) | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.Control and test images are different sizes. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantWindows7-SP1-AMD64.png (2952 x 773) | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png (2952 x 816) | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.Control and test images are different sizes. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-13.04-x86_64 (2952 x 773) | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png (2952 x 816) | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed.15468 of 2408832 pixels are mismatched. Tolerance is 1000. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-12.10-x86_64.png | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png | |
Difference image: /tmp/inasafe/2013-06-10/timlinux/test/difference-renderHtmlToImage-variantUbuntu-12.10-x86_64.pngKJI8i9.png | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed. | |
-------------------- >> begin captured logging << -------------------- | |
InaSAFE: DEBUG: InaSAFE HtmlRenderer testing renderHtmlToImage | |
InaSAFE: DEBUG: <table class="table table-striped condensed bordered-table"><thead><tr><th>Wilayah</th><th>Jumlah Penduduk</th><th>Jumlah Penduduk yang Mungkin</th><th>Wilayah</th><th>Jumlah Penduduk</th><th>Jumlah Penduduk yang Mungkin</th></tr></thead><tr><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr><tr><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td><td>2</td></tr><tr><td>3</td><td>3</td><td>3</td><td>3</td><td>3</td><td>3</td></tr><tr><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td><td>4</td></tr><tr><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td></tr><tr><td>6</td><td>6</td><td>6</td><td>6</td><td>6</td><td>6</td></tr><tr><td>7</td><td>7</td><td>7</td><td>7</td><td>7</td><td>7</td></tr><tr><td>8</td><td>8</td><td>8</td><td>8</td><td>8</td><td>8</td></tr><tr><td>9</td><td>9</td><td>9</td><td>9</td><td>9</td><td>9</td></tr><tr><td>10</td><td>10</td><td>10</td><td>10</td><td>10</td><td>10</td></tr><tr><td>11</td><td>11</td><td>11</td><td>11</td><td>11</td><td>11</td></tr><tr><td>12</td><td>12</td><td>12</td><td>12</td><td>12</td><td>12</td></tr><tr><td>13</td><td>13</td><td>13</td><td>13</td><td>13</td><td>13</td></tr><tr><td>14</td><td>14</td><td>14</td><td>14</td><td>14</td><td>14</td></tr><tr><td>15</td><td>15</td><td>15</td><td>15</td><td>15</td><td>15</td></tr><tr><td>16</td><td>16</td><td>16</td><td>16</td><td>16</td><td>16</td></tr><tr><td>17</td><td>17</td><td>17</td><td>17</td><td>17</td><td>17</td></tr><tr><td>18</td><td>18</td><td>18</td><td>18</td><td>18</td><td>18</td></tr><tr><td>19</td><td>19</td><td>19</td><td>19</td><td>19</td><td>19</td></tr><tr><td>20</td><td>20</td><td>20</td><td>20</td><td>20</td><td>20</td></tr></table> | |
InaSAFE: DEBUG: InaSAFE HtmlRenderer class initialised | |
InaSAFE: DEBUG: /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png | |
InaSAFE: DEBUG: InaSAFE Map renderHtmlToImage called | |
InaSAFE: DEBUG: htmlLoadedSlot slot called | |
InaSAFE: ERROR: Failed to load html | |
InaSAFE: DEBUG: <class 'PyQt4.QtGui.QImage'> | |
InaSAFE: DEBUG: Control and test images are different sizes. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-12.04-x86_64 (2952 x 773) | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png (2952 x 816) | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed. | |
InaSAFE: DEBUG: No match for control image /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-12.04-x86_64 | |
InaSAFE: DEBUG: Control and test images are different sizes. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantWindows7-SP1-AMD64.png (2952 x 773) | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png (2952 x 816) | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed. | |
InaSAFE: DEBUG: No match for control image /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantWindows7-SP1-AMD64.png | |
InaSAFE: DEBUG: Control and test images are different sizes. | |
Control image : /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-13.04-x86_64 (2952 x 773) | |
Test image : /tmp/inasafe/2013-06-10/timlinux/test/testHtmlToImageoieJKt.png (2952 x 816) | |
If this test has failed look at the above images to try to determine what may have change or adjust the tolerance if needed. | |
InaSAFE: DEBUG: No match for control image /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-13.04-x86_64 | |
InaSAFE: DEBUG: Saving difference image as: /tmp/inasafe/2013-06-10/timlinux/test/difference-renderHtmlToImage-variantUbuntu-12.10-x86_64.pngKJI8i9.png | |
InaSAFE: DEBUG: No match for control image /home/timlinux/dev/python/inasafe-dev/safe_qgis/test_data/test_images/renderHtmlToImage-variantUbuntu-12.10-x86_64.png | |
--------------------- >> end captured logging << --------------------- | |
====================================================================== | |
FAIL: Generated layers are not added to the map registry. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_postprocessor_manager.py", line 94, in test_checkPostProcessingLayersVisibility | |
assert myResult, myMessage | |
AssertionError: | |
Hazard Layer Not Found: A flood in Jakarta like in 2007 | |
Combo State: | |
Hazard Layers | |
------------------------- | |
Exposure Layers | |
------------------------- | |
Functions | |
------------------------- | |
Aggregation Layers | |
------------------------- | |
>> means combo item is selected | |
====================================================================== | |
FAIL: Check that the post processor does not add spurious report rows. | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/timlinux/dev/python/inasafe-dev/safe_qgis/test_postprocessor_manager.py", line 148, in test_postProcessorOutput | |
assert myResult, myMessage | |
AssertionError: | |
Hazard Layer Not Found: A flood in Jakarta like in 2007 | |
Combo State: | |
Hazard Layers | |
------------------------- | |
Exposure Layers | |
------------------------- | |
Functions | |
------------------------- | |
Aggregation Layers | |
------------------------- | |
>> means combo item is selected |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment