Private
Public Access
1
0

adding resample function

This commit is contained in:
Sander Roosendaal
2022-02-14 15:53:35 +01:00
parent be83c14a6c
commit f53770fcde
8 changed files with 138 additions and 19 deletions

View File

@@ -285,26 +285,8 @@ def getcp(dfgrouped,logarr):
mask = ww > 2000
ww.loc[mask] = 0
tmax = tt.max()
# if tmax > 3600000:
# newlen = int(tmax/10000.)
# else:
# newlen = len(tt)
# if newlen < len(tt):
# newt = np.arange(newlen)*tmax/float(newlen)
# ww = griddata(tt.values,
# ww.values,
# newt,method='nearest',
# rescale=True)
#
# tt = pd.Series(newt)
# ww = pd.Series(ww)
try:
avgpower[id] = int(ww.mean())
except ValueError: # pragma: no cover