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

Example versioning and vulnerability features #178

Closed
wants to merge 2 commits into from
Closed

Conversation

ncerutti
Copy link

  1. Example PR #1388

model_settings_vuln.json contains the following line:
"supported_oed_versions": ["1.5", "2.0"]

If the exposure data contains new codes incompatible with the latest compatible version of oed (2.0, in this case), these codes will be converted.

  1. Example PR #1415

analysis_settings_vuln.json contains the following lines:
"vulnerability_settings": {
"replace_file": "vuln_adj.csv",
}

When loading the vulnerability data, data contained in the file vuln_adj.csv will be applied, replacing specific vulnerability functions.

  1. Example PR #1426

analysis_settings_vuln.json contains the following lines:
"vulnerability_settings": {
"adjustments": {"2": 0.5 , "8": 1.5}
}

When calculating losses, the random numbers associated to vulnerability 2 will be multiplied by 0.5 (higher chance of falling into low damage bins) and those associated with vulnerability 8 will be multiplied by 1.5 (higher chance of falling into high damage bins).

@ncerutti ncerutti closed this May 22, 2024
@ncerutti ncerutti deleted the vuln-example branch May 22, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant