FakeSim¶
- class halotools.sim_manager.FakeSim(num_massbins=10, num_halos_per_massbin=100, num_ptcl=20000, seed=43, redshift=0.0, cosmology=FlatLambdaCDM(name='WMAP5', H0=<Quantity 70.2 km / (Mpc s)>, Om0=0.277, Tcmb0=<Quantity 2.725 K>, Neff=3.04, m_nu=<Quantity [0., 0., 0.] eV>, Ob0=0.0459), **kwargs)[source]¶
Bases:
UserSuppliedHaloCatalogFake simulation data used in the test suite of
empirical_models.The
FakeSimobject has all the attributes required by Mock Factories such asHodMockFactoryto create a mock galaxy population. The columns of thehalo_tableandptcl_tableattributes ofFakeSimare generated withnp.random. Thus mock catalogs built intoFakeSimwill not have physically realistic spatial distributions, mass functions, etc. All the same,FakeSimis quite useful for testing purposes, as it permits the testing ofsim_managerandempirical_modelsto be completely decoupled. Default behavior is to use a fixed seed in the random number generation, so that an identical instance ofFakeSimis created for calls with the same arguments.- Parameters:
- num_massbinsint, optional
Number of distinct masses that will appear in the halo catalog. Default is 10.
- num_halos_per_massbinint, optional
Default is 100
- num_ptclint, optional
Number of dark matter particles. Default is 20000.
- seedint, optional
Random number seed used to generate the fake halos and particles. Default is 43.
- cosmology
astropy.cosmologyinstance, optional Default is
halotools.sim_manager.sim_defaults.default_cosmology.
Examples
>>> halocat = FakeSim()