QInfer/python-qinfer

View on GitHub

Showing 73 of 3,465 total issues

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

    def __init__(self, updater, inv_field='x_', t_field='t',
Severity: Major
Found in src/qinfer/expdesign.py - About 50 mins to fix

    Function do_update has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def do_update(model, n_particles, prior, outcomes, expparams, return_all, resampler=None):
    Severity: Major
    Found in src/qinfer/simple_est.py - About 50 mins to fix

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

          def __init__(self, eps=0.5, secondary_resampler=None, min_particles=5, metric='euclidean', weighted=False, w_pow=0.5, quiet=True):
      Severity: Major
      Found in src/qinfer/resamplers.py - About 50 mins to fix

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

            def __init__(
        Severity: Minor
        Found in src/qinfer/derived_models.py - About 45 mins to fix

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

              def __init__(self, simulator,
          Severity: Minor
          Found in src/qinfer/ale.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if name1 == name2:
                                        self._srw_names.append(r"\sigma_{{{}}}".format(name1))
                                    else:
                                        self._srw_names.append(r"\sigma_{{{},{}}}".format(name2,name1))
                    else:
            Severity: Major
            Found in src/qinfer/derived_models.py - About 45 mins to fix

              Function simple_est_rb has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def simple_est_rb(data, interleaved=False, p_min=0.0, p_max=1.0, n_particles=8000, return_all=False):
              Severity: Minor
              Found in src/qinfer/simple_est.py - About 45 mins to fix

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

                    def posterior_marginal(self, idx_param=0, res=100, smoothing=0, range_min=None, range_max=None):
                Severity: Minor
                Found in src/qinfer/smc.py - About 35 mins to fix

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

                      def plot_posterior_contour(self, idx_param1=0, idx_param2=1, res1=100, res2=100, smoothing=0.01):
                  Severity: Minor
                  Found in src/qinfer/smc.py - About 35 mins to fix

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

                        def __init__(self,
                    Severity: Minor
                    Found in src/qinfer/tomography/expdesign.py - About 35 mins to fix

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

                          def posterior_mesh(self, idx_param1=0, idx_param2=1, res1=100, res2=100, smoothing=0.01):
                      Severity: Minor
                      Found in src/qinfer/smc.py - About 35 mins to fix

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

                            def in_credible_region(self, points, level=0.95, modelparam_slice=None, method='hpd-hull', tol=0.0001):
                        Severity: Minor
                        Found in src/qinfer/distributions.py - About 35 mins to fix

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

                          def simple_est_prec(data, freq_min=0.0, freq_max=1.0, n_particles=6000, return_all=False):
                          Severity: Minor
                          Found in src/qinfer/simple_est.py - About 35 mins to fix

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

                                def __call__(self,  model, particle_dist,
                            Severity: Minor
                            Found in src/qinfer/resamplers.py - About 35 mins to fix

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

                                  def __init__(self, data, dims, labels=None, superrep=None, name=None):
                              Severity: Minor
                              Found in src/qinfer/tomography/bases.py - About 35 mins to fix

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

                                def plot_cov_ellipse(cov, pos, nstd=2, ax=None, **kwargs):
                                Severity: Minor
                                Found in src/qinfer/tomography/plotting_tools.py - About 35 mins to fix

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

                                      def __init__(self, weights, dist, dist_args=None, dist_kw_args=None, shuffle=True):
                                  Severity: Minor
                                  Found in src/qinfer/distributions.py - About 35 mins to fix

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

                                        def __call__(self, model, particle_dist,
                                    Severity: Minor
                                    Found in src/qinfer/resamplers.py - About 35 mins to fix

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

                                          def __init__(self, n, alpha=None, beta=None, mean=None, var=None):
                                      Severity: Minor
                                      Found in src/qinfer/distributions.py - About 35 mins to fix

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

                                            def __init__(self,
                                        Severity: Minor
                                        Found in src/qinfer/expdesign.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language