pep8, print -> logger
Showing 1 of 5 files from the diff.
Newly tracked file
pandapower/timeseries/run_time_series.py
changed.
Other files ignored by Codecov
pandapower/test/opf/test_pp_vs_pm.py
has changed.
pandapower/test/loadflow/test_dist_slack.py
has changed.
pandapower/test/api/test_toolbox.py
has changed.
pandapower/test/opf/test_pandamodels_converter.py
has changed.
@@ -52,19 +52,20 @@
Loading
52 | 52 | output_writer.init_all(net) |
|
53 | 53 | ||
54 | 54 | ||
55 | - | def print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='█'): |
|
56 | - | """ |
|
57 | - | Call in a loop to create terminal progress bar. |
|
58 | - | the code is mentioned in : https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console |
|
59 | - | """ |
|
60 | - | percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total))) |
|
61 | - | filled_length = int(length * iteration // total) |
|
62 | - | bar = fill * filled_length + '-' * (length - filled_length) |
|
63 | - | # logger.info('\r%s |%s| %s%% %s' % (prefix, bar, percent, suffix)) |
|
64 | - | print('\r%s |%s| %s%% %s' % (prefix, bar, percent, suffix), end="") |
|
65 | - | # Print New Line on Complete |
|
66 | - | if iteration == total: |
|
67 | - | print("\n") |
|
55 | + | # |
|
56 | + | # def print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='█'): |
|
57 | + | # """ |
|
58 | + | # Call in a loop to create terminal progress bar. |
|
59 | + | # the code is mentioned in : https://stackoverflow.com/questions/3173320/text-progress-bar-in-the-console |
|
60 | + | # """ |
|
61 | + | # percent = ("{0:." + str(decimals) + "f}").format(100 * (iteration / float(total))) |
|
62 | + | # filled_length = int(length * iteration // total) |
|
63 | + | # bar = fill * filled_length + '-' * (length - filled_length) |
|
64 | + | # # logger.info('\r%s |%s| %s%% %s' % (prefix, bar, percent, suffix)) |
|
65 | + | # print('\r%s |%s| %s%% %s' % (prefix, bar, percent, suffix), end="") |
|
66 | + | # # Print New Line on Complete |
|
67 | + | # if iteration == total: |
|
68 | + | # print("\n") |
|
68 | 69 | ||
69 | 70 | ||
70 | 71 | def controller_not_converged(time_step, ts_variables): |
@@ -84,6 +85,7 @@
Loading
84 | 85 | for ctrl, net in levelorder: |
|
85 | 86 | ctrl.time_step(net, time_step) |
|
86 | 87 | ||
88 | + | ||
87 | 89 | def finalize_step(controller_order, time_step): |
|
88 | 90 | for levelorder in controller_order: |
|
89 | 91 | for ctrl, net in levelorder: |
Files | Coverage |
---|---|
pandapower | 76.71% |
setup.py | 0.00% |
Project Totals (189 files) | 76.67% |
3144469779
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.