viroconwebcontour.forms module¶
Forms to handle user input.
-
class
contour.forms.
HDCForm
(var_names, *args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
Form for the settings to calculate a highest density contour (HDC).
-
base_fields
= {'n_years': <django.forms.fields.DecimalField object at 0x2b9402f25cc0>, 'sea_state': <django.forms.fields.DecimalField object at 0x2b9402f257b8>}¶
-
declared_fields
= {'n_years': <django.forms.fields.DecimalField object at 0x2b9402f25cc0>, 'sea_state': <django.forms.fields.DecimalField object at 0x2b9402f257b8>}¶
-
media
¶
-
method
= 'HDC'¶
-
-
class
contour.forms.
IFormForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
Form for the input to calculate an IFORM contour.
-
base_fields
= {'n_steps': <django.forms.fields.IntegerField object at 0x2b9402f25048>, 'return_period': <django.forms.fields.DecimalField object at 0x2b9402f25a20>, 'sea_state': <django.forms.fields.DecimalField object at 0x2b9402f259e8>}¶
-
declared_fields
= {'n_steps': <django.forms.fields.IntegerField object at 0x2b9402f25048>, 'return_period': <django.forms.fields.DecimalField object at 0x2b9402f25a20>, 'sea_state': <django.forms.fields.DecimalField object at 0x2b9402f259e8>}¶
-
media
¶
-
method
= 'IFORM'¶
-
-
class
contour.forms.
MeasureFileFitForm
(variable_names, variable_count=2, *args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
Form for defining a fit, which should be applied to a measurement file.
-
DISTRIBUTIONS
= (('Weibull', 'Weibull'), ('Normal', 'Normal'), ('Lognormal_SigmaMu', 'Log-Normal'))¶
-
base_fields
= {'title': <django.forms.fields.CharField object at 0x2b9402e97fd0>}¶
-
declared_fields
= {'title': <django.forms.fields.CharField object at 0x2b9402e97fd0>}¶
-
media
¶
-
-
class
contour.forms.
MeasureFileForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
Form for uploading a measurement file.
-
base_fields
= {'measure_file': <django.forms.fields.FileField object at 0x2b9402e976d8>, 'title': <django.forms.fields.CharField object at 0x2b9402e99a20>}¶
-
declared_fields
= {'measure_file': <django.forms.fields.FileField object at 0x2b9402e976d8>, 'title': <django.forms.fields.CharField object at 0x2b9402e99a20>}¶
-
media
¶
-
-
class
contour.forms.
SecUserForm
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None)[source]¶ Bases:
django.forms.models.ModelForm
-
class
Meta
[source]¶ Bases:
object
-
fields
= ('secondary_user',)¶
-
model
¶ alias of
contour.models.MeasureFileModel
-
-
base_fields
= {'secondary_user': <django.forms.models.ModelMultipleChoiceField object at 0x2b9402e995c0>}¶
-
declared_fields
= {}¶
-
media
¶
-
class
-
class
contour.forms.
VariableNumber
(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶ Bases:
django.forms.forms.Form
Form for specifying the numbers of variables a probabilistic model should have.
-
base_fields
= {'variable_number': <django.forms.fields.IntegerField object at 0x2b9402e979e8>}¶
-
declared_fields
= {'variable_number': <django.forms.fields.IntegerField object at 0x2b9402e979e8>}¶
-
media
¶
-
-
class
contour.forms.
VariablesForm
(variable_count=2, *args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
Form for the direct input of a probabilistic model.
-
DISTRIBUTIONS
= (('Normal', 'Normal'), ('Weibull', 'Weibull'), ('Lognormal_SigmaMu', 'Log-normal'))¶
-
base_fields
= {'collection_name': <django.forms.fields.CharField object at 0x2b9402e97d68>}¶
-
declared_fields
= {'collection_name': <django.forms.fields.CharField object at 0x2b9402e97d68>}¶
-
media
¶
-