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):
Return: the flux ratio
"""
if pscale == None:
if pscale is None:
pscale = self.pix_size
gaussx = galsim.Gaussian(flux=1.0, sigma=sig)
gaussImg = gaussx.drawImage(scale=pscale, method='no_pixel')
......@@ -68,7 +68,7 @@ class PSFGauss(PSFModel):
return the fwhm in arcsec
"""
if pscale == None:
if pscale is None:
pscale = self.pix_size
err = 1.0e-3
nxx = 100
......@@ -123,3 +123,4 @@ class PSFGauss(PSFModel):
# return ell, beta, qr
PSFshear = galsim.Shear(e=ell, beta=beta*galsim.radians)
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