astropy/astropy — pull request #273 by eteq (2012-06-12 00:38:09+00:00)
Title: Add more Cosmology convinience functions

This adds additional convinience functions for `astropy.cosmology`, and reorganizes the package a bit to make them easier to manage.

There is a question here, though: is this a good thing? we could dispense with these convenience functions (if we do that, we should probably remove `distmod`, though) if we want to always expect everyone to do e.g.

```
from astropy.cosmology import get_current

get_current().distmod(3)
```

instead of

```
from astropy.cosmology import distmod

distmod(3)
```

While the former is a bit more "pythonic", I think everyone will expect the latter to be present, and be confused/disgruntled if it isn't... So I'm mildly in favor of including them, but could be convinced otherwise if others (@nhmc, @astrofrog, @roban?) disagree.