Showing 184 of 188 total issues
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(
Function desconectar_vars
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def desconectar_vars(símismo, var_fuente, modelo_fuente, modelo_recip=None, var_recip=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, obj, nombre, lugares=None, fechas=None):
Function combin_datos
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def combin_datos(símismo, f_inic, f_final, vars_clima):
Function conectar
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def conectar(símismo, var_mds, var_bf, mds_fuente, conv=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, obj, nombre, lugares=None, fechas=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, variables, lugares=None, fechas=None):
Function conectar_clima
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def conectar_clima(
Function conectar_var_clima
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def conectar_var_clima(símismo, var, var_clima, conv, combin='prom'):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, dic, nombre, lugares=None, fechas=None):
Function gen_res
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def gen_res(símismo, nombre, t, vars_interés):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, obj, nombre, lugares=None, fechas=None):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, nombre, t, vars_interés):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, tmñ_ciclo, variables, nombre='bf'):
Function a_unid_tnmt
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def a_unid_tnmt(unid):
"""
Convierte una unidad de tiempo a una de las reconocidas por Tinamït.
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 obt_atrib_var
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def obt_atrib_var(mod, var, cód_attrib, mns_error=None):
if cód_attrib in [4, 5, 6, 7, 8, 9, 10]:
lista = True
elif cód_attrib in [1, 2, 3, 11, 12, 13, 14]:
lista = False
- 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 estab_valores
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def estab_valores(símismo, valores, escala_valores=None, unidades=None):
"""
Establece los valores para colorar.
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 comp
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def comp(símismo, x):
import pymc3 as pm
comp_1 = símismo.convertir(x.children[0])
comp_2 = símismo.convertir(x.children[2])
- 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 comp
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def comp(símismo, x):
comp_1 = símismo.convertir(x.children[0])
comp_2 = símismo.convertir(x.children[2])
op = símismo.convertir(x.children[1])
- 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 _efec_calib
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def _efec_calib(símismo, líms_paráms, método, n_iter, obs):
temp = tempfile.NamedTemporaryFile('w', encoding='UTF-8', prefix='CalibTinamït_')
mod_spotpy = _ModSpotPy(mod=símismo.mod, líms_paráms=líms_paráms, obs=obs)
- 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"