alternative_ead
alternative_ead(
base,
future=None,
*,
base_year,
future_year,
period_of_analysis,
discount_rate,
alternative_id=1,
)Annualize a base/future scenario pair into EqAD alternative results.
Builds equivalent annual damage (EqAD) results from a base-year and a future-year scenario compute. Wraps the ported Alternative::AnnualizationCompute. future=None reuses the base scenario for both years (the single-scenario case). Consumes the scenario handles (single use): annualization takes ownership of the underlying results, so a handle cannot be used twice (recompute the scenario if needed). The shared C++ analysis-year validator runs before either handle is passed to native code or consumed.
Returns
| Name | Type | Description |
|---|---|---|
| dict | The legacy mean_eqad, base_year_ead, future_year_ead, and handle entries, followed by summary. Its columns are impact_area_id, damage_category, asset_category, risk_type, base_year_ead, future_year_ead, and mean_eqad for every exact stored identity. |