Skip to content

Commit

Permalink
Merge pull request #571 from bioimage-io/fix_data_dep_size
Browse files Browse the repository at this point in the history
fix DataDependentSize
  • Loading branch information
FynnBe authored Mar 19, 2024
2 parents 603ec7d + ff7d61d commit 9aeacb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bioimageio/spec/model/v0_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ class DataDependentSize(Node):

@model_validator(mode="after")
def _validate_max_gt_min(self):
if self.max is None or self.min >= self.max:
raise ValueError(f"expected `min` <= `max`, but got {self.min}, {self.max}")
if self.max is not None and self.min >= self.max:
raise ValueError(f"expected `min` < `max`, but got {self.min}, {self.max}")

return self

Expand Down

0 comments on commit 9aeacb5

Please sign in to comment.