Python halo mass function calculator
Python Jupyter Notebook
Clone or download



The halo mass function calculator.

hmf is a python application that provides a flexible and simple way to calculate the Halo Mass Function for a range of varying parameters. It is also the backend to HMFcalc, the online HMF calculator.

Version 3 Note

Due to the general trend of moving to Python 3 by important projects such as IPython and astropy, from version 3.0, hmf is compatible with Python 3, and from version 3.1, it will drop (official) support for Python 2.


Read the docs.


Please cite Murray, Power and Robotham (2013) and/or (whichever is more appropriate) if you find this code useful in your research. Please also consider starring the GitHub repository.