Skip to content

Commit 8ef6c63

Browse files
white-geckoenzet
authored andcommitted
Fix boundaries computing.
Boundaries should not be updated with `None` values.
1 parent bc62002 commit 8ef6c63

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

map_machine/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class MinMax:
1515

1616
def update(self, value: Any) -> None:
1717
"""Update minimum and maximum with new value."""
18+
if value is None:
19+
return
1820
self.min_ = value if not self.min_ or value < self.min_ else self.min_
1921
self.max_ = value if not self.max_ or value > self.max_ else self.max_
2022

0 commit comments

Comments
 (0)