astropy / astropy/astroquery

MAINT: rename query_target methods to query_object be consistent with the rest of the API

Open
#3,217 8 comments 0 reactions 0 assignees View on GitHub
cleanup esa.esa_hubble esa.jwst
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

I've noticed the API inconsistency in `esa.hubble` and `esa.jwst` to use the name `query_target` as opposed to what we do in the rest of the package.

I suppose we could rename (with appropriately long deprecation for the old names) to make the API more consistent.

cc @jespinosaar

Contributor guide

Open the contributing guide

Research direction

Start by locating the query_target methods in esa.hubble and esa.jwst and compare them with the rest of the package's API naming. Confirm the deprecation period and compatibility expectations with maintainers; done means query_object is the consistent public name, old names remain deprecated as agreed, and relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.