e2nIEE / pandapower
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)
Files Coverage
pandapower 87.70%
setup.py 0.00%
Project Totals (168 files) 87.62%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading