Skip to content

Commit

Permalink
send points as array instead of as tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Dec 30, 2022
1 parent fd4b0f8 commit b73fd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stcal/jump/jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def find_circles(dqplane, bitmask, min_area):
elif ELLIPSE_PACKAGE == 'scikit-image':
contours = [shapely.geometry.Polygon(con) for con in skimage.measure.find_contours(pixels)]
bigcontours = [con for con in contours if con.area > min_area]
circles = [Circle.from_points(con.exterior.xy) for con in bigcontours]
circles = [Circle.from_points(numpy.stack(con.exterior.xy, axis=1)) for con in bigcontours]
else:
raise ModuleNotFoundError(ELLIPSE_PACKAGE_WARNING)
return circles
Expand Down

0 comments on commit b73fd2d

Please sign in to comment.