Closed fvanderbiest closed 7 years ago
Agreed, how best to resolve this?
Working on a regexp...
But document 1010 supplemental_information is clearly invalid:
WARNING document 1010: hazard_type not supported: Drought
WARNING document 1010: hazard_type not supported: River Flood
WARNING document 1010: hazard_type not supported: Tsunami
WARNING document 1010: hazard_type not supported: Coastal Flood
WARNING document 1010: hazard_type not supported: Strong Wind
WARNING document 1010: hazard_type not supported: Volcanic Ash
WARNING document 1010: hazard_type not supported: Landslide
We can also make our data entry more robust. Once the new list view is complete, we'll be able to check and correct all that are causing problems.
Related PR is https://github.com/GFDRR/thinkhazard/pull/748
Issue can be closed if you agree.
While harvesting newer labs geonode, we noticed these kind of errors:
Issue comes from the fact that, eg in http://www.geonode-gfdrrlab.org/api/documents/792/ we have
supplemental_information
field with value "strong_wind, river_flood, drought, landslide, volcanic_ash,"We should harden TH so that it does not fail on https://github.com/GFDRR/thinkhazard/blob/master/thinkhazard/processing/harvesting.py#L321