Skip to content

Commit 95fde6b

Browse files
author
spencer@primus
committed
Patch if extent is none
1 parent 5e229f5 commit 95fde6b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

avapi/visualize/snapshot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,9 @@ def show_lidar_bev_with_boxes(
550550
max_width = max(max_width, max(bev_corners[:, 1]) + 2)
551551

552552
# update extent with new ranges/widths
553-
extent_use[0] = (min(min_range, extent_use[0][0]), max(max_range, extent_use[0][1]))
554-
extent_use[1] = (min(min_width, extent_use[1][0]), max(max_width, extent_use[1][1]))
553+
if extent_use is not None:
554+
extent_use[0] = (min(min_range, extent_use[0][0]), max(max_range, extent_use[0][1]))
555+
extent_use[1] = (min(min_width, extent_use[1][0]), max(max_width, extent_use[1][1]))
555556

556557
# define the size of the image and scaling factor
557558
if background_color == "black":

0 commit comments

Comments
 (0)