skypyproject / skypy

SkyPy: A package for modelling the Universe.
BSD 3-Clause "New" or "Revised" License
118 stars 38 forks source link

simplify halo mass sampling #469

Open ntessore opened 3 years ago

ntessore commented 3 years ago

I am having a hard time following if and how skypy.halos.mass is supposed to be used, given that there is also skypy.halos.colossus_mf.

Ideally, there would be a <model>_mf function for sampling halo redshifts and masses for each model, similar to schechter_lf. This would also be ideal if we decide to move away from COLOSSUS in the future.

Then we could remove the sampling from skypy.halos.mass and have that submodule only contain functions that deal with the mass property of halos, but not the sampling.