Function graficar
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
def graficar(símismo, directorio='', argsll=None):
if símismo.t is not None:
argsll = argsll or {}
for índs in símismo.iter_índs(símismo.res, excluir=[EJE_TIEMPO, EJE_ESTOC, EJE_PARÁMS]):
título = ', '.join(ll + ' ' + str(v) for ll, v in índs.items())
- 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 poner_valor
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def poner_valor(símismo, val, rel=False):
if isinstance(val, Datos):
if rel:
símismo._datos.loc[val] += val
else:
- 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 _res_temporal
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def _res_temporal(nombre, nombre_sim, obs, vars_interés):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(símismo, sim, coords, vars_interés):
Function procesar_calib
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def procesar_calib(símismo, proc):
l_proc = []
pesos = []
for obs in símismo.obs:
resultados = obs.proc_res(símismo.res)
- 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 guardar
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def guardar(símismo, archivo, formato='netcdf'):
res = símismo.res.copy()
for dim, crds in res.coords.items():
res.coords[dim] = [
- 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 verificar_estado
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def verificar_estado(símismo):
if not símismo.activada:
return
if np.any(~np.isfinite(símismo.datos.matr)):
raise ValueError('{res}: Valor no numérico (p. ej., división por 0)'.format(res=símismo))
- 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"