コード例 #1
0
ファイル: cosmology.py プロジェクト: tloredo/inference
 def flux2z(self, F):
     """
     Return the redshift such that a standard-candle source
     with have flux F.
     """
     _cosmo.set_ffid(self.F_fid)
     _cosmo.set_lum(self.lum)
     return _cosmo.flux2z(F)
コード例 #2
0
 def flux2z(self, F):
     """
     Return the redshift such that a standard-candle source
     with have flux F.
     """
     _cosmo.set_ffid(self.F_fid)
     _cosmo.set_lum(self.lum)
     return _cosmo.flux2z(F)
コード例 #3
0
ファイル: cosmology.py プロジェクト: tloredo/inference
 def set_lum(self, lum):
     """
     Set the dimensionless standard-candle luminosity.
     """
     self.lum = lum
     _cosmo.set_lum(lum)
コード例 #4
0
 def set_lum(self, lum):
     """
     Set the dimensionless standard-candle luminosity.
     """
     self.lum = lum
     _cosmo.set_lum(lum)