示例#1
0
 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)
示例#2
0
 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))
示例#3
0
 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))
示例#4
0
 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))