cosmolopy.distance),
cosmolopy.perturbation),cosmolopy.reionization).The best way to contribute to the development of CosmoloPy is to use the code and provide feedback, request new features, or add features yourself.
Please join the developer discussion group and help turn CosmoloPy into a comprehensive community-maintained package of basic cosmology routines. Whether you plan to be a casual user or frequent contributor, this is the place to introduce yourself and discuss the future of the package.
The API is still in flux (particularly the reionization routines), but CosmoloPy should already be quite usable.
Please join the developer discussion group if you are interested in using the code and ask about the status of the routines you are interested in using.
You can clone the CosmoloPy project with Git by running:
$ git clone git://github.com/roban/CosmoloPyor download the package in either
roban/CosmoloPy.
python setup.py build python setup.py nosetests sudo python setup.py install
Most functions are designed to take a cosmology parameters as
keywords. The easiest way to use CosmoloPy is to create a
dictionary of the cosmology parameters and pass it to each
function using the ** syntax.
>>> import cosmolopy.distance as cd
>>> cosmo = {'omega_M_0' : 0.3, 'omega_lambda_0' : 0.7, 'h' : 0.72}
>>> d_co, err = cd.comoving_distance(6., **cosmo)
>>> print "Comoving distance = %.1f Mpc" % (d_co)
Comoving distance = 8017.8 Mpc
Look in
the tests/
and examples/
directories for more examples.
If you use any of the routines that make use of power
spectrum calculations, please cite
Eisenstein, D. J., & Hu, W. 1999, ApJ, 511, 5 [astro-ph/9710252]as the source of the matter power spectrum.
The use of CosmoloPy in general does not require any
acknowledgment, but it is nice as a courtesy to the authors
and as a service to others who might benefit from finding out
about the package. Please consider including the URL of this
page
(http://roban.github.com/CosmoloPy/)
in work benefiting from CosmoloPy.
Roban Hultman
Kramer (roban@astro.columbia.edu)
Please consider contributing to this project. Introduce yourself on the CosmoloPy developer discussion group.