energy_data_retrieval.wind_catalogue.odre#
Offline French wind registry staging with conservative installation scope.
EICs identify network installations, not automatically whole farms. The complete national wind extract is required for name/commune screening. Current operating status is never extrapolated beyond the dated registry snapshot.
- energy_data_retrieval.wind_catalogue.odre.read_inventory(content, *, sha256, expected_count)[source]#
Verify original bytes, national count, schema and unique EIC identities.
- Parameters:
content (bytes)
sha256 (str)
expected_count (int)
- Return type:
list[dict[str, Any]]
- energy_data_retrieval.wind_catalogue.odre.stage_inventory(rows, existing, *, source_id, now, snapshot='2026-08-31', service_start='2022-01-01', service_end=None, residual=False)[source]#
Screen national identities and stage a bounded industrial-service cohort.
This bounded cohort avoids automatically treating historical WRI municipality aggregates as modern EICs. Shared communes, repeated names, phase markers and prior name/commune candidates are held. No fuzzy merge, turbine count from nbGroupes, surveyed coordinates from administrative codes, or capacity factor. All accepted capacities remain excluded until farm/phase scope is reconciled. The residual partition selects missing service dates or missing/sub-1-MW installed ratings; missing/nonpositive ratings remain held. Other cohorts still participate in the national identity screen. Bounds are inclusive ISO dates; the default preserves the original 2022+ cohort. Filtering never removes other years from the national identity screen.
- Parameters:
rows (list[dict[str, Any]])
existing (list[dict[str, Any]])
source_id (str)
now (str)
snapshot (str)
service_start (str)
service_end (str | None)
residual (bool)
- Return type:
tuple[list[dict[str, Any]], list[dict[str, Any]]]