Skip to content

Conversation

@spjuhel
Copy link
Collaborator

@spjuhel spjuhel commented Dec 17, 2025

As the Risk trajectory PR is too substantial, this is a first split.

This PR implements Snapshots as the foundational object for risk trajectories.

These objects regroup Exposures, Hazard and ImpactFuncSet instances for a specific date.

The rationale is to provide an immutable snapshot of risk. As such, Exposures, Hazard, ImpactFuncSet and date inputs are deep-copied, and "protected" behind read-only properties.

Likewise, to avoid any ambiguity regarding adaptation, i.e., as a user, if I provide an adaptation measure, should I give the base (Exposures, Hazard, ImpactFuncSet) triplet to which the measure is applied ? Or the triplet where the measure as already been applied, a measure is always None and can only be set through apply_measure() which returns a new object (with the measure set).

PR Author Checklist

PR Reviewer Checklist

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