RegistryResults¶
-
class
pyvo.registry.vao.
RegistryResults
(votable, url=None, version='1.0')[source]¶ Bases:
pyvo.dal.query.DALResults
Deprecated since version 0.5: The RegistryResults class is deprecated and may be removed in a future version.
an iterable set of results from a registry query. Each record is returned as SimpleResource instance
Deprecated since version 0.5: The RegistryResults class is deprecated and may be removed in a future version.
initialize the results. This constructor is not typically called by directly applications; rather an instance is obtained from calling a SIAQuery’s execute().
Attributes Summary
size
the number of records returned in this result (read-only) Methods Summary
getrecord
(index)return all the attributes of a resource record with the given index getvalue
(name, index)return the value of a record attribute–a value from a column and row. Attributes Documentation
-
size
¶ the number of records returned in this result (read-only)
Methods Documentation
-
getrecord
(index)[source]¶ return all the attributes of a resource record with the given index as SimpleResource instance (a dictionary-like object).
Parameters: index : int
the zero-based index of the record
-
getvalue
(name, index)[source]¶ return the value of a record attribute–a value from a column and row.
This implementation is aware of how lists of strings are encoded and will return a python list of strings accordingly.
Parameters: name : str
the name of the attribute (column)
index : int
the zero-based index of the record
Raises: IndexError
if index is negative or equal or larger than the number of rows in the result table.
KeyError
if name is not a recognized column name
-