optiwindnet.presentingΒΆ

Rendering of routeset properties as text for user-facing output.

Module ContentsΒΆ

optiwindnet.presenting.describe_G(G: networkx.Graph, significant_digits: int = 5) → list[str][source]ΒΆ

Create a 3-5 line summary of G’s properties.

significant_digits applies only to total length and is enforced only when the integer part has fewer significant digits than significant_digits.

Parameters:
  • G – routeset instance

  • significant_digits – minimum number of significant digits used for total length

Returns:

Text lines with capacity and T, the distinct terminal inflow (only where some turbine differs from one inflow), excess feeders and feeders per root, total length and total cost.