Skip to content

Commit

Permalink
No mucho
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Mar 13, 2020
1 parent f24dae2 commit 6a31591
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tinamit/datos/bd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class BD(object):
"""
Una base de datos combina varias :class:`~tinamit.datos.fuente.Fuente`.
"""

def __init__(símismo, fuentes):
"""
Expand Down Expand Up @@ -127,7 +128,7 @@ def _gen_fuente(fnt, nombre=None, lugares=None, fechas=None):


def _interpolar_xr(m, fechas=None):
if fechas is not None:
if fechas is not None:
raise ValueError
return m.unstack().interpolate().stack()
if m.sizes[_('fecha')] > 1:
Expand Down
4 changes: 2 additions & 2 deletions tinamit/mod/modelo.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ def conectar_var_clima(símismo, var, var_clima, conv, combin='prom'):
"""

combins = {
'prom': np.mean,
'suma': np.sum
'prom': np.nanmean,
'suma': np.nansum
}
if isinstance(combin, str):
combin = combins[combin.lower()]
Expand Down

0 comments on commit 6a31591

Please sign in to comment.