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
fe6397ac
Commit
fe6397ac
authored
May 08, 2024
by
Yan Zhaojun
Browse files
debug
parent
86564d14
Pipeline
#4391
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_mci_sim/csst_mci_sim.py
View file @
fe6397ac
...
@@ -2784,13 +2784,6 @@ class MCIsimulator():
...
@@ -2784,13 +2784,6 @@ class MCIsimulator():
photons
.
addTo
(
final_image
[
ch
])
photons
.
addTo
(
final_image
[
ch
])
####################################################
####################################################
### debug code
# fi= galsim.ImageF(int(self.information['xsize']), int(self.information['ysize']))
# fi.setOrigin(0,0)
# photons.addTo(fi)
# cx,cy=centroid(fi.array)
# print('cx, cy=', cx, cy)
# print('gx, gy=' ,gx[ch],gy[ch])
############################################
############################################
############################################
############################################
########################################################################
########################################################################
...
@@ -2815,16 +2808,14 @@ class MCIsimulator():
...
@@ -2815,16 +2808,14 @@ class MCIsimulator():
tab
[
'posY_C1'
]
=
np
.
asarray
(
posY_C1
)
tab
[
'posY_C1'
]
=
np
.
asarray
(
posY_C1
)
tab
[
'posY_C2'
]
=
np
.
asarray
(
posY_C2
)
tab
[
'posY_C2'
]
=
np
.
asarray
(
posY_C2
)
tab
[
'posY_C3'
]
=
np
.
asarray
(
posY_C3
)
tab
[
'posY_C3'
]
=
np
.
asarray
(
posY_C3
)
tab
[
'gal_magu'
]
=
np
.
asarray
(
gal_magu
)
tab
[
'gal_magu'
]
=
np
.
asarray
(
gal_magu
)
tab
[
'gal_magg'
]
=
np
.
asarray
(
gal_magg
)
tab
[
'gal_magg'
]
=
np
.
asarray
(
gal_magg
)
tab
[
'gal_magr'
]
=
np
.
asarray
(
gal_magr
)
tab
[
'gal_magr'
]
=
np
.
asarray
(
gal_magr
)
tab
[
'gal_magi'
]
=
np
.
asarray
(
gal_magi
)
tab
[
'gal_magi'
]
=
np
.
asarray
(
gal_magi
)
tab
[
'gal_magz'
]
=
np
.
asarray
(
gal_magz
)
tab
[
'gal_magz'
]
=
np
.
asarray
(
gal_magz
)
####################################################################
####################################################################
file
=
self
.
result_path
+
'/log_Data/gal_info'
+
'_SN_'
+
str
(
self
.
information
[
'simnumber'
])
+
'.fits'
file
=
self
.
result_path
+
'/log_Data/gal_info'
+
'_SN_'
+
str
(
self
.
information
[
'simnumber'
])
+
'.fits'
...
...
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