force curve comparison
This commit is contained in:
@@ -10,7 +10,7 @@ from django.contrib.admin.widgets import FilteredSelectMultiple
|
||||
from rowers.models import (
|
||||
Workout, Rower, Team, PlannedSession, GeoCourse,
|
||||
VirtualRace, VirtualRaceResult, IndoorVirtualRaceResult,
|
||||
PaidPlan, InStrokeAnalysis
|
||||
PaidPlan, InStrokeAnalysis, ForceCurveAnalysis
|
||||
)
|
||||
from rowers.rows import validate_file_extension, must_be_csv, validate_image_extension, validate_kml
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
@@ -1256,6 +1256,12 @@ class InStrokeMultipleCompareForm(forms.Form):
|
||||
widget=forms.CheckboxSelectMultiple()
|
||||
)
|
||||
|
||||
class ForceCurveMultipleCompareForm(forms.Form):
|
||||
analyses = forms.ModelMultipleChoiceField(
|
||||
queryset=ForceCurveAnalysis.objects.all(),
|
||||
widget=forms.CheckboxSelectMultiple()
|
||||
)
|
||||
|
||||
|
||||
class WorkoutMultipleCompareForm(forms.Form):
|
||||
workouts = forms.ModelMultipleChoiceField(
|
||||
@@ -1829,6 +1835,16 @@ class FlexOptionsForm(forms.Form):
|
||||
class ForceCurveOptionsForm(forms.Form):
|
||||
includereststrokes = forms.BooleanField(initial=False, required=False,
|
||||
label='Include Rest Strokes')
|
||||
|
||||
spm_min = forms.FloatField(initial=15.0,label='SPM Min',widget=HiddenInput,required=False)
|
||||
spm_max = forms.FloatField(initial=55.0,label='SPM Max',widget=HiddenInput,required=False)
|
||||
dist_min = forms.IntegerField(initial=0,label='Dist Min',widget=HiddenInput,required=False)
|
||||
dist_max = forms.IntegerField(initial=0,label='Dist Max',widget=HiddenInput,required=False)
|
||||
work_min = forms.IntegerField(initial=0,label='Work Min',widget=HiddenInput,required=False)
|
||||
work_max = forms.IntegerField(initial=1500,label='Work Max',widget=HiddenInput,required=False)
|
||||
|
||||
notes = forms.CharField(initial="", label='notes', widget=HiddenInput, required=False)
|
||||
|
||||
plotchoices = (
|
||||
('line', 'Force Curve Collection Plot'),
|
||||
('scatter', 'Peak Force Scatter Plot'),
|
||||
@@ -1837,6 +1853,8 @@ class ForceCurveOptionsForm(forms.Form):
|
||||
plottype = forms.ChoiceField(choices=plotchoices, initial='line',
|
||||
label='Individual Stroke Chart Type')
|
||||
|
||||
name = forms.CharField(initial="", label='Name',required=False)
|
||||
|
||||
|
||||
axchoices = list(
|
||||
(ax[0], ax[1]) for ax in axes if ax[0] not in ['cumdist', 'None']
|
||||
|
||||
Reference in New Issue
Block a user