astropy / astropy/astroquery

MAINT: heasarc deprecation warning and changed API behaviour

Open
#3,241 8 comments 0 reactions 0 assignees View on GitHub
heasarc
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

Hi, in the tests running here: https://github.com/NuSTAR/nustar-clock-utils/actions/runs/13671731675/job/38223241105?pr=121

I'm getting this deprecation warning:
```
WARNING astroquery:logger.py:235 AstropyDeprecationWarning: The query_object function is deprecated and may be removed in a future version.
Use query_region instead.
```
and I was looking for alternatives. However, I can't find a place in the code where the query_object function is deprecated (I see a deprecation of single keywords, not the entire function), and from the PRs I see that there actually is ongoing development on this function (e.g. #3217 ). What am I missing? Thanks

Contributor guide

Open the contributing guide

Research direction

Start with the linked Actions job and the query_object/query_region entry points, then compare the behavior discussed in PR #3217. Trace the warning to its caller and establish whether this repository or astroquery owns the deprecation; done means the affected test path and required compatibility change are identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.