Created
August 12, 2013 19:09
-
-
Save cdeil/6214057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [18]: Vizier.ROW_LIMIT = 42 | |
In [19]: result = v.query_object("HD 226868", catalog=["NOMAD", "UCAC"]) | |
ERROR: TypeError: 'int' object is not callable [astroquery.vizier.core] | |
--------------------------------------------------------------------------- | |
TypeError Traceback (most recent call last) | |
<ipython-input-19-60973360e180> in <module>() | |
----> 1 result = v.query_object("HD 226868", catalog=["NOMAD", "UCAC"]) | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev982-py2.7.egg/astroquery/utils/class_or_instance.pyc in <lambda>(*args, **kwds) | |
19 def __get__(self, obj, cls): | |
20 if obj is not None: | |
---> 21 f = lambda *args, **kwds: self.fn(obj, *args, **kwds) | |
22 else: | |
23 f = lambda *args, **kwds: self.fn(cls, *args, **kwds) | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev982-py2.7.egg/astroquery/vizier/core.pyc in query_object(self, object_name, catalog, verbose) | |
226 The results in a list of `astropy.table.Table`. | |
227 """ | |
--> 228 response = self.query_object_async(object_name, catalog=catalog) | |
229 result = self._parse_result(response, verbose=verbose) | |
230 return result | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev982-py2.7.egg/astroquery/utils/class_or_instance.pyc in <lambda>(*args, **kwds) | |
19 def __get__(self, obj, cls): | |
20 if obj is not None: | |
---> 21 f = lambda *args, **kwds: self.fn(obj, *args, **kwds) | |
22 else: | |
23 f = lambda *args, **kwds: self.fn(cls, *args, **kwds) | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev982-py2.7.egg/astroquery/vizier/core.pyc in query_object_async(self, object_name, catalog) | |
253 object_name, | |
254 catalog=catalog, | |
--> 255 caller='query_object_async') | |
256 response = commons.send_request( | |
257 self._server_to_url(), | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev982-py2.7.egg/astroquery/utils/class_or_instance.pyc in <lambda>(*args, **kwds) | |
19 def __get__(self, obj, cls): | |
20 if obj is not None: | |
---> 21 f = lambda *args, **kwds: self.fn(obj, *args, **kwds) | |
22 else: | |
23 f = lambda *args, **kwds: self.fn(cls, *args, **kwds) | |
/Users/deil/Library/Python/2.7/lib/python/site-packages/astroquery-0.0.dev982-py2.7.egg/astroquery/vizier/core.pyc in _args_to_payload(self, *args, **kwargs) | |
487 body["-out"] = "*" | |
488 # set the maximum rows returned | |
--> 489 body["-out.max"] = Vizier.ROW_LIMIT() | |
490 script = "\n".join(["{key}={val}".format(key=key, val=val) | |
491 for key, val in body.items()]) | |
TypeError: 'int' object is not callable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment