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
ee15cc5b
Commit
ee15cc5b
authored
May 08, 2024
by
Yan Zhaojun
Browse files
debug
parent
4da73dd3
Pipeline
#4371
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 @
ee15cc5b
...
...
@@ -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
())
...
...
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