julienmalard/Tinamit

View on GitHub

Showing 184 of 188 total issues

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

def dibujar_mapa(formas, archivo=None, título=None, fig=None, args_color=None):
Severity: Minor
Found in tinamit0/geog/mapa.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if tupla_plantilla[0][0:4] != 'FOR[':
                            await archContenido.write(
                                construir_línea(tupla_plantilla[1], tupla_plantilla[0], dic_paráms, dic_config, paráms_ent)
                            )
                        else:
    Severity: Major
    Found in src/tinamit/envolt/mbf/sahysmod/_arch_ingr/_anlzd_sntct.py - About 45 mins to fix

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

          def simular(símismo, t, vals_geog, vals_const=None, vars_interés=None, paralelo=False):
      Severity: Minor
      Found in tinamit0/calibs/geog_mod.py - About 45 mins to fix

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

            def __init__(símismo, archivo, escala_colores=None, llenar=True, alpha=1, **argsll):
        Severity: Minor
        Found in tinamit0/geog/mapa.py - About 45 mins to fix

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

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

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

                def __init__(símismo, t, extern=None, clima=None, vars_interés=None, nombre='Tinamït'):
            Severity: Minor
            Found in tinamit0/mod/corrida.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  while not _fin_sección(f):
                                      vrs = _extraer_vars(f)
                                      for var, val in vrs:
                                          if var not in dic_datos:
                                              dic_datos[var] = np.full((n_años, n_est, n_polí), np.nan)
              Severity: Major
              Found in src/tinamit/envolt/mbf/sahysmod/_arch_egr.py - About 45 mins to fix

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

                    def __init__(símismo, ec, paráms, nombre=None, dialecto='tinamït'):
                Severity: Minor
                Found in tinamit0/calibs/ec/_opt.py - About 45 mins to fix

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

                      def __init__(símismo, lat, long, elev=None, fuentes=None, escenario='8.5'):
                  Severity: Minor
                  Found in tinamit0/mod/clima.py - About 45 mins to fix

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

                        def __init__(símismo, t, extern=None, clima=None, vars_interés=None, nombre='Tinamït'):
                    Severity: Minor
                    Found in tinamit0/mod/corrida.py - About 45 mins to fix

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

                          def __init__(
                      Severity: Minor
                      Found in src/tinamit/envolt/mds/pysd/vars_.py - About 45 mins to fix

                        Function obt_conf has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def obt_conf(cls, llave, auto=None, cond=None, mnsj_err=None):
                                """
                                Obtiene un valor de configuración de la subclase de modelo.
                                
                                Parameters
                        Severity: Minor
                        Found in tinamit0/mod/modelo.py - About 45 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 __init__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def __init__(símismo, mod, líms_paráms, obs, f_obj='ens'):
                        Severity: Minor
                        Found in tinamit0/calibs/mod.py - About 45 mins to fix

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

                              def __init__(símismo, d_vars_pm, obs_x, í_datos, dialecto='tinamït'):
                          Severity: Minor
                          Found in tinamit0/calibs/sintx/_vstr_transf.py - About 45 mins to fix

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

                                def __init__(símismo, var_fuente, modelo_fuente, var_recip, modelo_recip, conv):
                            Severity: Minor
                            Found in tinamit0/conect/_conex.py - About 45 mins to fix

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

                              def detectar_codif(archivo, máx_líneas=None, cortar=None, cert=0.95, auto='utf-8'):
                              Severity: Minor
                              Found in tinamit0/cositas.py - About 45 mins to fix

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

                                    def __init__(símismo, n_pasos, f_inic=None, tmñ_paso=1, guardar_cada=1):
                                Severity: Minor
                                Found in tinamit0/tiempo/tiempo.py - About 45 mins to fix

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

                                      def __init__(símismo, archivo, col_id=None, escala_colores=None, llenar=True, alpha=1):
                                  Severity: Minor
                                  Found in tinamit0/geog/mapa.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        for i in range(len(dims)):
                                                            try:
                                                                dims[i] = int(dims[i])
                                                            except ValueError:
                                                                dims[i] = int(dic_paráms[dims[i]])
                                    Severity: Major
                                    Found in tinamit0/envolt/bf/sahysmod/_arch_ingr/_anlzd_sntct.py - About 45 mins to fix

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

                                      def escribir_archivo(dic_paráms, nombre_arch_contenido, nombre_arch_plantilla, paráms_ent=None):
                                      Severity: Minor
                                      Found in tinamit0/envolt/bf/sahysmod/_arch_ingr/_anlzd_sntct.py - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language