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

Remove photutils from Astroquery astrometry.net #3067

Merged
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
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ New Tools and Services
Service fixes and enhancements
------------------------------

astrometry_net
^^^^^^^^^^^^^^

- Remove photutils from Astroquery astrometry.net [#3067]

alma
^^^^

Expand Down
11 changes: 11 additions & 0 deletions astroquery/astrometry_net/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@


import json
import warnings

from astropy.io import fits
from astropy.stats import sigma_clipped_stats
from astropy.coordinates import SkyCoord
from astropy.utils.decorators import AstropyDeprecationWarning, deprecated_renamed_argument

try:
from astropy.nddata import CCDData
Expand Down Expand Up @@ -331,6 +333,7 @@ def solve_from_source_list(self, x, y, image_width, image_height, *,
verbose=verbose,
return_submission_id=return_submission_id)

@deprecated_renamed_argument(("force_image_upload", "ra_dec_units"), (None, None), since="0.4.8")
def solve_from_image(self, image_file_path, *, force_image_upload=False,
ra_key=None, dec_key=None,
ra_dec_units=None,
Expand Down Expand Up @@ -412,6 +415,14 @@ def solve_from_image(self, image_file_path, *, force_image_upload=False,
cache=False,
files={'file': f})
else:
warning_msg = (
"Removing photutils functionality to obtain extracted positions list from "
"AstrometryNetClass.solve_from_source_list. Users will need to "
"submit pre-extracted catalog positions or a fits file for https://nova.astrometry.net/ "
"to extract with their algorithm."
)

warnings.warn(warning_msg, category=AstropyDeprecationWarning)
# Detect sources and delegate to solve_from_source_list
if _HAVE_CCDDATA:
# CCDData requires a unit, so provide one. It has absolutely
Expand Down
Loading