energy_data_retrieval.hydro_catalogue.ons_new#
Explicitly reviewed new ONS identities; no automatic name matching or MW sums.
- energy_data_retrieval.hydro_catalogue.ons_new.name_key(value)[source]#
Conservative collision screen only; this key never authorizes a merge.
- Parameters:
value (str)
- Return type:
str
- energy_data_retrieval.hydro_catalogue.ons_new.new_record(entry, *, now)[source]#
Build a CEG-keyed record from reviewed unit evidence and attributed facts.
- Parameters:
entry (dict[str, Any])
now (str)
- Return type:
dict[str, Any]
- energy_data_retrieval.hydro_catalogue.ons_new.accept_new(root, batch, output)[source]#
Preflight the whole batch, then append only new records to one reviewable shard.
Exact CEGs, historical CEG-derived WRI IDs and normalized names/aliases all block new acceptance. A replay of an identical record is a no-op. Changed evidence or another record with the same identity needs a separate review.
- Parameters:
root (Path)
batch (dict[str, Any])
output (Path)
- Return type:
int