Commit ee15cc5b authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

debug

parent 4da73dd3
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1959,7 +1959,7 @@ class MCIsimulator():
            

            if self.debug:             
                if nlayccd>10:
                if nlayccd>5:
                    break
                
            st_ra.append( np.float64(starRa/3600.0))
@@ -2687,7 +2687,7 @@ class MCIsimulator():
                ######## test code   ##########
                
                if self.debug:                
                    if nlayccd>4:
                    if nlayccd>2:
                        #########
                        break
            
@@ -4977,7 +4977,7 @@ class MCIsimulator():
        self.load_filter_PSF()        
        self.information['simnumber']=simnumber
    
        self.debug = self.information['debug']
        ##self.debug = self.information['debug']
        ###########################
        flag=0
        
@@ -5298,7 +5298,7 @@ class MCIsimulator():
        ####################################################################
        if self.source in sourcelist:
            if self.cosmicRays:
                # if self.debug == False: 
                
                self.addCosmicRays()
                print('addCosmicRays finisth')
                     
@@ -5322,7 +5322,7 @@ class MCIsimulator():
        #################################################

        if self.bleeding:
            # if self.debug== False: 
           
            self.image_g=self.applyBleeding(self.image_g.copy())
            self.image_r=self.applyBleeding(self.image_r.copy())
            self.image_i=self.applyBleeding(self.image_i.copy())