Commit cf7c5c51 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

update

parent aff9c074
Pipeline #7615 passed with stage
in 0 seconds
...@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment