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

update setup.py

parent 27ac668d
Pipeline #3969 failed with stage
in 0 seconds
...@@ -1267,7 +1267,7 @@ class IFSsimulator(): ...@@ -1267,7 +1267,7 @@ class IFSsimulator():
# self.log.info('Reading in cosmic ray information from %s and %s' % (self.information['cosmicraylengths'], # self.log.info('Reading in cosmic ray information from %s and %s' % (self.information['cosmicraylengths'],
# self.information['cosmicraydistance'])) # self.information['cosmicraydistance']))
print(self.information) print(self.information)
print(self.dir_path)
crLengths = np.loadtxt( crLengths = np.loadtxt(
self.information['dir_path']+self.information['cosmicraylengths']) self.information['dir_path']+self.information['cosmicraylengths'])
...@@ -1396,10 +1396,7 @@ class IFSsimulator(): ...@@ -1396,10 +1396,7 @@ class IFSsimulator():
# else: # else:
# self.result_path='/data/ifspip/CCD_ima/IFS_simData_'+self.source+ss+result_day # self.result_path='/data/ifspip/CCD_ima/IFS_simData_'+self.source+ss+result_day
dir_path = os.path.join(os.environ['UNIT_TEST_DATA_ROOT'],'ifs_sim/') self.result_path = self.information['dir_path']+'ifs_sim_result/'+self.source+ss+result_day
print(dir_path)
self.result_path = dir_path+'/ifs_sim_result/'+self.source+ss+result_day
if os.path.isdir(self.result_path) == False: if os.path.isdir(self.result_path) == False:
os.mkdir(self.result_path) os.mkdir(self.result_path)
...@@ -4730,7 +4727,7 @@ class IFSsimulator(): ...@@ -4730,7 +4727,7 @@ class IFSsimulator():
hdu2 = fits.ImageHDU(Wave) hdu2 = fits.ImageHDU(Wave)
hdu2.header.append(('WaveUnit', 'nm')) hdu2.header.append(('WaveUnit', 'nm'))
newd = fits.HDUList([hdu1, hdu2]) newd = fits.HDUList([hdu1, hdu2])
......
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