Commit 20c5ee5f authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update codestyle-PEP8

parent 00508e40
Pipeline #7097 failed with stage
in 0 seconds
...@@ -50,7 +50,7 @@ class PSFGauss(PSFModel): ...@@ -50,7 +50,7 @@ class PSFGauss(PSFModel):
Return: the flux ratio Return: the flux ratio
""" """
if pscale == None: if pscale is None:
pscale = self.pix_size pscale = self.pix_size
gaussx = galsim.Gaussian(flux=1.0, sigma=sig) gaussx = galsim.Gaussian(flux=1.0, sigma=sig)
gaussImg = gaussx.drawImage(scale=pscale, method='no_pixel') gaussImg = gaussx.drawImage(scale=pscale, method='no_pixel')
...@@ -68,7 +68,7 @@ class PSFGauss(PSFModel): ...@@ -68,7 +68,7 @@ class PSFGauss(PSFModel):
return the fwhm in arcsec return the fwhm in arcsec
""" """
if pscale == None: if pscale is None:
pscale = self.pix_size pscale = self.pix_size
err = 1.0e-3 err = 1.0e-3
nxx = 100 nxx = 100
...@@ -123,3 +123,4 @@ class PSFGauss(PSFModel): ...@@ -123,3 +123,4 @@ class PSFGauss(PSFModel):
# return ell, beta, qr # return ell, beta, qr
PSFshear = galsim.Shear(e=ell, beta=beta*galsim.radians) PSFshear = galsim.Shear(e=ell, beta=beta*galsim.radians)
return self.psf.shear(PSFshear), PSFshear return self.psf.shear(PSFshear), PSFshear
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment