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

SimbadClass got an unexpected keyword argument #3072

Closed
mbbadaracco opened this issue Jul 20, 2024 · 5 comments
Closed

SimbadClass got an unexpected keyword argument #3072

mbbadaracco opened this issue Jul 20, 2024 · 5 comments

Comments

@mbbadaracco
Copy link

Hello everyone

I'm trying to run the example script from the docs:

from astroquery.simbad import Simbad

simbad = Simbad()
simbad.ROW_LIMIT = 5
simbad.query_bibcode("2016PhRvL.*", wildcard=True, criteria="title LIKE '%gravitational wave%coalescence.'") 

and I get this error:

TypeError Traceback (most recent call last)
Cell In[10], line 7
3 simbad = Simbad()
5 simbad.ROW_LIMIT = 5
----> 7 simbad.query_bibcode("2016PhRvL.*", wildcard=True,
8
9 criteria={"title LIKE '%gravitational wave%coalescence.'"})

TypeError: SimbadClass.query_bibcode() got an unexpected keyword argument 'criteria'

I get the same error with the keyword 'abstract'. Perhaps the following is useful information: this happens trying to run it in google colab as well as in my OS Ubuntu 22.04.4 LTS; the version of astroquery is 0.4.8.dev9321, and I have all the dependencies installed.

@ManonMarchand
Copy link
Member

Hi!

These two arguments are new and they are not in this version. If you want to use them, you'll have to do pip install git+https://github.com/astropy/astroquery.git

@bsipocz : looks like the documentation is a bit ahead of the releases, is it normal?

@mbbadaracco
Copy link
Author

Solved! Thank you very much.

@bsipocz
Copy link
Member

bsipocz commented Jul 22, 2024

Yes, the documentation with "latest" in their URL is routinely reflects the dev branch, all around the ecosystem.

@bsipocz
Copy link
Member

bsipocz commented Jul 22, 2024

@ManonMarchand - I've pushed a dev release to pypi, so the docs' recommendation of pip install --pre -U astroquery now picks up a something fresh (including all the recent simbad changes).

@ManonMarchand
Copy link
Member

Thanks! I'll keep an eye for questions and/or possible bug reports. Fingers crossed the transition will be smooth for everyone.

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

3 participants