Coder Social home page Coder Social logo

Add docs for ALFA service about astroquery HOT 6 CLOSED

astropy avatar astropy commented on July 20, 2024
Add docs for ALFA service

from astroquery.

Comments (6)

cdeil avatar cdeil commented on July 20, 2024

An independent issue I just noticed is that importing astroquery.alfa gives a SyntaxWarning:

In [2]: from astroquery import alfa
WARNING: SyntaxWarning: name 'ALFALFACAT' is used prior to global declaration [astroquery.alfa]

This happens at https://github.com/astropy/astroquery/blob/master/astroquery/alfa/core.py#L81 .

Can this be avoided e.g. by declaring

ALFALFACAT = None

at the top and then setting it here?

So ALFALFACAT is one product of ALFA? Maybe you can add a sentence describing this in the docs?

from astroquery.

keflavich avatar keflavich commented on July 20, 2024

Actually, I think the correct approach is to make ALFALFACAT a global configurable as in Vizier (see #101)

from astroquery.

mirochaj avatar mirochaj commented on July 20, 2024

I'll add docs for alfalfa today - I think you're right that it should just
be "astroquery/alfalfa" -- alfa is the name of the receiver, and alfalfa is
the name of a survey.

As for the ALFALFACAT variable - I'm not sure I understand what's happening
in Vizier, but I only defined this variable so that in a given python
session a user would only download the entire catalog once (it takes
several seconds). Then, any subsequent cross-IDs with the catalog are very
fast. ALFALFACAT is identical to the result of "get_catalog" in
astroquery/alfa/core.py. To me, it seems simplest adopt Christoph's
suggestion and set 'ALFALFACAT = None' at the top.

-Jordan

On Tue, Jun 4, 2013 at 7:48 AM, Adam Ginsburg [email protected]:

Actually, I think the correct approach is to make ALFALFACAT a global
configurable as in Vizier (see #101#101
)


Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-18909938
.

from astroquery.

keflavich avatar keflavich commented on July 20, 2024

Ah, sorry, I'd forgotten what that variable referred to. I think we need to have a better (more general/universal) caching scheme for this type of catalog (i.e., metadata catalogs / lists of URLs, etc.). Another Issue....

from astroquery.

keflavich avatar keflavich commented on July 20, 2024

@mirochaj Fix this too. Ask if you need help understanding the new module design we're using.

from astroquery.

keflavich avatar keflavich commented on July 20, 2024

ALFALFA has been partially refactored; closing. @cdeil, please re-raise any of the secondary issues above if they persist.

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.