Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-sims
csst_mci_sim
Commits
54584f31
Commit
54584f31
authored
Apr 15, 2024
by
Yan Zhaojun
Browse files
debug
parent
7184ce88
Pipeline
#4073
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
54584f31
...
...
@@ -5438,11 +5438,11 @@ class MCIsimulator():
print
(
'applyPRNUeffect'
)
####################################################################
if
self
.
source
in
sourcelist
:
if
self
.
cosmicRays
:
# if self.debug == False:
self
.
addCosmicRays
()
print
(
'addCosmicRays finisth'
)
#
if self.source in sourcelist:
#
if self.cosmicRays:
#
# if self.debug == False:
#
self.addCosmicRays()
#
print('addCosmicRays finisth')
##################################################
if
self
.
skyback
:
...
...
@@ -5463,18 +5463,18 @@ 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
())
print
(
'apply bleeding effect finisth'
)
#
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())
#
print('apply bleeding effect finisth')
################################################
#
################################################
if
self
.
nonlinearity
:
self
.
applyNonlinearity
()
print
(
'applyNonlinearity'
)
#
if self.nonlinearity:
#
self.applyNonlinearity()
#
print('applyNonlinearity')
# ################################################
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment