Skip to content

ROW_LIMIT is ignored in Simbad.query_region* #2198

@bsipocz

Description

@bsipocz

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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions