Commit a4587b61 authored by Wei Chengliang's avatar Wei Chengliang
Browse files

update codestyle-PEP8

parent 95e6759c
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -172,6 +172,7 @@ def get_flat(img, seed):
    flat_normal = flat_img / np.mean(flat_img.array)
    return flat_img, flat_normal


def get_innerflat(chip=None, filt=None):
    from observation_sim.mock_objects import FlatLED
    led_obj = FlatLED(chip, filt)
+4 −5
Original line number Diff line number Diff line
@@ -71,7 +71,6 @@ class FlatLED(MockObject):
                with pkg_resources.path('observation_sim.mock_objects.data.led', "") as ledDir:
                    self.flatDir = ledDir.as_posix()


    def getInnerFlat(self):
        ledflats = bandtoLed[self.chip.filter_type]
        iFlat = np.zeros([self.chip.npix_y, self.chip.npix_x])
+1 −1
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@ def psf_extrapolate(psf, rr_trim=64, ngg=256):
    imPSF = imPSF/np.nansum(imPSF)
    return imPSF


def psf_extrapolate1(psf, rr_trim=64, ngg=256):
    # ngg = 256
    # extrapolate PSF
@@ -83,7 +84,6 @@ def psf_extrapolate1(psf, rr_trim=64, ngg=256):
        # radii_log = radii[1:]
        means_log = np.log(means[1:])


        # xim = np.arange(256)-128
        # xim, yim = np.meshgrid(xim, xim)
        # rim = np.sqrt(xim**2 + yim**2)
+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

Loading