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

Refactor splatalogue #151

Merged
merged 34 commits into from
Aug 10, 2013
Merged

Conversation

keflavich
Copy link
Contributor

This is a complete rewrite of splatalogue, based more off of http://agpy.googlecode.com/svn/trunk/agpy/query_splatalogue.py than the mechanize version.

It provides an interface that resembles the splatalogue web interface, NOT a fully functional VO-enabled SLAP interface. The latter is possible, but the documentation seems to be presently unavailable, so we cannot support that interface.

This doesn't fully conform to the astroquery API, but it goes most of the way.

There are still problems with docstrings not being inherited properly.

This depends on PR #149

@keflavich
Copy link
Contributor Author

Build failures are because:
E IOError: [Errno 2] No such file or directory: 'astroquery/splatalogue/data/species.json'
This file should exist. Something must be wrong with the package_data info.

package_data = {PACKAGENAME: ['data/*'],
                'astroquery.splatalogue':['astroquery/splatalogue/data/*.json']}

@astrofrog, do you know what I've done wrong in setup.py?

splatalogue refactor (for real)
(since they follow a trivial common boilerplate)
methods and auto-generate the non-async versions
wrapper because "The nested function looks up variables from the parent
scope when executed, not when defined."  See
http://stackoverflow.com/questions/12423614/local-variables-in-python-nested-functions
@keflavich
Copy link
Contributor Author

Made a blog post on some of my favorite (most common) queries with splatalogue, the whole reason I made this interface in the first place (see agpy/query_splatalogue...):

http://keflavich.github.io/blog/my-favorite-splatalogue-queries.html

Conflicts:
	astroquery/utils/process_asyncs.py
	astroquery/utils/tests/test_utils.py
keflavich added a commit that referenced this pull request Aug 10, 2013
@keflavich keflavich merged commit 1f4368c into astropy:master Aug 10, 2013
@keflavich keflavich deleted the splatalogue_refactor branch August 10, 2013 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant