-
-
Notifications
You must be signed in to change notification settings - Fork 425
Search provider - NASA ADS #499
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
Conversation
nothing working yet. some copy-paste from astroquery.splatalogue
…turn response, or parsed version of response
…to a AstroPy Table instance.
|
For tables, you can use the function Thanks for the PR. I'll try to review it in more detail when I'm back from travel |
|
I just discovered this: https://github.com/andycasey/ads |
|
It is nice but we need an API key to use that. Maybe we can get one for On Tue, Mar 17, 2015 at 11:18 AM, Magnus Vilhelm Persson <
Adam |
|
Can you rebase or merge against master? we fixed the astropy build issue in #503 |
nothing working yet. some copy-paste from astroquery.splatalogue
|
Yeah I don't know what I just did. I tried to rebase again, before adding the doc to index.rst. Got an error, that there were conflicts, from the first commit. Then I thought, I clone my fork again locally (to a new destination), and then work on that instead, that seem to have screwed up things on my machine, now I don't know what to do. |
|
I'll investigate tomorrow. |
|
@vilhelmp if you want some live help dealing with the git-related stuff, join gitter (https://gitter.im/astropy/astropy) and I can help walk you through the issues. Re-cloning should never be necessary, though I did it a few times before I understood rebasing. As for the error, it's still a simple one: |
|
I get some errors in other modules, I think, probably because I updated my fork from upstream, and then pushed my changes. Since I am organizing a Software Carpentry boot camp today and tomorrow, I don't have time during daytime for gitter. |
|
Travis is passing. Coverage is complaining because you don't have tests, but that isn't a blocker - tests would be really great, but I'm willing to incorporate un-locally-tested tools for the time being at least. So, is this ready to merge, from your side? |
|
Actually, on further inspection, we need some docs and at least a remote test/example... |
docs/nasa_ads/nasa_ads.rst
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this stuff should be in an indented code block:
.. code-block:: python
from astro....
|
the failure is just sphinx |
|
you're green now! ready to merge? |
astroquery/nasa_ads/__init__.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all these commented out things should be removed
|
Think I fixed everything! |
Rewrote the NASA ADS search I had lying around for inclusion into astroquery. Instead of parsing the HTML results with Beautiful Soup, I request the results in XML, and use the
xml.dom.minidominspector to parse the results.Simple search:
However,
print resultraises an error, I think it's because of the encoding, in the functionastroquery.nasa_ads.utils.get_data_from_xmlthe parsing of the individual elements happens (.encode("utf-8")tries to encode the text field into utf-8).