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

debug

parent 4da73dd3
Pipeline #4371 failed with stage
in 0 seconds
...@@ -1959,7 +1959,7 @@ class MCIsimulator(): ...@@ -1959,7 +1959,7 @@ class MCIsimulator():
if self.debug: if self.debug:
if nlayccd>10: if nlayccd>5:
break break
st_ra.append( np.float64(starRa/3600.0)) st_ra.append( np.float64(starRa/3600.0))
...@@ -2687,7 +2687,7 @@ class MCIsimulator(): ...@@ -2687,7 +2687,7 @@ class MCIsimulator():
######## test code ########## ######## test code ##########
if self.debug: if self.debug:
if nlayccd>4: if nlayccd>2:
######### #########
break break
...@@ -4977,7 +4977,7 @@ class MCIsimulator(): ...@@ -4977,7 +4977,7 @@ class MCIsimulator():
self.load_filter_PSF() self.load_filter_PSF()
self.information['simnumber']=simnumber self.information['simnumber']=simnumber
self.debug = self.information['debug'] ##self.debug = self.information['debug']
########################### ###########################
flag=0 flag=0
...@@ -5298,7 +5298,7 @@ class MCIsimulator(): ...@@ -5298,7 +5298,7 @@ class MCIsimulator():
#################################################################### ####################################################################
if self.source in sourcelist: if self.source in sourcelist:
if self.cosmicRays: if self.cosmicRays:
# if self.debug == False:
self.addCosmicRays() self.addCosmicRays()
print('addCosmicRays finisth') print('addCosmicRays finisth')
...@@ -5322,7 +5322,7 @@ class MCIsimulator(): ...@@ -5322,7 +5322,7 @@ class MCIsimulator():
################################################# #################################################
if self.bleeding: if self.bleeding:
# if self.debug== False:
self.image_g=self.applyBleeding(self.image_g.copy()) self.image_g=self.applyBleeding(self.image_g.copy())
self.image_r=self.applyBleeding(self.image_r.copy()) self.image_r=self.applyBleeding(self.image_r.copy())
self.image_i=self.applyBleeding(self.image_i.copy()) self.image_i=self.applyBleeding(self.image_i.copy())
......
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