You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from astroquery.utils.tap.core import TapPlus
tap = TapPlus(url="https://TAPVizieR.cds.unistra.fr/TAPVizieR/tap")
#Inspect tables
tables = tap.load_tables()
for table in (tables):
print(table.get_name())
I made a fork, did the edit and I have made first ever pull request. old dog learns new tricks comes to mind :) This will hopefully be the first of many.....
@richardgmcmahon - welcome as a PR contributor!
However, I'm afraid, you will need to open a new one against the main repo rather than the master branch in your fork. (you may be able to edit the current one and change the "base" branch, I'm not exactly sure though that the right one will be in the dropdown).
@bsipocz Thanks, here is my second attempt. It might still not be correct but I want to get it right since I have a few other Astropy docs suggestions to propose.
Hi,
I think that the example at:
https://astroquery.readthedocs.io/en/latest/utils/tap.html#using-tap-to-connect-other-tap-services
is using obsolete terminology
get_name() should be get_qualified_name()
print(tables[0].get_name())
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'TapTableMeta' object has no attribute 'get_name'
The full example is:
from astroquery.utils.tap.core import TapPlus
tap = TapPlus(url="https://TAPVizieR.cds.unistra.fr/TAPVizieR/tap")
#Inspect tables
tables = tap.load_tables()
for table in (tables):
print(table.get_name())
See https://astroquery.readthedocs.io/en/latest/utils/tap.html#getting-public-tables which uses get_qualified_name()
I am happy to edit the docs but I would need some dummy guide to what I need to fork i.e. link.
Best regards, Richard
Tasks
Tasks
The text was updated successfully, but these errors were encountered: