Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to support photutils >=1.0 #40

Merged
merged 1 commit into from
Feb 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install_requires =
ginga
ipywidgets
bottleneck
photutils <1
photutils
matplotlib
pandas
gatspy
Expand Down
2 changes: 1 addition & 1 deletion stellarphot/photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def photutils_stellar_photometry(ccd_image, sources,

# Extract x,y coordinates from sources table, construct aperture and
# annulus objects from coordinates, and perform aperture photometry
coords = (sources['xcentroid'], sources['ycentroid'])
coords = np.array([sources['xcentroid'], sources['ycentroid']]).T
apertures = CircularAperture(coords, aperture_radius)
annulus = CircularAnnulus(coords, inner_annulus, outer_annulus)
phot_table = aperture_photometry(ccd_image, apertures)
Expand Down