def corr_func(p): if co.x_correlation: co.fill_neighs_x_correlation(p) else: co.fill_neighs(p) tmp = co.co(p) return tmp
def corr_func(healpixs): """Computes the correlation function. To optimize the computation, first compute a list of neighbours for each of the healpix. This is an auxiliar function to split the computational load using several CPUs. Args: healpixs: array of ints List of healpix numbers Returns: The correlation function data """ co.fill_neighs(healpixs) correlation_function_data = co.compute_xi(healpixs) return correlation_function_data