Skip to content

Commit 605f746

Browse files
committed
fix: update inclusive bound checks to allow None values in FunctionalClassificationBase
1 parent 9dafe45 commit 605f746

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mavedb/view_models/score_calibration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ def class_and_range_mutually_exclusive(
129129
def inclusive_bounds_require_range(self: "FunctionalClassificationBase") -> "FunctionalClassificationBase":
130130
"""Inclusive bounds may only be set if a range is provided. If they are unset, default them."""
131131
if self.class_ is not None:
132-
if self.inclusive_lower_bound:
132+
if self.inclusive_lower_bound is not None:
133133
raise ValidationError(
134134
"An inclusive lower bound may not be set on a class based functional classification."
135135
)
136-
if self.inclusive_upper_bound:
136+
if self.inclusive_upper_bound is not None:
137137
raise ValidationError(
138138
"An inclusive upper bound may not be set on a class based functional classification."
139139
)

0 commit comments

Comments
 (0)