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

update codestyle-PEP8

parent 20c5ee5f
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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):
+1 −1
Original line number Diff line number Diff line
@@ -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)


+1 −1
Original line number Diff line number Diff line
@@ -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__':
+1 −1
Original line number Diff line number Diff line
@@ -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()