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

@@ -30,22 +30,25 @@
Loading
30 30
                else:
31 31
                    controllables = net[element_type].index if element_type == 'gen' else []
32 32
33 -
            missing_col = columns.loc[~columns.isin(net[element_type].columns)].values
34 -
            na_col = [col for col in set(columns)-set(missing_col) if
35 -
                      net[element_type][col].isnull().any()]
36 -
37 33
            # --- logging for missing data in element tables with controllables
38 -
            if len(controllables) and len(missing_col):
39 -
                if element_type != "ext_grid":
40 -
                    logger.error("These columns are missing in " + element_type + ": " +
41 -
                                 str(missing_col))
42 -
                    error = True
43 -
                else:  # "ext_grid" -> no error due to missing columns at ext_grid
44 -
                    logger.debug("These missing columns in ext_grid are considered in OPF as " +
45 -
                                 "+- 1000 TW.: " + str(missing_col))
46 -
            # determine missing values
47 -
            if len(na_col):
48 -
                missing_val.append(element_type)
34 +
            if len(controllables):
35 +
36 +
                missing_col = columns.loc[~columns.isin(net[element_type].columns)].values
37 +
                na_col = [col for col in set(columns)-set(missing_col) if
38 +
                          net[element_type][col].isnull().any()]
39 +
40 +
                if len(missing_col):
41 +
                    if element_type != "ext_grid":
42 +
                        logger.error("These columns are missing in " + element_type + ": " +
43 +
                                     str(missing_col))
44 +
                        error = True
45 +
                    else:  # "ext_grid" -> no error due to missing columns at ext_grid
46 +
                        logger.debug("These missing columns in ext_grid are considered in OPF as " +
47 +
                                     "+- 1000 TW.: " + str(missing_col))
48 +
49 +
                # determine missing values
50 +
                if len(na_col):
51 +
                    missing_val.append(element_type)
49 52
50 53
    if missing_val:
51 54
        logger.info("These elements have missing power constraint values, which are considered " +
Files Coverage
pandapower 87.68%
setup.py 0.00%
Project Totals (168 files) 87.60%

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