slightly working prototype
only boxplot implemented, doesn't change y param
This commit is contained in:
@@ -721,6 +721,17 @@ class HistoForm(forms.Form):
|
||||
histoparam = forms.ChoiceField(choices=parchoices,initial='power',
|
||||
label='Metric')
|
||||
|
||||
class AnalysisOptionsForm(forms.Form):
|
||||
modality = forms.ChoiceField(choices=workouttypes,
|
||||
label='Workout Type',
|
||||
initial='all')
|
||||
waterboattype = forms.MultipleChoiceField(choices=boattypes,
|
||||
label='Water Boat Type',
|
||||
initial = mytypes.waterboattype)
|
||||
rankingonly = forms.BooleanField(initial=False,
|
||||
label='Only Ranking Pieces',
|
||||
required=False)
|
||||
|
||||
|
||||
# form to select modality and boat type for trend flex
|
||||
class TrendFlexModalForm(forms.Form):
|
||||
@@ -809,7 +820,30 @@ class PlannedSessionMultipleCloneForm(forms.Form):
|
||||
label='Planned Sessions'
|
||||
)
|
||||
|
||||
analysischoices = (
|
||||
('boxplot','Box Chart'),
|
||||
('trendflex','Trend Flex'),
|
||||
)
|
||||
|
||||
class AnalysisChoiceForm(forms.Form):
|
||||
function = forms.ChoiceField(choices=analysischoices,initial='boxplot',
|
||||
label='Analysis')
|
||||
yparam = forms.ChoiceField(choices=parchoices,initial='spm',
|
||||
label='Metric')
|
||||
spmmin = forms.FloatField(initial=15,
|
||||
required=False,label = 'Min SPM')
|
||||
spmmax = forms.FloatField(initial=55,
|
||||
required=False,label = 'Max SPM')
|
||||
workmin = forms.FloatField(initial=0,
|
||||
required=False,label = 'Min Work per Stroke')
|
||||
workmax = forms.FloatField(initial=1500,
|
||||
required=False,label = 'Max Work per Stroke')
|
||||
|
||||
includereststrokes = forms.BooleanField(initial=False,
|
||||
required=False,
|
||||
label='Include Rest Strokes')
|
||||
|
||||
|
||||
class BoxPlotChoiceForm(forms.Form):
|
||||
yparam = forms.ChoiceField(choices=parchoices,initial='spm',
|
||||
label='Metric')
|
||||
|
||||
Reference in New Issue
Block a user