Skip to content

Add OGLE-III interstellar extinction calculator query - #124

Merged
keflavich merged 22 commits into
astropy:masterfrom
autocorr:ogle
Jul 7, 2013
Merged

keflavich merged 22 commits into
astropy:masterfrom
autocorr:ogle

Conversation

@autocorr

@autocorr autocorr commented Jul 2, 2013

Copy link
Copy Markdown
Contributor

I've made a first pass implementation of the OGLE-III extinction calculator (http://ogle.astrouw.edu.pl/). With the aim to include other extinction queries, I think this is a first step, and at a later date a wrapper can be made to combine all the extinction related queries.

The module currently doesn't meet the full API, but it includes a docs page, doc strings, and should meet the general API guidelines. The module doesn't need to store state and only executes one query, so it should be simple to refactor at a future date.

There is a hack-y function ogle._parse_coords to implement searches with 1) one astropy.coordinates instance, 2) a list of astropy.coordinates instances, or 3) a 2xN list of lons and lats as strings or floats.

Thanks in advance for any code review

Comment thread astroquery/ogle/core.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing closing parentheses

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good eye. I threw that in below.

Comment thread astroquery/ogle/__init__.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keflavich

Copy link
Copy Markdown
Contributor

This is looking good. I can merge any time, but I submitted a series of fairly minor requests, mostly on general documentation and coding form.

@autocorr

autocorr commented Jul 7, 2013

Copy link
Copy Markdown
Contributor Author

Great, thanks for taking a look! Those comments are helpful. I'll add another comment when I've made all of them.

@autocorr

autocorr commented Jul 7, 2013

Copy link
Copy Markdown
Contributor Author

Ok, I've implemented the suggestions. Things should be good to merge. Thanks
for the help, I hope this will be useful.

@keflavich

Copy link
Copy Markdown
Contributor

Alright, this looks good and I'll go ahead and merge it. There is one more thing it would be really helpful if you could do: modify the tests such that there are both remote and non-remote tests, e.g. using monkey-patching as in IRSA:
https://github.com/astropy/astroquery/blob/master/astroquery/irsa_dust/tests/test_irsa_dust.py
https://github.com/astropy/astroquery/blob/master/astroquery/irsa_dust/tests/test_irsa_dust_remote.py

But, this should be a separate pull request. Thanks!

keflavich added a commit that referenced this pull request Jul 7, 2013
Add OGLE-III interstellar extinction calculator query
@keflavich
keflavich merged commit 9b8a33f into astropy:master Jul 7, 2013
@aileisun aileisun mentioned this pull request May 13, 2016
@zpace zpace mentioned this pull request Jun 3, 2016
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.

2 participants