astropy:docs

enforce_periodicity_of_box

halotools.make_mocks.enforce_periodicity_of_box(coords, box_length)[source] [edit on github]

Function used to apply periodic boundary conditions of the simulation, so that mock galaxies all lie in the range [0, Lbox].

Parameters:

coords : array_like

description of coords

box_length : scalar

the size of simulation box (currently hard-coded to be Mpc/h units)

Returns:

coords : array_like

1d list of floats giving coordinates that have been corrected for box periodicity