Coder Social home page Coder Social logo

Comments (2)

richardgmcmahon avatar richardgmcmahon commented on August 20, 2024 1

Thanks @keflavich for the speedy response.

I am using astroquery 0.4.3 and Python 3.8.16 | packaged by conda-forge | (default, Feb 1 2023, 16:05:36)
[Clang 14.0.6 ]

For info table = eso.query_instrument('vircam') works as expected.

I do not have a preference on case. I suggest making the query code case insensitive i.e. query_main and query_instrument.
OR make the instrument list upper case to follow ESO.

ESO list all their instruments here: http://archive.eso.org/cms/eso-data/instrument-specific-query-forms.html

All are all uppercase except for "X-Shooter" which is mixed case and has a hyphen. I note that eso.list_instruments() returns "xshooter" i.e the hypen is removed. eso.list_instruments() returns xshooter.

table = eso.query_main(column_filters={'instrument': 'XSHOOTER'}) works OK
table = eso.query_main(column_filters={'instrument': 'xshooter'}) fails

table = eso.query_instrument('XSHOOTER') works OK
table = eso.query_instrument('xshooter') works OK

So it looks like query_instrument is case insensitive. e.g. table = eso.query_instrument('XsHoOtEr') works

So, I am not sure what to suggest or to call this a "documented feature"

from astroquery.

keflavich avatar keflavich commented on August 20, 2024

Thanks for the report @richardgmcmahon , I confirm this is at least incorrect documentation, and possibly a bug.

To investigate: Should we always pass instrument names as uppercase? Or do we just need to make list_instruments return the correct case?

from astroquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.