-
-
Notifications
You must be signed in to change notification settings - Fork 423
Closed
Description
The row limit is ignored at least in the query_region methods, possibly in more (check which methods doesn't use _args_to_payload
, ideally all should use it to avoid bugs like this)
>>> from astroquery.simbad import Simbad
>>> simbad = Simbad()
>>> simbad.ROW_LIMIT = 5
>>> simbad.query_region('M42', get_query_payload=True)
{'script': 'votable {main_id,coordinates}\nvotable open\nquery coo 5:35:17.2992 -5:23:27.996 radius=2.0m frame=ICRS equi=2000.0\nvotable close'}
While it's
>>> simbad.query_bibobj('2005A&A.430.165F', get_query_payload=True)
{'script': 'set limit 5\nvotable {main_id,coordinates}\nvotable open\nquery bibobj 2005A&A.430.165F \nvotable close'}