Showing 188 of 188 total issues
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(
Function _efec_calib
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _efec_calib(símismo, líms_paráms, método, n_iter, obs):
Function _efec_calib
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _efec_calib(símismo, líms_paráms, método, n_iter, obs):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(símismo, archivo, nombre=None, lugares=None, fechas=None, cód_vacío=None):
Function _optimizar
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _optimizar(func, líms_paráms, obs_x, obs_y, inic=None, **ops):
Function __init__
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(símismo, archivo, col_id, escala_colores=None, llenar=True, alpha=1, **argsll):
Avoid deeply nested control flow statements. Open
Open
if últ_niv:
mu_v = final
Function conectar_vars
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def conectar_vars(símismo, var_fuente, var_recip, modelo_fuente=None, modelo_recip=None, conv=None):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(símismo, lat, long, elev=None, fuentes=None, escenario='8.5'):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(símismo, d_vars_pm, obs_x, í_datos, dialecto='tinamït'):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(símismo, ec, nombre=None, otras_ecs=None, nombres_equiv=None, dialecto='tinamït'):
Function detectar_codif
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def detectar_codif(archivo, máx_líneas=None, cortar=None, cert=0.95, auto='utf-8'):
Function __init__
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(símismo, nombre, nivel, cód=None, sub_lugares=None):
Avoid deeply nested control flow statements. Open
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:
Function _calibrar_mod_bayes
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _calibrar_mod_bayes(mod_bayes, paráms, obs=None, vars_compartidos=None, ops=None):
Avoid deeply nested control flow statements. Open
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)
Function __init__
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
Open
def __init__(símismo, ec, nombre=None, otras_ecs=None, nombres_equiv=None, dialecto='tinamït'):
"""
Inicializa un objeto de ecuación.
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
Avoid deeply nested control flow statements. Open
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
Open
def __init__(símismo, ec, paráms, nombre=None, dialecto='tinamït'):
Function interpolar
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def interpolar(símismo, vars_interés, lugares=None, fechas=None, extrap=False):