pypsa.SubNetwork.calculate_Y# SubNetwork.calculate_Y(skip_pre: bool = False, active_branches_only: bool = True) → None# Calculate bus admittance matrices for AC sub-networks.