Skip to content

Commit acc1e19

Browse files
committed
pylint works woo!!
1 parent d968b39 commit acc1e19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/bootcamp/detect_landing_pad.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def create(cls, model_directory: pathlib.Path) -> "tuple[bool, DetectLandingPad
6363
try:
6464
model = ultralytics.YOLO(str(model_path))
6565
# Library can throw any exception
66+
# pylint: disable-next=broad-exception-caught
6667
except Exception:
6768
return False, None
6869

@@ -108,7 +109,7 @@ def run(self, image: np.ndarray) -> "tuple[list[bounding_box.BoundingBox], np.nd
108109

109110
# Get the xyxy boxes list from the Boxes object in the Result object
110111
boxes_xyxy = prediction.boxes.xyxy
111-
112+
112113
# Detach the xyxy boxes to make a copy,
113114
# move the copy into CPU space,
114115
# and convert to a numpy array
@@ -124,8 +125,7 @@ def run(self, image: np.ndarray) -> "tuple[list[bounding_box.BoundingBox], np.nd
124125

125126
for i in range(0, boxes_cpu.shape[0]):
126127
result, box = bounding_box.BoundingBox.create(boxes_cpu[i])
127-
128-
if result:
128+
if result:
129129
bounding_boxes.append(box)
130130

131131
return bounding_boxes, image_annotated

0 commit comments

Comments
 (0)