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

@@ -2233,6 +2233,9 @@
Loading
2233 2233
2234 2234
        **add_cols_to_keep** (list, None) - list of column names which should be added to
2235 2235
        'cols_to_keep' to be kept while replacing.
2236 +
2237 +
    OUTPUT:
2238 +
        **new_idx** (list) - list of indices of the new elements
2236 2239
    """
2237 2240
    if old_elm == new_elm:
2238 2241
        logger.warning("'old_elm' and 'new_elm' are both '%s'. No replacement is done." % old_elm)
@@ -2241,6 +2244,8 @@
Loading
2241 2244
        old_indices = net[old_elm].index
2242 2245
    else:
2243 2246
        old_indices = ensure_iterability(old_indices)
2247 +
    if not len(old_indices):
2248 +
        return []
2244 2249
    if new_indices is None:
2245 2250
        new_indices = [None] * len(old_indices)
2246 2251
    elif len(new_indices) != len(old_indices):
Files Coverage
pandapower 87.69%
setup.py 0.00%
Project Totals (168 files) 87.62%

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