Make mapping of unknown occupancy code to Hazus curves optional - #610
Merged
Conversation
jroman-ak
marked this pull request as ready for review
July 9, 2026 11:16
jroman-ak
force-pushed
the
add-unknown-occ-map-escape
branch
4 times, most recently
from
July 23, 2026 11:08
aa6fc29 to
0fa8155
Compare
jroman-ak
force-pushed
the
add-unknown-occ-map-escape
branch
from
July 24, 2026 07:47
0fa8155 to
dcb1866
Compare
Signed-off-by: Juan Roman <jroman@arfimaconsulting.com>
Signed-off-by: Juan Roman <jroman@arfimaconsulting.com>
…e configurable Signed-off-by: Juan Roman <jroman@arfimaconsulting.com>
jroman-ak
force-pushed
the
add-unknown-occ-map-escape
branch
from
August 19, 2026 15:11
dcb1866 to
74ae68a
Compare
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.
I implement this as an optional runtime flag set by calling
OEDHazusImpactFunctionSelector.with_runtime_options(map_unknown_occ)insideVulnerabilityModelsFactory.vulnerability_models(). The default behavior is to not map (False).I also make the flag use_oed_hazus_curves runtime configurable by removing it from the
__init__of theVulnerabilityModelsFactoryand moving it toVulnerabilityModelsFactory.vulnerability_models(). The default is to use hazus curves (True).To toggle these two options at runtime, I introduce a field vulnerability_curve_mapping in
CalcSettingsthat takes literal values "hazus", "hazus_no_unknown" and "config_only".The default is "hazus_no_unknown".