Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://astroquery.readthedocs.io/en/latest/utils/tap.html#using-tap-to-connect-other-tap-services #2984

Closed
richardgmcmahon opened this issue Apr 6, 2024 · 3 comments

Comments

@richardgmcmahon
Copy link
Contributor

richardgmcmahon commented Apr 6, 2024

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'

print(tables[0].get_qualified_name())
J_AA.J/A+A/635/A13/table1

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

No tasks being tracked yet.

Tasks

No tasks being tracked yet.
@richardgmcmahon
Copy link
Contributor Author

richardgmcmahon commented Apr 6, 2024

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.....

https://github.com/richardgmcmahon/astroquery/pull/1

https://astroquery.readthedocs.io/en/latest/api/astroquery.utils.tap.TapTableMeta.html#astroquery.utils.tap.TapTableMeta.get_qualified_name

@bsipocz
Copy link
Member

bsipocz commented Apr 7, 2024

@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).

@richardgmcmahon
Copy link
Contributor Author

@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.

#2985

I deleted my old forked version which had used the master terminology and moved to main terminology. I reforked and made a rgm-1 branch.

@bsipocz bsipocz closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants