Skip to content
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

Added a view exposure_by_country #9498

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Added a view exposure_by_country #9498

merged 4 commits into from
Feb 29, 2024

Conversation

micheles
Copy link
Contributor

@micheles micheles commented Feb 29, 2024

This is needed by the Aristotle project #9227. We can use the taxonomy mapping corresponding to the country with more assets. Here is what happens for the event based risk demo (Nepal):

$ oq show exposure_by_country
| country | num_assets |
|---------+------------|
| 119     | 24         |
| IND     | 928        |
| NPL     | 8_111      |

NB: also added an utility SiteCollection.split_by_gh3 that will be useful in the future.

@micheles micheles added this to the Engine 3.19.0 milestone Feb 29, 2024
@micheles micheles self-assigned this Feb 29, 2024
@micheles micheles merged commit 1b9ae69 into master Feb 29, 2024
6 checks passed
@micheles micheles deleted the exposure_by_country branch February 29, 2024 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant