Closed rfinn closed 6 years ago
I tried this code on my laptop and on coma, and it runs fast:
from photutils import EllipticalAperture positions = [(30., 30.), (40., 40.)] a = 5. b = 3. theta = np.pi/4 apertures2 = EllipticalAperture(positions, a,b,theta) apertures2 history
so not sure why this is slow in uat_measure_ellip_phot
Ran through on my laptop and timed it. It takes about 13.1 s to compute photometry in 20 apertures. Definitely slow, but there is not currently a way to make multiple elliptical apertures at the same time because the a, b, and theta variables can't be arrays. You can make multiple apertures with the same size and shape, but at different positions. You can't make multiple apertures at the same position but with different sizes and shapes.. :(
figure out why ap = EllipticalAperture(position,a[i],b[i],theta) takes so long to run.