perf: optimize trusted full-area analysis
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-14 22:57:09 +02:00
parent c4392c17fd
commit 0381fdd636
10 changed files with 164 additions and 15 deletions
@@ -255,6 +255,7 @@ def build_snapshot(
"scope_type": scope.scope_type,
"member_count": len(scope.members),
"member_nis_codes": list(scope.nis_codes),
"geometry_clipped_to_area": True,
"observation_year": year,
"missing_population_sector_count": missing_population,
"attribution": ATTRIBUTION,
@@ -301,6 +302,7 @@ def upload_snapshot(
"scope_display_name": scope.display_name,
"member_count": len(scope.members),
"member_nis_codes": list(scope.nis_codes),
"geometry_clipped_to_area": True,
"attribution": ATTRIBUTION,
"license": "CC BY 4.0",
"temporal_series_label": "Officiële bevolkingscijfers per statistische sector",
@@ -320,6 +322,7 @@ def upload_snapshot(
"operator_tool": "provision_mol_population_history.py",
"operator_explicit_fetch": True,
"scope_key": scope.key,
"geometry_clipped_to_area": True,
"sector_geometry_url": SECTOR_URL.format(year=year),
"population_url": POPULATION_URLS[year],
"generated_at": datetime.now(timezone.utc).isoformat(),