Commit 0d574e7a authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update codestyle-PEP8

parent 20c5ee5f
Pipeline #7098 failed with stage
in 0 seconds
......@@ -22,7 +22,7 @@ except ImportError:
import importlib_resources as pkg_resources
### test FUNCTION --- START ###
# test FUNCTION --- START #
def add_brighter_fatter(img):
# Inital dynamic lib
try:
......@@ -50,7 +50,7 @@ def add_brighter_fatter(img):
img.array[:, :] = np.reshape(arr_imc, [nx, ny])
del arr_ima, arr_imc
return img
### test FUNCTION --- END ###
# test FUNCTION --- END #
def defineCCD(iccd, config_file):
......
......@@ -72,7 +72,7 @@ class PSFInterpModule_coverage(unittest.TestCase):
psfB = psfModel.get_PSF(
chip=chip, pos_img=pos_img, findNeighMode='hoclistFind', bandpass=bandpass[0], galsimGSObject=False)
self.assertTrue(psf != None)
self.assertTrue(psf is not None)
self.assertTrue(np.max(np.abs(psfA-psfB)) < 1e-6)
......
......@@ -209,7 +209,7 @@ class imagingModule_coverage(unittest.TestCase):
gal = gal + gal_temp
print(gal)
self.assertTrue(gal != None)
self.assertTrue(gal is not None)
if __name__ == '__main__':
......
......@@ -79,7 +79,7 @@ for iobj in range(nobj):
if True:
fn = "psf_{:}.{:}.{:}.fits".format(chipID, iobj, i)
if fn != None:
if fn is not None:
if os.path.exists(fn):
os.remove(fn)
hdu = fitsio.PrimaryHDU()
......
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