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
100bd12d
Commit
100bd12d
authored
May 08, 2024
by
Yan Zhaojun
Browse files
debug
parent
8b37df7a
Pipeline
#4395
passed with stage
in 0 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
100bd12d
...
@@ -2088,6 +2088,7 @@ class MCIsimulator():
...
@@ -2088,6 +2088,7 @@ class MCIsimulator():
cx0
,
cy0
=
centroid
(
stamp_img
.
array
)
cx0
,
cy0
=
centroid
(
stamp_img
.
array
)
if
self
.
appFatt
:
if
self
.
appFatt
:
self
.
log
.
info
(
'begin appfat ........'
)
### apply treering and bright fatter and diffusion;
### apply treering and bright fatter and diffusion;
SimpleTreeRing
=
galsim
.
SiliconSensor
().
simple_treerings
(
amplitude
=
self
.
information
[
'treering'
])
SimpleTreeRing
=
galsim
.
SiliconSensor
().
simple_treerings
(
amplitude
=
self
.
information
[
'treering'
])
...
@@ -2110,6 +2111,9 @@ class MCIsimulator():
...
@@ -2110,6 +2111,9 @@ class MCIsimulator():
photons
=
galsim
.
PhotonArray
.
makeFromImage
(
image
,
max_flux
=
1.0
)
photons
=
galsim
.
PhotonArray
.
makeFromImage
(
image
,
max_flux
=
1.0
)
cx0
,
cy0
=
centroid
(
image
.
array
)
cx0
,
cy0
=
centroid
(
image
.
array
)
self
.
log
.
info
(
'finish appfat ........'
)
############################################
############################################
############################################
############################################
...
...
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