diff --git a/CHANGES.rst b/CHANGES.rst index 011166997..0a06496bd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,9 @@ - Adding python version to User-Agent. [#452] +- Output of ``repr`` for DALResults instance now clearly shows it is a + DALResultsTable and not a generic astropy Table. [#478] + 1.4.3 (unreleased) ================== diff --git a/docs/dal/index.rst b/docs/dal/index.rst index d13fdb166..b40c66d4a 100644 --- a/docs/dal/index.rst +++ b/docs/dal/index.rst @@ -160,7 +160,7 @@ mean G-band magnitude between 19 - 20: ... """ >>> result = tap_service.search(ex_query) >>> print(result) - + source_id ra dec phot_g_mean_mag deg deg mag int64 float64 float64 float32 diff --git a/docs/index.rst b/docs/index.rst index 7611c9ec2..7aafd6a5b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -77,7 +77,7 @@ specific to the service type. In this example, a database query is enough: >>> resultset = service.search("SELECT TOP 1 * FROM ivoa.obscore") >>> resultset -
+ dataproduct_type dataproduct_subtype ... source_table ... object object ... object diff --git a/docs/registry/index.rst b/docs/registry/index.rst index 4d21dcc6d..d6adae13b 100644 --- a/docs/registry/index.rst +++ b/docs/registry/index.rst @@ -171,10 +171,10 @@ thus say: .. doctest-remote-data:: - >>> resources["II/283"].get_service("conesearch").search(pos=(120, 73), sr=1) # doctest: +IGNORE_OUTPUT -
+ >>> resources["II/283"].get_service("conesearch").search(pos=(120, 73), sr=1) + _RAJ2000 _DEJ2000 _r recno ... NED RAJ2000 DEJ2000 - deg deg deg ... "h:m:s" "d:m:s" + deg deg ... float64 float64 float64 int32 ... str3 str12 str12 ------------ ------------ -------- ----- ... ---- ------------ ------------ 117.98645833 73.00961111 0.588592 986 ... NED 07 51 56.750 +73 00 34.60 @@ -199,7 +199,7 @@ To run a TAP query based on this metadata, do something like: >>> resources["II/283"].get_service("tap#aux").run_sync( ... 'SELECT sn, z FROM "J/A+A/437/789/table2" WHERE z>0.04') -
+ SN z object float64 ------ ------- @@ -405,7 +405,7 @@ there is no telling what kind of service you will get back. >>> nvss = colls["NVSS"].service # converts record to service object >>> nvss.search(pos=(350.85, 58.815),size=0.25,format="image/fits") -
+ Survey Ra ... LogicalName object float64 ... object ------ ------- ... ----------- @@ -443,7 +443,7 @@ registry. >>> nvss = vo.registry.search(ivoid='ivo://nasa.heasarc/skyview/nvss')[0].get_service('sia') >>> nvss.search(pos=(350.85, 58.815),size=0.25,format="image/fits") -
+ Survey Ra ... LogicalName object float64 ... object ------ ------- ... ----------- diff --git a/pyvo/dal/query.py b/pyvo/dal/query.py index 14c3807be..361da2b0f 100644 --- a/pyvo/dal/query.py +++ b/pyvo/dal/query.py @@ -401,7 +401,7 @@ def _findinfos(self, votable): return infos def __repr__(self): - return repr(self.to_table()) + return f"" def test_iter(self): dalresults = DALResults.from_result_url(