fix
This commit is contained in:
@@ -1311,7 +1311,6 @@ def instroke_interactive_chart(df,metric, workout, spm_min, spm_max,
|
|||||||
if df.empty:
|
if df.empty:
|
||||||
return "", "No data in selection"
|
return "", "No data in selection"
|
||||||
|
|
||||||
|
|
||||||
df_pos = (df+abs(df))/2.
|
df_pos = (df+abs(df))/2.
|
||||||
df_min = -(-df+abs(-df))/2.
|
df_min = -(-df+abs(-df))/2.
|
||||||
|
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -3088,6 +3088,8 @@ def instroke_chart_interactive(request, id=0, analysis=0, userid=0):
|
|||||||
factor=factor,
|
factor=factor,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
data = data.fillna(method='ffill').fillna(method='bfill')
|
||||||
|
|
||||||
|
|
||||||
if metric == 'boat accelerator curve' and data.median().max() < 0.5:
|
if metric == 'boat accelerator curve' and data.median().max() < 0.5:
|
||||||
data = 9.81*data
|
data = 9.81*data
|
||||||
|
|||||||
Reference in New Issue
Block a user