Skip to content

Changelog

All notable changes are recorded here. The format follows Keep a Changelog and the project uses semantic versioning.

[0.2.0] - 2026-11-26

Added

  • cascade.realisations(inputs, params, seeds): the collapse draw repeated over many seeds, with per-road closure frequencies, per-unit isolation-category frequencies and one row per draw.
  • cascade.result_layers and cascade.export_geopackage: the result tables joined to their geometries, written as a GeoPackage for QGIS with the run manifest beside it.
  • datasets.regrid_dem and datasets.dem_grid: a DEM averaged onto the metric run grid that the liquefaction stage needs.
  • Examples 03 (closure frequencies over many draws, GeoPackage) and 04 (damage, debris, closures and isolation from ground motion computed by another model); example 02 now runs the liquefaction screen on real terrain.
  • A documentation site with tutorials, how-to guides, concepts (design principles, status codes, limitations), reference pages for the cascade inputs, parameters and outputs, and per-module API pages. The API pages link the objects a docstring names, render its equations and list the documented module constants with their sources. Pages of an unreleased version say so.
  • Doc comments for the public constants that had none.

Changed

  • The docs extra installs what the documentation build relies on: mkdocstrings-python 2.0 or newer, mkdocs-autorefs 1.4 or newer, and ruff to format the signatures.
  • The package metadata links the documentation site and the changelog.

Fixed

  • The CascadeParams docstring no longer lists a tectonic_setting field that does not exist.
  • The documentation rendered no equations, and set text in parentheses as math: the KaTeX delimiters were written with a single backslash, which JavaScript drops.

[0.1.0] - 2026-11-25

First release: the full cascade from ground motion to relief allocation.

Added

  • groundmotion: Akkar, Sandıkkaya & Bommer (2014) GMPE for PGA, PGV and spectral acceleration with Joyner–Boore, epicentral and hypocentral distances; rupture-plane projection from a surface trace, dip and seismogenic depths; Wells & Coppersmith (1994) width and magnitude relations; percentile scenario driver with applicability flags.
  • fragility: Hazus 6.1 equivalent-PGA fragilities for 36 building types at four design levels, height classes and design-level bracketing.
  • impact: Hazus 6.1 casualties by severity and time of day, displaced households and public shelter need.
  • montecarlo: city-total damage bands under independent, between-event and fully correlated sampling that preserve each building's marginal distribution.
  • liquefaction and hydro: Zhu et al. (2015) geospatial model with clips, coverage factor and the USGS Ground Failure screening limits, Hazus susceptibility-class model, Vs30 from slope by the USGS global Vs30 method, D8 flow accumulation and the compound topographic index on the HYDRO1k scale the Zhu model was fitted on (metre convention optional).
  • debris: debris reach envelopes, road debris pressure, corridor blockage share, navigable-core test, closed-road selection that separates debris closures from roads that were never passable, and partial/no_height roads near buildings of unknown height.
  • network: routable road network with distance-based junction merging, snapping, class speeds, Tobler walking speed, SciPy or pure-NumPy shortest paths, and a multi-source nearest-facility search that respects one-way and direction-dependent costs.
  • access: isolation status before and after the event, nearest-facility times, 2SFCA with several decay kinds, and Hansen accessibility.
  • allocate: p-median depot location (greedy plus interchange) and capacity-balanced allocation.
  • mcda: TOPSIS ranking with explicit weights and missing-value handling.
  • lifelines: Hazus wave-propagation pipeline repair rates with a material range for unknown pipe.
  • cascade: one-call orchestration of every stage with a stage log, skipped-stage reasons and a fingerprinted run manifest. Per-unit sums over incompletely computed buildings are never ranked or allocated as complete totals (partial_units: exclude, scale or lower_bound, recorded in the stage log); buildings without a damage state never read as standing; every input frame's CRS is checked; unknown_height_reach_m and default_height are stated choices whenever the data need them; summary() reports how many buildings each sum leaves out.
  • datasets: deterministic synthetic town; OpenStreetMap, Copernicus GLO-30 and GEM active-fault fetchers; gem_fault_geometry for a sourced rupture geometry from a GEM record.
  • contract and crs: status codes, column specifications, extensive/intensive aggregation, manifest building and metric-CRS checks (Mercator projections refused).
  • Documentation site (method pages, tutorial, API reference), end-to-end examples on the synthetic town and on open data, GitLab CI across Python 3.10–3.14 with a pure-NumPy job, and a JOSS paper draft.

Changed (during development, before the first release)

  • Vs30 from slope (liquefaction.vs30_from_slope, vs30_from_slope_array) now follows the USGS global Vs30 code grad2vs30.c. It interpolates log–log within the slope–Vs30 bins of Allen & Wald (2009, Table 1, modified 30 arc sec, for active tectonic regions) and Wald & Allen (2007, for stable continents). The end bins are extrapolated, held at 180 m/s below and capped at 900 m/s above. This replaces linear interpolation on the Allen & Wald (2007, OFR 2007-1357) Table 2 nodes, which were held at 180/760 m/s. SLOPE_VS30_NODES is replaced by SLOPE_VS30_BINS and VS30_FROM_SLOPE_LIMITS. Effect, old → new in m/s:
slope (m/m) 3×10⁻⁴ 10⁻³ 3×10⁻³ 0.01 0.03 0.08 0.2
active 186 → 180 206 → 207 252 → 236 319 → 300 409 → 420 568 → 575 760 → 900
slope (m/m) 10⁻⁴ 10⁻³ 3×10⁻³ 0.01 0.03
stable 182 → 199 210 → 230 270 → 273 423 → 427 760 → 851

Inside the bins the change is at most about 20 m/s, at active-region slopes below 0.018 where Allen & Wald (2009) revised the bins. Beyond the last bin it reaches 140 m/s, because the value is now extrapolated up to the 900 m/s cap instead of held at 760 m/s. A negative slope now gives NaN instead of 180 m/s.