energy_data_retrieval.hydro_catalogue.aha#

Historical AHA evidence with explicit reviewed crosswalks; never fuzzy merges.

energy_data_retrieval.hydro_catalogue.aha.parse_inventory(data)[source]#

Bound reads to the 36-column technical table; exclude derived model columns.

Parameters:

data (bytes)

Return type:

list[dict[str, Any]]

energy_data_retrieval.hydro_catalogue.aha.enrich(existing, item, *, source_id, reviewed_record_id, reviewed_country_code, now)[source]#

Apply an explicitly reviewed name/capacity/station-location crosswalk.

Keep source status, capacity, ownership and hydraulic ratings as historical raw evidence. Do not infer current operation, reservoir energy or plant scope.

Parameters:
  • existing (dict[str, Any])

  • item (dict[str, Any])

  • source_id (str)

  • reviewed_record_id (str)

  • reviewed_country_code (str)

  • now (str)

Return type:

dict[str, Any]