BlueBrain/BluePyOpt

View on GitHub

Showing 233 of 415 total issues

Function run has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def run(
Severity: Minor
Found in bluepyopt/ephys/protocols.py - About 35 mins to fix

    Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def __init__(
    Severity: Minor
    Found in bluepyopt/ephys/protocols.py - About 35 mins to fix

      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def __init__(self,
      Severity: Minor
      Found in bluepyopt/ephys/stimuli.py - About 35 mins to fix

        Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def __init__(
        Severity: Minor
        Found in bluepyopt/ephys/simulators.py - About 35 mins to fix

          Function create_loadcell_hoc has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def create_loadcell_hoc(
          Severity: Minor
          Found in bluepyopt/neuroml/morphology.py - About 35 mins to fix

            Function create_neuroml_simulation has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def create_neuroml_simulation(
            Severity: Minor
            Found in bluepyopt/neuroml/simulation.py - About 35 mins to fix

              Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def __init__(
              Severity: Minor
              Found in bluepyopt/ephys/locations.py - About 35 mins to fix

                Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def __init__(self, name, value=None, frozen=False,
                Severity: Minor
                Found in bluepyopt/parameters.py - About 35 mins to fix

                  Function define_protocols has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def define_protocols(protocols_filename, stochkv_det=None,
                  Severity: Minor
                  Found in examples/thalamocortical-cell/CellEvalSetup/evaluator.py - About 35 mins to fix

                    Function plot_dt_scan has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def plot_dt_scan(best_ind_dict, good_solutions, dt, sg, stderr):
                    Severity: Minor
                    Found in examples/graupnerbrunelstdp/run_fit.py - About 35 mins to fix

                      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def __init__(self, name, value=None, frozen=False, bounds=None,
                      Severity: Minor
                      Found in bluepyopt/parameters.py - About 35 mins to fix

                        Function create_neuroml_cell has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def create_neuroml_cell(
                        Severity: Minor
                        Found in bluepyopt/neuroml/cell.py - About 35 mins to fix

                          Function record_stats has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          def record_stats(stats, logbook, gen, population, invalid_count):
                          Severity: Minor
                          Found in bluepyopt/deapext/utils.py - About 35 mins to fix

                            Function run has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def run(
                            Severity: Minor
                            Found in bluepyopt/ephys/protocols.py - About 35 mins to fix

                              Function calculate_features has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def calculate_features(
                              Severity: Minor
                              Found in bluepyopt/ephys/extra_features_utils.py - About 35 mins to fix

                                Function create_hoc has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def create_hoc(
                                Severity: Minor
                                Found in bluepyopt/ephys/models.py - About 35 mins to fix

                                  Function create_hoc has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def create_hoc(self, param_values,
                                  Severity: Minor
                                  Found in bluepyopt/ephys/models.py - About 35 mins to fix

                                    Function find_icomp has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        def find_icomp(self, sim, iseclist):
                                            """Find the index of the compartment based on a list of isec
                                               and a distance"""
                                            icomp = None
                                    
                                    
                                    Severity: Minor
                                    Found in bluepyopt/ephys/locations.py - About 35 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Function main has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    def main():
                                        """Main"""
                                        import matplotlib.pyplot as plt
                                    
                                        for deterministic in [True, False]:
                                    Severity: Minor
                                    Found in examples/stochkv/stochkv3cell.py - About 35 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Function main has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    def main():
                                        """Main"""
                                        import matplotlib.pyplot as plt
                                    
                                        for deterministic in [True, False]:
                                    Severity: Minor
                                    Found in examples/stochkv/stochkvcell.py - About 35 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language