Repository navigation
Release 1.0.1: construction-year handling + uncertainty tests
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 (nullableInt32, blank in
eaves_summary.csv) instead of a sentinel. This also fixes a circular bug:
the flat-water check was gated onis_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_unknowncount 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