Skip to content

Commit 2f098d3

Browse files
committed
limit probability
1 parent 96bb9d8 commit 2f098d3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tom_dataservices/data_services/alerce.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ def add_classifiers_fields(self) -> list[tuple[str, str]]:
7070
self.fields[prob_field_name] = forms.FloatField(
7171
label=f"{c['classifier_name']} Probability",
7272
required=False,
73+
max_value=1,
74+
min_value=0,
75+
help_text="Value between 0 and 1"
7376
)
7477
field_names.append((field_name, prob_field_name))
7578

0 commit comments

Comments
 (0)