From b73fd2d84ede161fd03a528292859a8a607c5462 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Fri, 30 Dec 2022 11:45:52 -0500 Subject: [PATCH] send points as array instead of as tuple --- src/stcal/jump/jump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stcal/jump/jump.py b/src/stcal/jump/jump.py index d2627e569..2af929c2c 100644 --- a/src/stcal/jump/jump.py +++ b/src/stcal/jump/jump.py @@ -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