Commit 3bdacad
Add SQLite target database (Phase 5 of OA calibration pipeline)
Hierarchical target storage with two parallel geographic branches:
- Administrative: country → region → LA → MSOA → LSOA → OA
- Parliamentary: country → constituency
Schema: areas (geographic hierarchy), targets (definitions),
target_values (year-indexed values). ETL loads areas from OA
crosswalk + area code CSVs, targets from registry + local CSVs.
Query API: get_targets(), get_area_targets(), get_area_children(),
get_area_hierarchy(). 12 tests all passing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4d50734 commit 3bdacad
6 files changed
Lines changed: 1022 additions & 4 deletions
File tree
- docs
- policyengine_uk_data
- db
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | | - | |
| 109 | + | |
106 | 110 | | |
107 | 111 | | |
108 | | - | |
109 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
110 | 123 | | |
111 | 124 | | |
112 | 125 | | |
| |||
Whitespace-only changes.
0 commit comments