Skip to content

Bug fix hazard string to class#601

Open
jroman-ak wants to merge 1 commit into
os-climate:mainfrom
arfima:contribute-bug-fix
Open

Bug fix hazard string to class#601
jroman-ak wants to merge 1 commit into
os-climate:mainfrom
arfima:contribute-bug-fix

Conversation

@jroman-ak

Copy link
Copy Markdown
Contributor

We fix a bug in InventorySourcePaths.hazard_types. Previously it would attempt conversion from a hazard string to a hazard class without guards. This failed if the inventory contained a hazard that was not registered as a Hazard class in physrisk. Now it simply skips that hazard and logs a warning.

We also remove a module in the tests that is unused after the recent migration to pytest.

Co-authored-by: Yulian Lyubomirov Cenov ycenov@arfima.com
Signed-off-by: Juan Román Roche jroman@arfimaconsulting.com

@jroman-ak jroman-ak marked this pull request as ready for review June 17, 2026 11:58
@jroman-ak jroman-ak requested a review from joemoorhouse as a code owner June 17, 2026 11:58
@jroman-ak jroman-ak force-pushed the contribute-bug-fix branch 3 times, most recently from ca09586 to b5b4659 Compare June 22, 2026 10:01
@YulianLC YulianLC force-pushed the contribute-bug-fix branch 2 times, most recently from 89bbd27 to 448cee3 Compare June 29, 2026 06:17
@jroman-ak jroman-ak force-pushed the contribute-bug-fix branch from 448cee3 to e5826a6 Compare July 1, 2026 10:16
Signed-off-by: Yulian Lyubomirov Cenov <ycenov@arfima.com>
@YulianLC YulianLC force-pushed the contribute-bug-fix branch from e5826a6 to 600a61b Compare July 2, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants