astropy / astropy/astroquery

Emit warnings when row limits are reached

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

Description

For instance, the following should emit a warning:

``` python
from astropy.io import fits
table = Irsa.query_region("m42", catalog="fp_psc", spatial="Cone",
radius=10 * u.arcmin)
```

I spent a while figuring out why a patch of sky was missing, and then realized the row limit was quite low (500)

cc @Cadair

Contributor guide

Open the contributing guide

Research direction

Start with the Irsa.query_region example and trace where its row limit is configured and where the returned row count is handled. The issue names no files or tests, so locate the relevant query implementation and existing warning tests first. Done means a query reaching its configured row limit emits a warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.