Skip to content

Release 1.0.1: construction-year handling + uncertainty tests

Choose a tag to compare

@n-ivanovic n-ivanovic released this 01 Jun 11:50
· 44 commits to main since this release

Point release on top of v1.0.0. No change to EAV parameters (c, b) —
verified bit-identical across all 526 KSA dams.

Changed

  • Missing construction years are no longer fabricated as 2001. Dams with
    no catalogue year are left unknown (nullable Int32, blank in
    eaves_summary.csv) instead of a sentinel. This also fixes a circular bug:
    the flat-water check was gated on is_pre2000, so unknown-year dams were
    never tested for impoundment and were labelled "full" by omission. The
    detector now runs for unknown-year dams too, letting the SRTM surface decide
    full vs partial. Diagnostic: 0/18 missing-year SRTM dams show a flat-water
    signature, so all are genuine bare-valley captures.
  • Domain characterization keeps unknown-year dams visible via an
    n_year_unknown count and a "Year unknown" era-breakdown row. Only
    age-dependent statistics (era assignment, sediment budget) exclude them,
    since computing those without a build year would require fabricating one.

Added

  • test_curves_helpers.py — construction-year parsing, with an explicit guard
    that a missing year never returns the old 2001 sentinel.
  • test_uncertainty.py — unit coverage for the uncertainty module
    (compute_b_sigma, anchor back-solve, V-band algebra) backing panel S3.
  • curves._parse_construction_year() extracted as a directly testable helper.

Tests

76 pass (was 53). Fixture goldens refreshed (eaves_summary.csv only).

Full changelog: CHANGELOG.md · compare v1.0.0...v1.0.1