-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
WIP: VAMDC-cdms interface #658
Conversation
I now use this regularly in some code. @vilhelmp, any chance you could review it? Otherwise, @bispocz, any objections to merging this in its current state? It is a bit sparse on functionality, but it does something. |
Wait, nevermind - can't merge this until I add some tests! And it requires |
Since there are quite a few modules that are far from being complete, I think it's fine to merge this. |
(Commented on the wrong PR first) There isn't much info about the install and deps on the docs pages of vamdclib, so I'm just blindly making suggestions here: |
Would love to test it out. I just switched to using Anaconda Python though. Have to figure out how to test a separate build. Virtualenv I guess? |
you can make a separate conda environment, but I usually just use |
I'm going to link |
@keflavich - I wonder whether you have the |
@bsipocz this is a confusion situation. There are TWO identical upstreams: |
Sounds good. |
It seems to be nontrivial to create a non-remote-dependent vamdclib request. I may elect for remote-only tests for this module. It will result in more likely breakage, but I'm not sure there's anything to be done about that. It's a fairly niche module anyway. |
Sure. In that case I would suggest to add a second line in travis where we run the tests that runs the remote for only for this module. |
@bsipocz do you know what's going on with https://travis-ci.org/astropy/astroquery/jobs/169277855#L1303? I don't understand why it's complaining about not having a VAMDC API page:
since that should be generated. |
@keflavich - This is weird, locally there are no warnings, but I've seen similar warnings before. Let me dig a bit deeper. |
I've restarted travis to see whether it was just a fluke. Also could you please rebase to get rid of the merge commits? |
try: | ||
Vamdc = VamdcClass() | ||
except ImportError: | ||
log.warn("vamdclib could not be imported; the vamdc astroquery module will not work") |
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.
pls use log.warning as warn is deprecated
@keflavich - so the sphinx warning indeed went away, and you could get rid of the remaining failures with the warn-->warning change. |
@bsipocz I can rebase, but is there any particular reason to? I don't mind having merge commits around so much. Thanks for catching |
No strong reason, I usually prefer to have a cleaner branch structure without the merges as it's slightly easier to see what going on. |
enabled, plus some docs
version of the local tests is included in case we figure out how to make some local tests)
OK, rebased and I think it's ready to merge. Anything to add @bsipocz? (besides tests, but this one is going to be an experimental / test-free module for the foreseeable future b/c of its dependencies) |
@keflavich - Sure, let's get this merged. |
I quickly made a small function to query CDMS through their web interface. https://github.com/vilhelmp/cdmspy |
@vilhelmp yeah, even though it's somewhat redundant with vamdc, I think having a direct interface to their web page is valuable. vamdclib doesn't fall within the astropy ecosystem at all, and it doesn't follow all the 'normal' python conventions, so I don't know how much we can rely on it long term. Please open a PR! |
See #618. The goal of this PR is to include an API similar to the Splatalogue
API for accessing information from the CDMS database.
cc @vilhelmp