Repository navigation
Show each scenario's vulnerability functions - #59
Merged
Merged
Conversation
Scenarios describe their vulnerability functions in their model settings (data_settings.vulnerability). Show them: - Run a scenario: in the chosen scenario's details - Showcase: under the scenario description - Compare: for each run, with a note that losses depend on the vulnerability functions as well as the hazard - Guide: what vulnerability functions are, which each scenario uses (from the model settings), and how to run a scenario with different ones Scenarios that don't describe them say so. Addresses #27. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 6, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Shows which vulnerability functions each scenario uses. Addresses #27.
The information lives with the scenario data: each model's settings describes its functions in
data_settings.vulnerability(source,description, optionalurl), added in OasisLMF/Scenarios#9. The app only presents it.Changes
modules.scenarios.vulnerability_info()reads the block; the scenario catalogue includes it#27 coverage
model_settings.vulnerability_set)Testing
pytest: 143 passed (new:vulnerability_info, chosen scenario and Showcase show it, undocumented case, Guide list); ruff and autopep8 clean🤖 Generated with Claude Code