-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the consequence module more generic and flexible #7162
Milestone
Comments
For a generic and flexible consequence module, we would need to handle the following things cleanly and consistently:
[consequence]
consequence_file = {'taxonomy': 'consequences.csv'}
elif consequence == 'losses':
return dmgdist @ coeffs * asset['value-' + loss_type]
elif consequence == 'collapsed':
return dmgdist @ coeffs * asset['value-number']
elif consequence == 'injured':
return dmgdist @ coeffs * asset['occupants_night']
elif consequence == 'fatalities':
return dmgdist @ coeffs * asset['occupants_night']
elif consequence == 'homeless':
return dmgdist @ coeffs * asset['occupants_avg']
|
Please note that the |
raoanirudh
changed the title
The consequence script does not work anymore
Make the consequence module more generic and flexible
Jul 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The script in oq-risk-tests by @raoanirudh does not work with engine 3.12+ for several reasons (changed sap, changed the datastore, moved modules around). A good idea would be to integrate it in the engine since now the event based damage calculator is a lot more powerful that it was in the past. This is a lot of work.
The text was updated successfully, but these errors were encountered: