energy_data_retrieval.wind_catalogue.electrical_tables#

Review original electrical tables without inferring ratings or compatibility.

energy_data_retrieval.wind_catalogue.electrical_tables.stage_electrical_tables(documents, originals, existing, *, now)[source]#

Stage complete reviewed model partitions; hold existing identities.

Observations retain their units, circuit roles and conditions. No numerical rating is promoted to a scalar, and no application implies turbine fitment. Links identify only explicit assembly/module rows in the same document.

Parameters:
  • documents (list[dict[str, Any]])

  • originals (dict[str, bytes])

  • existing (list[dict[str, Any]])

  • now (str)

Return type:

tuple[list[dict[str, Any]], list[dict[str, Any]]]

energy_data_retrieval.wind_catalogue.electrical_tables.enrich_electrical_tables(document, original, existing, *, now)[source]#

Append reviewed specifications to exact existing same-revision equipment.

Preserve all previous facts and evidence. A different revision or changed prior enrichment requires conflict review instead of overwriting observations.

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

  • original (bytes)

  • existing (list[dict[str, Any]])

  • now (str)

Return type:

tuple[list[dict[str, Any]], list[dict[str, Any]]]