def _extract_results(net, ppc): _set_buses_out_of_service(ppc) bus_lookup_aranged = _get_aranged_lookup(net) bus_pq = _get_p_q_results(net, bus_lookup_aranged) _get_shunt_results(net, ppc, bus_lookup_aranged, bus_pq) _get_branch_results(net, ppc, bus_lookup_aranged, bus_pq) _get_gen_results(net, ppc, bus_lookup_aranged, bus_pq) _get_bus_results(net, ppc, bus_pq)
def _extract_results(net, ppc): _set_buses_out_of_service(ppc) bus_lookup_aranged = _get_aranged_lookup(net) _get_bus_v_results(net, ppc) bus_pq = _get_p_q_results(net, ppc, bus_lookup_aranged) _get_shunt_results(net, ppc, bus_lookup_aranged, bus_pq) _get_branch_results(net, ppc, bus_lookup_aranged, bus_pq) _get_gen_results(net, ppc, bus_lookup_aranged, bus_pq) _get_bus_results(net, ppc, bus_pq) if net._options["mode"] == "opf": _get_costs(net, ppc)