Sbozzolo / kuibit

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
2 occurrences in this check
preprocess_plot_grid has a cyclomatic complexity of 20 with "high" risk
 171    return inner
 172
 173
 174def preprocess_plot_grid(func): 175    """Decorator to set-up plot functions that plot grid data.
 176
 177    This decorator extends :py:func:`~.preprocess_plot` for specific functions.
AllGridFunctions.__init__ has a cyclomatic complexity of 17 with "high" risk
1561    # The oddball case is with OpenPMD files. OpenPMD files are actually folders
1562    # with extension .bp4 and they are always 3D.
1563
1564    def __init__(self, allfiles, dimension, num_ghost=None):1565        """Constructor.
1566
1567        :param allfiles: List of all the files.