energy_data_retrieval.hydro_catalogue.era#
Uganda ERA dated capacity cells and explicitly reviewed station insertions.
- energy_data_retrieval.hydro_catalogue.era.parse_inventory(data)[source]#
Read all three hydro sections; never replace blanks with zero or add totals.
- Parameters:
data (bytes)
- Return type:
list[dict[str, Any]]
- energy_data_retrieval.hydro_catalogue.era.new_record(entry, *, now)[source]#
Use frozen catalogue accessions, not row numbers masquerading as licences.
- Parameters:
entry (dict[str, Any])
now (str)
- Return type:
dict[str, Any]
- energy_data_retrieval.hydro_catalogue.era.accept_new(root, batch, output, *, record_factory=<function new_record>)[source]#
Preflight all accessions and names/aliases before writing; exact replay is a no-op.
- Parameters:
root (Path)
batch (dict[str, Any])
output (Path)
record_factory (Callable[[...], dict[str, Any]])
- Return type:
int