Skip to content

Refactor splatalogue - #151

Merged
keflavich merged 34 commits into
astropy:masterfrom
keflavich:splatalogue_refactor
Aug 10, 2013
Merged

keflavich merged 34 commits into
astropy:masterfrom
keflavich:splatalogue_refactor

Conversation

@keflavich

Copy link
Copy Markdown
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
Copy Markdown
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
@keflavich

Copy link
Copy Markdown
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