quiske fixes
This commit is contained in:
@@ -3383,6 +3383,22 @@ def instroke_chart_interactive(request, id=0, analysis=0, userid=0):
|
||||
activeminutesmax=activeminutesmax,
|
||||
)
|
||||
|
||||
|
||||
if metric == 'boat accelerator curve' and data.median().max() < 0.5:
|
||||
data = 9.81*data
|
||||
|
||||
if metric == 'instroke boat speed' and data.median().max() < 0.15:
|
||||
rowdata.add_instroke_speed()
|
||||
rowdata.write_csv(w.csvfilename, gzip=True)
|
||||
data = rowdata.get_instroke_data(
|
||||
metric,
|
||||
spm_min=spm_min,
|
||||
spm_max=spm_max,
|
||||
activeminutesmin=activeminutesmin,
|
||||
activeminutesmax=activeminutesmax,
|
||||
)
|
||||
|
||||
|
||||
script, div = instroke_interactive_chart(
|
||||
data, metric, w,
|
||||
spm_min,
|
||||
|
||||
Reference in New Issue
Block a user