e2nIEE / pandapower
Showing 1 of 2 files from the diff.

@@ -124,12 +124,12 @@
Loading
124 124
        add_p_constraints(net, "ext_grid", eg_is, ppc, f, t, delta)
125 125
126 126
        if "controllable" in net["ext_grid"]:
127 -
            #     if we do and one of them is false, do this only for the ones, where it is false
127 +
            # if we do and one of them is false, do this only for the ones, where it is false
128 128
            eg_constrained = net.ext_grid[eg_is][~net.ext_grid.controllable]
129 129
            if len(eg_constrained):
130 -
                eg_constrained_bus = eg_constrained.bus
131 -
                ppc["bus"][eg_constrained_bus, VMAX] = net["ext_grid"]["vm_pu"].values[eg_constrained.index] + delta
132 -
                ppc["bus"][eg_constrained_bus, VMIN] = net["ext_grid"]["vm_pu"].values[eg_constrained.index] - delta
130 +
                eg_constrained_bus_ppc = [bus_lookup[egb] for egb in eg_constrained.bus.values]
131 +
                ppc["bus"][eg_constrained_bus_ppc, VMAX] = net["ext_grid"]["vm_pu"].values[eg_constrained.index] + delta
132 +
                ppc["bus"][eg_constrained_bus_ppc, VMIN] = net["ext_grid"]["vm_pu"].values[eg_constrained.index] - delta
133 133
        else:
134 134
            # if we dont:
135 135
            ppc["bus"][eg_buses, VMAX] = net["ext_grid"]["vm_pu"].values[eg_is] + delta
Files Coverage
pandapower 76.71%
setup.py 0.00%
Project Totals (189 files) 76.67%

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