Commit e2f6c6e6 authored by GZhao's avatar GZhao
Browse files

update pep8

parent 72c1f3f5
Loading
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -849,7 +849,6 @@ class CpicVisEmccd(object):
            image_shutter = np.random.poisson(image_shutter)
            image[:, self.pscan1+self.ldark:-self.oscan1-self.rdark] += image_shutter


        if self.switch['cic']:
            cic_frame = np.zeros((self.dark_shape[0], self.bias_shape[1])) + self.cic
            image[self.pscan2:-self.oscan2, :] += np.random.poisson(cic_frame)
@@ -860,13 +859,9 @@ class CpicVisEmccd(object):
        # >>> for _ in range(self.emreg_num):
        # >>>     image += np.random.binomial(image, pEM)
        # This code is too slow, so we used a modified gamma



        em_fix = self.em_fix_fuc_fit(emgain) * emgain
        image = np.random.gamma(image, em_fix) + image * (emgain - em_fix)


        if self.switch['em_blooming']:
            image = self.emregester_blooming(image)

@@ -879,7 +874,6 @@ class CpicVisEmccd(object):
                residual = np.random.binomial(image, 1-big_cte)
                image[:, 1:] += residual[:, :-1] - residual[:, 1:]


        bias = self.bias_frame()

        image = image / self.ph_per_adu + bias
+0 −1
Original line number Diff line number Diff line
@@ -54,7 +54,6 @@ def check_and_update_fits_header(header):
        hdu = 'hdu1'
    dm_comment = {}


    def print_warning(info):
        if header_check:
            log.warning(info)