energy_data_retrieval.pv_catalogue.gem_batches#
Select a reviewed GEM partition only after verifying the complete accepted set.
- energy_data_retrieval.pv_catalogue.gem_batches.select_reviewed_gem_batch(rows, *, review, summary, batch)[source]#
Validate a disjoint, exhaustive ledger and return one unchanged partition.
This is publication selection, not a new acceptance or deduplication decision. A partial input, altered ID set, duplicate row or inconsistent batch ledger fails before any output. Country counts and every partition count are checked.
- Parameters:
rows (list[dict[str, Any]])
review (dict[str, Any])
summary (dict[str, Any])
batch (int)
- Return type:
list[dict[str, Any]]