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
cf7c5c51
Commit
cf7c5c51
authored
Dec 26, 2024
by
Yan Zhaojun
Browse files
update
parent
aff9c074
Pipeline
#7615
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 @
cf7c5c51
...
@@ -2349,16 +2349,14 @@ class MCIsimulator():
...
@@ -2349,16 +2349,14 @@ class MCIsimulator():
self
.
log
.
info
(
'galaxy_Input image path is: %s'
%
(
filename
))
self
.
log
.
info
(
'galaxy_Input image path is: %s'
%
(
filename
))
if
not
os
.
path
.
exists
(
filename
):
# if not os.path.exists(filename):
print
(
'finish load all the input galaxy image fits files'
)
# print('finish load all the input galaxy image fits files')
#
# #
self
.
log
.
error
(
# self.log.error(
'Error, when load input galaxy image fits files'
)
# 'Error, when load input galaxy image fits files')
raise
ValueError
(
# raise ValueError(
'Error, when load input galaxy image fits files'
)
# 'Error, when load input galaxy image fits files')
#
# #
break
srcs_cat
=
fits
.
open
(
filename
)
srcs_cat
=
fits
.
open
(
filename
)
#
#
# ### load galaxy SED fitsfile ###
# ### load galaxy SED fitsfile ###
...
@@ -2374,6 +2372,7 @@ class MCIsimulator():
...
@@ -2374,6 +2372,7 @@ class MCIsimulator():
filename
=
self
.
information
[
'dir_path'
]
+
\
filename
=
self
.
information
[
'dir_path'
]
+
\
'MCI_inputData/galaxy_Input/noLens_SED_IMG_0.025_230626/Lens_img_cut_SED_'
+
\
'MCI_inputData/galaxy_Input/noLens_SED_IMG_0.025_230626/Lens_img_cut_SED_'
+
\
str
(
k2
+
1
)
+
'.fits'
str
(
k2
+
1
)
+
'.fits'
#
srcs_sed
=
fits
.
open
(
filename
)
srcs_sed
=
fits
.
open
(
filename
)
self
.
log
.
info
(
'galaxy_Input SED path is: %s'
%
(
filename
))
self
.
log
.
info
(
'galaxy_Input SED path is: %s'
%
(
filename
))
...
...
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