bug fix
This commit is contained in:
@@ -2938,7 +2938,7 @@ def otwrankings_view(request,theuser=0,
|
|||||||
indexmax = w_roll.idxmax(axis=1)
|
indexmax = w_roll.idxmax(axis=1)
|
||||||
try:
|
try:
|
||||||
t_0 = tt.ix[indexmax]
|
t_0 = tt.ix[indexmax]
|
||||||
t_1 = tt.ix[indexmax-i-2]
|
t_1 = tt.ix[indexmax-i]
|
||||||
deltat = 1.0e-3*(t_0-t_1)
|
deltat = 1.0e-3*(t_0-t_1)
|
||||||
wmax = w_roll.ix[indexmax]
|
wmax = w_roll.ix[indexmax]
|
||||||
if not np.isnan(deltat) and not np.isnan(wmax):
|
if not np.isnan(deltat) and not np.isnan(wmax):
|
||||||
@@ -2951,6 +2951,7 @@ def otwrankings_view(request,theuser=0,
|
|||||||
dt = pd.Series(dt)
|
dt = pd.Series(dt)
|
||||||
cpw = pd.Series(cpw)
|
cpw = pd.Series(cpw)
|
||||||
|
|
||||||
|
|
||||||
cpvalues = griddata(dt.values,
|
cpvalues = griddata(dt.values,
|
||||||
cpw.values,
|
cpw.values,
|
||||||
logarr,method='linear',
|
logarr,method='linear',
|
||||||
|
|||||||
Reference in New Issue
Block a user