def assign_dis(self, c, H0, Omega_M, Omega_L): """ Function that calculates the angular diameter distance for a Z_bin instance. """ self.dcmv = cosmo.dcomvoldz(self.z, Omega_M, Omega_L) self.da = (c / H0) * cosmo.angdidis(self.z, Omega_M, Omega_L)
def assign_dis(self, c, H0, Omega_M, Omega_L): """ Function that calculates the angular diameter distance for a Z_bin instance. """ self.dcmv = cosmo.dcomvoldz(self.z, Omega_M, Omega_L) self.da = ((c / H0) * cosmo.angdidis(self.z, Omega_M, Omega_L))
def __init__(self, id, z): """ Function that initialises a Z_bin instance. """ self.id = id self.z = z self.count = 0 self.r_ref = 0 self.dcmv = cosmo.dcomvoldz(z, opts.Omega_M, opts.Omega_L) self.link_z = opts.link_z / (1 + self.z) self.da = ((opts.c / opts.H0) * cosmo.angdidis(self.z, opts.Omega_M, opts.Omega_L))