Comments (6)
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.
Actually, I think the correct approach is to make ALFALFACAT a global configurable as in Vizier (see #101)
from astroquery.
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.
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.
@mirochaj Fix this too. Ask if you need help understanding the new module design we're using.
from astroquery.
ALFALFA has been partially refactored; closing. @cdeil, please re-raise any of the secondary issues above if they persist.
from astroquery.
Related Issues (20)
- `IndexError` when trying to use "special access" ESO archive query ("cas" url) HOT 2
- Add documentation to ESA Herschel website about existence of Astroquery HOT 2
- Connection timed outwhile using astroquery.gaia
- Progressbar for ESO get_header HOT 5
- Astroquery's CASDA query for RACS-MID DR1 cutout images HOT 3
- ESASky get_images Leaves Chandra Images open? HOT 3
- vectorize astroquery.esa.hsa & HSA.download_data HOT 3
- BUG: HSA raise the correct error rather than LoginError HOT 3
- BUG: int dtype comparison goes wrong linelists.cdms on Windows with astropy 6.1 HOT 1
- TST BUG: cdms mocked example raises EmptyResponseError
- Warning: astroquery.cadc may be using a less than optimal flag for Beautiful Soup HOT 2
- SDSS DR18 implementation HOT 7
- Cannot change Vizier configuration value neither at runtime nor with config file HOT 8
- Astroquery.mpc proper_motion issues numpy.core._exceptions._UFuncNoLoopError: ufunc 'multiply' HOT 2
- Simbad Query returns wrong (?) error values HOT 3
- BUG DOC: module docs in solarsystem is broken for some modules
- Astroquery.mpc i = text_table.index('\n', text_table.index('h m s')) + 1 ValueError: substring not found HOT 1
- Switch to dict instead of ordered dict in Vizier find_catalogs HOT 3
- Splatalogue.query_lines() seems to be broken? HOT 2
- Slow Simbad.query_objects & IRSA.query_region searches HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astroquery.