@@ -142,7 +142,7 @@
Loading
142 142
        converged = False
143 143
        # run_count is 0 before entering the loop. Is incremented in each controller loop
144 144
        run_count = 0
145 -
        while not converged and run_count <= max_iter and net["converged"]:
145 +
        while not converged and run_count <= max_iter and (net["converged"] or net["OPF_converged"]):
146 146
            converged = _control_step(net, run_count, levelorder)
147 147
148 148
            # call to run function (usually runpp) after each controller was called
@@ -151,7 +151,7 @@
Loading
151 151
                run_count += 1
152 152
                _control_repair(net, run_funct, continue_on_lf_divergence, levelorder, errors, **kwargs)
153 153
        # raises controller not converged
154 -
        check_final_convergence(run_count, max_iter, errors, net['converged'])
154 +
        check_final_convergence(run_count, max_iter, errors, (net['converged'] or net["OPF_converged"]))
155 155
156 156
157 157
def _control_step(net, run_count, levelorder):

@@ -260,19 +260,12 @@
Loading
260 260
            branch["rate_b"] = row[RATE_B].real
261 261
            branch["rate_c"] = row[RATE_C].real
262 262
        elif net._options["opf_flow_lim"] == "I":
263 -
            # todo bei ne_branch auch machen
264 263
            f = net._pd2ppc_lookups["branch"]["line"][0]
265 264
            f = int(row[F_BUS].real) # from bus of this line
266 265
            vr = ppci["bus"][f][BASE_KV]
267 -
#            factor = 35 #np.sqrt(1000) #31.9215
268 -
#            row[RATE_A] = row[RATE_A] / (vr * np.sqrt(3)) * factor
269 -
#            row[RATE_B] = row[RATE_B] / (vr * np.sqrt(3)) * factor *10
270 -
#            row[RATE_C] = row[RATE_C] / (vr * np.sqrt(3)) * factor *10
271 -
272 266
            branch["c_rating_a"] = row[RATE_A].real if row[RATE_A] > 0 else row[RATE_B].real
273 267
            branch["c_rating_b"] = row[RATE_B].real
274 268
            branch["c_rating_c"] = row[RATE_C].real
275 -
276 269
        else:
277 270
            logger.error("Branch flow limit %s not understood", net._options["opf_flow_lim"])
278 271
Files Coverage
pandapower 87.52%
Project Totals (161 files) 87.52%
2889.1
TRAVIS_PYTHON_VERSION=3.5
TRAVIS_OS_NAME=linux

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