コード例 #1
0
 def test_displace_PSF_moffat(self):
     FWHM = 1
     beta = 2.6
     np.random.seed(41)
     x, y = 0, 0
     x_d, y_d = velocity_util.displace_PSF_moffat(x, y, FWHM, beta)
     assert x_d != x
     assert y_d != y
コード例 #2
0
ファイル: psf.py プロジェクト: swagnercarena/lenstronomy
    def displace_psf(self, x, y):
        """

        :param x: x-coordinate of light ray
        :param y: y-coordinate of light ray
        :return: x', y' displaced by the two dimensional PSF distribution function
        """
        return util.displace_PSF_moffat(x, y, self._fwhm, self._moffat_beta)