e2nIEE / pandapower

Compare 3612125 ... +0 ... 82a3122

Coverage Reach
pandapower/pypower/pips.py pandapower/pypower/opf_model.py pandapower/pypower/dcopf_solver.py pandapower/pypower/opf_setup.py pandapower/pypower/pipsopf_solver.py pandapower/pypower/opf_execute.py pandapower/pypower/newtonpf.py pandapower/pypower/opf_args.py pandapower/pypower/opf_consfcn.py pandapower/pypower/fdpf.py pandapower/pypower/pfsoln.py pandapower/pypower/opf_hessfcn.py pandapower/pypower/gausspf.py pandapower/pypower/opf_costfcn.py pandapower/pypower/dSbr_dV.py pandapower/pypower/makePTDF.py pandapower/pypower/qps_pips.py pandapower/pypower/makeApq.py pandapower/pypower/makeAy.py pandapower/pypower/makeAvl.py pandapower/pypower/makeYbus.py pandapower/pypower/makeBdc.py pandapower/pypower/makeSbus.py pandapower/pypower/totcost.py pandapower/pypower/opf.py pandapower/pypower/makeAang.py pandapower/pypower/polycost.py pandapower/pypower/idx_gen.py pandapower/pypower/qps_pypower.py pandapower/pypower/idx_bus.py pandapower/pypower/idx_brch.py pandapower/pypower/dSbus_dV.py pandapower/pypower/makeB.py pandapower/pypower/d2Sbus_dV2.py pandapower/pypower/dIbr_dV.py pandapower/pypower/hasPQcap.py pandapower/pypower/d2Sbr_dV2.py pandapower/pypower/add_userfcn.py pandapower/pypower/makeLODF.py pandapower/pypower/update_mupq.py pandapower/pypower/ppoption.py pandapower/pypower/run_userfcn.py pandapower/pypower/pqcost.py pandapower/pypower/util.py pandapower/pypower/d2ASbr_dV2.py pandapower/pypower/dAbr_dV.py pandapower/pypower/d2AIbr_dV2.py pandapower/pypower/d2Ibr_dV2.py pandapower/pypower/dcpf.py pandapower/pypower/printpf.py pandapower/pypower/bustypes.py pandapower/pypower/idx_cost.py pandapower/pypower/ppver.py pandapower/pypower/pipsver.py pandapower/pypower/isload.py pandapower/pypower/idx_area.py pandapower/pypower/_compat.py pandapower/pypower/__init__.py pandapower/toolbox.py pandapower/networks/cigre_networks.py pandapower/networks/create_examples.py pandapower/networks/power_system_test_cases.py pandapower/networks/dickert_lv_networks.py pandapower/networks/kerber_networks.py pandapower/networks/simple_pandapower_test_networks.py pandapower/networks/synthetic_voltage_control_lv_networks.py pandapower/networks/kerber_extreme_networks.py pandapower/networks/mv_oberrhein.py pandapower/networks/ieee_europen_lv_asymmetric.py pandapower/networks/__init__.py pandapower/estimation/algorithm/base.py pandapower/estimation/algorithm/estimator.py pandapower/estimation/algorithm/matrix_base.py pandapower/estimation/algorithm/lp.py pandapower/estimation/algorithm/optimization.py pandapower/estimation/ppc_conversion.py pandapower/estimation/util.py pandapower/estimation/state_estimation.py pandapower/estimation/results.py pandapower/estimation/idx_brch.py pandapower/estimation/idx_bus.py pandapower/estimation/__init__.py pandapower/pf/run_bfswpf.py pandapower/pf/runpp_3ph.py pandapower/pf/runpf_pypower.py pandapower/pf/run_newton_raphson_pf.py pandapower/pf/create_jacobian.py pandapower/pf/pfsoln_numba.py pandapower/pf/run_dc_pf.py pandapower/pf/iwamoto_multiplier.py pandapower/pf/makeYbus_numba.py pandapower/pf/ppci_variables.py pandapower/pf/dSbus_dV_numba.py pandapower/pf/no_numba.py pandapower/pf/create_jacobian_numba.py pandapower/shortcircuit/ppc_conversion.py pandapower/shortcircuit/currents.py pandapower/shortcircuit/results.py pandapower/shortcircuit/calc_sc.py pandapower/shortcircuit/kappa.py pandapower/shortcircuit/toolbox.py pandapower/shortcircuit/impedance.py pandapower/shortcircuit/idx_bus.py pandapower/shortcircuit/idx_brch.py pandapower/shortcircuit/__init__.py pandapower/control/controller/trafo/DiscreteTapControl.py pandapower/control/controller/trafo/ContinuousTapControl.py pandapower/control/controller/trafo/u_setofp.py pandapower/control/controller/trafo/USetTapControl.py pandapower/control/controller/characteristic_control.py pandapower/control/controller/const_control.py pandapower/control/controller/trafo_control.py pandapower/control/util/auxiliary.py pandapower/control/util/diagnostic.py pandapower/control/util/characteristic.py pandapower/control/util/__init__.py pandapower/control/run_control.py pandapower/control/basic_controller.py pandapower/control/__init__.py pandapower/timeseries/output_writer.py pandapower/timeseries/run_time_series.py pandapower/timeseries/ts_runpp.py pandapower/timeseries/read_batch_results.py pandapower/timeseries/data_sources/frame_data.py pandapower/timeseries/data_sources/__init__.py pandapower/timeseries/data_source.py pandapower/timeseries/__init__.py pandapower/converter/pypower/from_ppc.py pandapower/converter/pypower/to_ppc.py pandapower/converter/pypower/__init__.py pandapower/converter/powermodels/to_pm.py pandapower/converter/powermodels/from_pm.py pandapower/converter/powermodels/__init__.py pandapower/converter/matpower/from_mpc.py pandapower/converter/matpower/to_mpc.py pandapower/converter/matpower/__init__.py pandapower/converter/__init__.py pandapower/io_utils.py pandapower/create.py pandapower/auxiliary.py pandapower/build_branch.py pandapower/diagnostic.py pandapower/build_bus.py pandapower/topology/create_graph.py pandapower/topology/graph_searches.py pandapower/topology/graph_tool_interface.py pandapower/topology/__init__.py pandapower/results_branch.py pandapower/diagnostic_reports.py pandapower/results_bus.py pandapower/pd2ppc_zero.py pandapower/convert_format.py pandapower/build_gen.py pandapower/results_gen.py pandapower/opf/make_objective.py pandapower/opf/pm_storage.py pandapower/opf/validate_opf_input.py pandapower/opf/run_powermodels.py pandapower/file_io.py pandapower/pd2ppc.py pandapower/results.py pandapower/powerflow.py pandapower/std_types.py pandapower/optimal_powerflow.py pandapower/run.py pandapower/runpm.py pandapower/__init__.py setup.py

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 3 files from the diff.

@@ -1613,11 +1613,11 @@
Loading
1613 1613
1614 1614
    def adapt_element_idx_references(net, element, element_type, offset=0):
1615 1615
        """
1616 -
        used for switch and measurement
1616 +
        used for switch, measurement, poly_cost and pwl_cost
1617 1617
        """
1618 1618
        # element_type[0] == "l" for "line", etc.:
1619 1619
        et = element_type[0] if element == "switch" else element_type
1620 -
        et_col = "et" if element == "switch" else "element_type"
1620 +
        et_col = "et" if element in ["switch", "poly_cost", "pwl_cost"] else "element_type"
1621 1621
        elements = net[element][net[element][et_col] == et]
1622 1622
        new_index = [net[element_type].index.get_loc(ix) + offset for ix in elements.element.values]
1623 1623
        if len(new_index):
@@ -1633,6 +1633,9 @@
Loading
1633 1633
                adapt_element_idx_references(net1, element, "line")
1634 1634
                adapt_element_idx_references(net2, element, "trafo", offset=len(net1.trafo))
1635 1635
                adapt_element_idx_references(net1, element, "trafo")
1636 +
            if element in ["poly_cost", "pwl_cost"]:
1637 +
                for et in ["gen", "sgen",  "ext_grid", "load", "dcline", "storage"]:
1638 +
                    adapt_element_idx_references(net2, element, et, offset=len(net1[et]))
1636 1639
            if element == "line_geodata":
1637 1640
                ni = [net1.line.index.get_loc(ix) for ix in net1["line_geodata"].index]
1638 1641
                net1.line_geodata.set_index(np.array(ni), inplace=True)

Learn more Showing 1 files with coverage changes found.

Changes in pandapower/toolbox.py
-3
+3
Loading file...
Files Coverage
pandapower/__init__.py 100.00%
pandapower/auxiliary.py 88.51%
pandapower/build_branch.py 96.80%
pandapower/build_bus.py 95.04%
pandapower/build_gen.py 98.06%
pandapower/control/__init__.py 100.00%
pandapower/control/basic_controller.py 88.73%
pandapower/control/controller/characteristic_control.py 75.51%
pandapower/control/controller/const_control.py 89.47%
pandapower/control/controller/trafo/ContinuousTapControl.py 91.30%
pandapower/control/controller/trafo/DiscreteTapControl.py 96.55%
pandapower/control/controller/trafo/USetTapControl.py 100.00%
pandapower/control/controller/trafo/u_setofp.py 0.00%
pandapower/control/controller/trafo_control.py 77.33%
pandapower/control/run_control.py 89.51%
pandapower/control/util/__init__.py 100.00%
pandapower/control/util/auxiliary.py 81.32%
pandapower/control/util/characteristic.py 64.29%
pandapower/control/util/diagnostic.py 82.05%
pandapower/convert_format.py 75.85%
pandapower/converter/__init__.py 100.00%
pandapower/converter/matpower/__init__.py 100.00%
pandapower/converter/matpower/from_mpc.py 90.48%
pandapower/converter/matpower/to_mpc.py 96.43%
pandapower/converter/powermodels/__init__.py 100.00%
pandapower/converter/powermodels/from_pm.py 68.75%
pandapower/converter/powermodels/to_pm.py 90.84%
pandapower/converter/pypower/__init__.py 100.00%
pandapower/converter/pypower/from_ppc.py 64.33%
pandapower/converter/pypower/to_ppc.py 100.00%
pandapower/create.py 93.98%
pandapower/diagnostic.py 93.88%
pandapower/diagnostic_reports.py 86.26%
pandapower/estimation/__init__.py 100.00%
pandapower/estimation/algorithm/base.py 92.36%
pandapower/estimation/algorithm/estimator.py 94.12%
pandapower/estimation/algorithm/lp.py 95.89%
pandapower/estimation/algorithm/matrix_base.py 100.00%
pandapower/estimation/algorithm/optimization.py 94.12%
pandapower/estimation/idx_brch.py 100.00%
pandapower/estimation/idx_bus.py 100.00%
pandapower/estimation/ppc_conversion.py 98.37%
pandapower/estimation/results.py 100.00%
pandapower/estimation/state_estimation.py 95.37%
pandapower/estimation/util.py 94.03%
pandapower/file_io.py 79.61%
pandapower/io_utils.py 74.22%
pandapower/networks/__init__.py 100.00%
pandapower/networks/cigre_networks.py 99.21%
pandapower/networks/create_examples.py 100.00%
pandapower/networks/dickert_lv_networks.py 87.39%
pandapower/networks/ieee_europen_lv_asymmetric.py 69.23%
pandapower/networks/kerber_extreme_networks.py 100.00%
pandapower/networks/kerber_networks.py 100.00%
pandapower/networks/mv_oberrhein.py 96.77%
pandapower/networks/power_system_test_cases.py 93.15%
pandapower/networks/simple_pandapower_test_networks.py 100.00%
pandapower/networks/synthetic_voltage_control_lv_networks.py 98.90%
pandapower/opf/make_objective.py 97.52%
pandapower/opf/pm_storage.py 10.81%
pandapower/opf/run_powermodels.py 100.00%
pandapower/opf/validate_opf_input.py 100.00%
pandapower/optimal_powerflow.py 95.52%
pandapower/pd2ppc.py 94.37%
pandapower/pd2ppc_zero.py 93.23%
pandapower/pf/create_jacobian.py 95.00%
pandapower/pf/create_jacobian_numba.py 100.00%
pandapower/pf/dSbus_dV_numba.py 50.00%
pandapower/pf/iwamoto_multiplier.py 17.86%
pandapower/pf/makeYbus_numba.py 100.00%
pandapower/pf/no_numba.py 0.00%
pandapower/pf/pfsoln_numba.py 95.35%
pandapower/pf/ppci_variables.py 95.24%
pandapower/pf/run_bfswpf.py 95.00%
pandapower/pf/run_dc_pf.py 100.00%
pandapower/pf/run_newton_raphson_pf.py 91.47%
pandapower/pf/runpf_pypower.py 85.07%
pandapower/pf/runpp_3ph.py 96.80%
pandapower/powerflow.py 95.76%
pandapower/pypower/__init__.py 100.00%
pandapower/pypower/_compat.py 100.00%
pandapower/pypower/add_userfcn.py 57.14%
pandapower/pypower/bustypes.py 100.00%
pandapower/pypower/d2AIbr_dV2.py 100.00%
pandapower/pypower/d2ASbr_dV2.py 30.77%
pandapower/pypower/d2Ibr_dV2.py 100.00%
pandapower/pypower/d2Sbr_dV2.py 19.05%
pandapower/pypower/d2Sbus_dV2.py 100.00%
pandapower/pypower/dAbr_dV.py 100.00%
pandapower/pypower/dIbr_dV.py 80.95%
pandapower/pypower/dSbr_dV.py 56.86%
pandapower/pypower/dSbus_dV.py 66.67%
pandapower/pypower/dcopf_solver.py 93.62%
pandapower/pypower/dcpf.py 91.67%
pandapower/pypower/fdpf.py 80.28%
pandapower/pypower/gausspf.py 79.25%
pandapower/pypower/hasPQcap.py 85.71%
pandapower/pypower/idx_area.py 100.00%
pandapower/pypower/idx_brch.py 100.00%
pandapower/pypower/idx_bus.py 100.00%
pandapower/pypower/idx_cost.py 100.00%
pandapower/pypower/idx_gen.py 100.00%
pandapower/pypower/isload.py 100.00%
pandapower/pypower/makeAang.py 60.71%
pandapower/pypower/makeApq.py 60.00%
pandapower/pypower/makeAvl.py 66.67%
pandapower/pypower/makeAy.py 97.44%
pandapower/pypower/makeB.py 100.00%
pandapower/pypower/makeBdc.py 96.77%
pandapower/pypower/makeLODF.py 100.00%
pandapower/pypower/makePTDF.py 80.00%
pandapower/pypower/makeSbus.py 100.00%
pandapower/pypower/makeYbus.py 100.00%
pandapower/pypower/newtonpf.py 93.55%
pandapower/pypower/opf.py 92.86%
pandapower/pypower/opf_args.py 62.07%
pandapower/pypower/opf_consfcn.py 81.94%
pandapower/pypower/opf_costfcn.py 69.81%
pandapower/pypower/opf_execute.py 77.32%
pandapower/pypower/opf_hessfcn.py 98.51%
pandapower/pypower/opf_model.py 94.41%
pandapower/pypower/opf_setup.py 94.49%
pandapower/pypower/pfsoln.py 97.14%
pandapower/pypower/pips.py 85.61%
pandapower/pypower/pipsopf_solver.py 100.00%
pandapower/pypower/pipsver.py 50.00%
pandapower/pypower/polycost.py 92.59%
pandapower/pypower/ppoption.py 100.00%
pandapower/pypower/ppver.py 50.00%
pandapower/pypower/pqcost.py 71.43%
pandapower/pypower/printpf.py 100.00%
pandapower/pypower/qps_pips.py 68.29%
pandapower/pypower/qps_pypower.py 76.92%
pandapower/pypower/run_userfcn.py 66.67%
pandapower/pypower/totcost.py 51.72%
pandapower/pypower/update_mupq.py 20.00%
pandapower/pypower/util.py 78.57%
pandapower/results.py 98.58%
pandapower/results_branch.py 95.32%
pandapower/results_bus.py 100.00%
pandapower/results_gen.py 66.18%
pandapower/run.py 92.42%
pandapower/runpm.py 31.82%
pandapower/shortcircuit/__init__.py 100.00%
pandapower/shortcircuit/calc_sc.py 94.74%
pandapower/shortcircuit/currents.py 98.15%
pandapower/shortcircuit/idx_brch.py 100.00%
pandapower/shortcircuit/idx_bus.py 100.00%
pandapower/shortcircuit/impedance.py 85.00%
pandapower/shortcircuit/kappa.py 89.41%
pandapower/shortcircuit/ppc_conversion.py 98.80%
pandapower/shortcircuit/results.py 85.83%
pandapower/shortcircuit/toolbox.py 87.14%
pandapower/std_types.py 85.98%
pandapower/timeseries/__init__.py 100.00%
pandapower/timeseries/data_source.py 76.92%
pandapower/timeseries/data_sources/__init__.py 100.00%
pandapower/timeseries/data_sources/frame_data.py 76.92%
pandapower/timeseries/output_writer.py 84.85%
pandapower/timeseries/read_batch_results.py 88.89%
pandapower/timeseries/run_time_series.py 90.51%
pandapower/timeseries/ts_runpp.py 0.00%
pandapower/toolbox.py 0.25% 87.44%
pandapower/topology/__init__.py 100.00%
pandapower/topology/create_graph.py 93.55%
pandapower/topology/graph_searches.py 98.26%
pandapower/topology/graph_tool_interface.py 5.41%
setup.py 0.00%
Project Totals (168 files) 87.62%
Loading