Private
Public Access
1
0

incomplete force curve

This commit is contained in:
2024-04-01 17:38:54 +02:00
parent 3792a6f7b6
commit 7937310822
3 changed files with 17 additions and 34 deletions

View File

@@ -553,6 +553,19 @@ def interactive_forcecurve(theworkouts, workstrokesonly=True, plottype='scatter'
if rowdata.empty:
return "", "No Valid Data Available", "", ""
data_dict = rowdata.to_dict("records")
thresholdforce = 100. if 'x' in boattype else 200.
chart_data = {
'title': theworkouts[0].name,
'data': data_dict,
'thresholdforce': thresholdforce,
}
script, div = get_chart("/forcecurve", chart_data)
return script, div
try:
covariancematrix = np.cov(
rowdata['peakforceangle'], y=rowdata['peakforce'])