pandapower/shortcircuit/calc_sc.py
changed.
Showing 1 of 1 files from the diff.
@@ -30,7 +30,7 @@
Loading
30 | 30 | def calc_sc(net, fault="3ph", case='max', lv_tol_percent=10, topology="auto", ip=False, |
|
31 | 31 | ith=False, tk_s=1., kappa_method="C", r_fault_ohm=0., x_fault_ohm=0., |
|
32 | 32 | branch_results=False, check_connectivity=True, return_all_currents=False, |
|
33 | - | bus=None, inverse_y=True): |
|
33 | + | bus=None, inverse_y=True, suppress_warnings=False): |
|
34 | 34 | """ |
|
35 | 35 | Calculates minimal or maximal symmetrical short-circuit currents. |
|
36 | 36 | The calculation is based on the method of the equivalent voltage source |
@@ -105,7 +105,7 @@
Loading
105 | 105 | raise NotImplementedError( |
|
106 | 106 | "Only 3ph, 2ph and 1ph short-circuit currents implemented") |
|
107 | 107 | ||
108 | - | if len(net.gen) and (ip or ith): |
|
108 | + | if len(net.gen) and (ip or ith) and not suppress_warnings: |
|
109 | 109 | logger.warning("aperiodic and thermal short-circuit currents are only implemented for " |
|
110 | 110 | "faults far from generators!") |
|
111 | 111 |
@@ -116,7 +116,7 @@
Loading
116 | 116 | raise ValueError( |
|
117 | 117 | 'specify network structure as "meshed", "radial" or "auto"') |
|
118 | 118 | ||
119 | - | if branch_results: |
|
119 | + | if branch_results and not suppress_warnings: |
|
120 | 120 | logger.warning("Branch results are in beta mode and might not always be reliable, " |
|
121 | 121 | "especially for transformers") |
|
122 | 122 |
Files | Coverage |
---|---|
pandapower | 87.69% |
setup.py | 0.00% |
Project Totals (162 files) | 87.61% |
726380608
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.