pandapower/auxiliary.py

Method could be a function
63
def _build(self, obj, **kwargs):
Consider using enumerate instead of iterating with range and len
330
for k in range(len(bus_in_service)):

pandapower/diagnostic.py

Use of possibly insecure function - consider using safer ast.literal_eval.
102
diag_result = eval(diag_function)
Try, Except, Pass detected.
409
except:

pandapower/estimation/state_estimation.py

Unused _build_measurement_vectors imported from pandapower.estimation.ppc_conversions
15
from pandapower.estimation.ppc_conversions import _add_measurements_to_ppc, \

pandapower/file_io.py

Possible SQL injection vector through string-based query construction.
414
table = pd.read_sql_query("SELECT * FROM %s" % t, con, index_col="index")

pandapower/opf/pips.py

The raise statement is not inside an except clause
604
raise

pandapower/pd2ppc_zero.py

NotImplemented raised - should raise NotImplementedError
79
raise NotImplemented("Three winding transformers are not implemented for unbalanced calculations")

pandapower/pf/bustypes.py

Unused ones imported from numpy
14
from numpy import ones, flatnonzero as find

pandapower/pf/run_bfswpf.py

Unused variable 'path_lens'
116
path_lens, path_preds = csgraph.shortest_path(G_tree, directed=False,

pandapower/plotting/collections.py

No exception type(s) specified
930
except:

pandapower/plotting/generic_geodata.py

Unused variable 'igraph'
103
import igraph

pandapower/plotting/geo.py

Try, Except, Pass detected.
5
except:

pandapower/plotting/plotly/get_colors.py

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
61
assert 0. <= transparence <= 1.0

pandapower/plotting/plotly/traces.py

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
349
assert len(cmap_lines) == len(lines_to_plot), \
Try, Except, Pass detected.
394
except:

pandapower/std_types.py

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
271
assert epsilon >= 0

pandapower/toolbox.py

Try, Except, Pass detected.
1491
except:
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
2124
assert len(p) == len(q)

pandapower/topology/create_graph.py

No exception type(s) specified
204
except: