astropy / astropy/astroquery

list_collections() output doesn't update when sia_url (or ssa_url) is changed

Open
#3,479 3 comments 0 reactions 0 assignees View on GitHub
Documentation ipac.irsa
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

```python
from astroquery.ipac.irsa import Irsa
Irsa.sia_url = "https://irsadev.ipac.caltech.edu/simulated/SIA"
Irsa.list_collections(servicetype="SIA")
```
outputs a table with 111 rows from the default SIA endpoint ("https://irsadev.ipac.caltech.edu/SIA") instead of 4 rows present at the simulated endpoint. This is problematic because `Irsa.query_sia()` is correctly talking to the updated `sia_url` so I was expecting `list_collections()` to behave similarly to tell me which collection id/name I can use.

This probably is a duplicate since we talked about it at some point. If so, feel free to close it and cross-link existing issue.

Contributor guide

Open the contributing guide

Research direction

Start by tracing Irsa.list_collections and compare how it selects the endpoint with Irsa.query_sia, using the example in the issue against the default and simulated SIA URLs. Done means changing sia_url or ssa_url makes list_collections query that endpoint and report its collections, including the four rows at the simulated endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.