Showing 188 of 188 total issues
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):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, mod, líms_paráms, obs, f_obj='ens'):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, var_fuente, modelo_fuente, var_recip, modelo_recip, conv):
Function simular
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def simular(símismo, t, nombre='Tinamït', extern=None, clima=None, vars_interés=None):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, archivo, escala_colores=None, llenar=True, alpha=1, **argsll):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Avoid deeply nested control flow statements. Open
if template_tuple[0][0:4] != 'FOR[':
línea_contenido = await archContenido.readline().strip('\n')
anal_línea(línea_contenido, template_tuple[1], template_tuple[0], dic_paráms)
else:
dims = [i.strip(']') for i in template_tuple[0].split('[')][1:]
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'):
Avoid deeply nested control flow statements. Open
if últ_niv:
mu_v = final
else:
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, t, modelos, vars_interés):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
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):
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'):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, ec, paráms, nombre=None, dialecto='tinamït'):
Function _interpolar_xr
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def _interpolar_xr(m, fechas=None):
if fechas is not None:
raise ValueError
interpolado = m.unstack().interpolate(limit_area='inside').stack()
if len(interpolado.dropna()):
- Read upRead up
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
Avoid deeply nested control flow statements. Open
if líms[0] is None:
final = pm.Deterministic(nmbr_mu, líms[1] - pm.math.exp(mu_v))
elif líms[1] is None:
final = pm.Deterministic(nmbr_mu, líms[0] + pm.math.exp(mu_v))
else:
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):
Function gen_valores
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def gen_valores(símismo, modelo):
var = modelo.variables[símismo.var]
if var.líms[0] > símismo.valor or var.líms[1] < símismo.valor:
raise ValueError
if símismo.por is None:
- Read upRead up
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 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
- Read upRead up
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, n_pasos, f_inic=None, tmñ_paso=1, guardar_cada=1):