Skip to content

Commit 0fc53c4

Browse files
authored
Merge pull request #1432 from danforthcenter/fix-PYL-R1705
fix-PYL-R1705
2 parents 7d46bd3 + b8e6c3e commit 0fc53c4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plantcv/plantcv/classes.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,7 @@ def __next__(self):
406406
if self.n < len(self.contours):
407407
self.n += 1
408408
return Objects(contours=[self.contours[self.n-1]], hierarchy=[self.hierarchy[self.n-1]])
409-
else:
410-
raise StopIteration
409+
raise StopIteration
411410

412411
def append(self, contour, h):
413412
self.contours.append(contour)

plantcv/plantcv/homology/acute.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,4 @@ def acute(img, mask, win, threshold):
197197
_debug(visual=ori_img, filename=f"{params.device}_acute_plms.png")
198198

199199
return homolog_pts, start_pts, stop_pts, ptvals, chain, max_dist
200-
else:
201-
return [], [], [], [], [], []
200+
return [], [], [], [], [], []

0 commit comments

Comments
 (0)