Commit 32e7ef42 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

update setup.py

parent ce2e6755
Pipeline #3973 failed with stage
in 0 seconds
...@@ -4781,9 +4781,9 @@ class IFSsimulator(): ...@@ -4781,9 +4781,9 @@ class IFSsimulator():
if simnumber <= 200 and simnumber > 150: if simnumber <= 200 and simnumber > 150:
self.information['exptime'] = 1200 self.information['exptime'] = 1200
self.skyfilepath = self.information['skyfilepath'] self.skyfilepath = self.information['dir_path']+self.information['sky_fitsin']
print(self.skyfilepath) print('self.skyfilepath = ',self.skyfilepath)
# self.earthshine_theta=30.0 # in degree # self.earthshine_theta=30.0 # in degree
...@@ -5024,7 +5024,7 @@ class IFSsimulator(): ...@@ -5024,7 +5024,7 @@ class IFSsimulator():
############################################################################################## ##############################################################################################
def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'): def runIFSsim(sourcein, configfile, iLoop, applyhole='no'):
# opts, args = processArgs() # opts, args = processArgs()
...@@ -5043,8 +5043,7 @@ def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'): ...@@ -5043,8 +5043,7 @@ def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'):
############### ###############
if sourcein == 'SCI':
simulate[iLoop].information['skyfilepath'] = skyfitsin
############## ##############
simulate[iLoop].simulate(sourcein, iLoop) simulate[iLoop].simulate(sourcein, iLoop)
......
...@@ -36,13 +36,13 @@ class TestDemoFunction(unittest.TestCase): ...@@ -36,13 +36,13 @@ class TestDemoFunction(unittest.TestCase):
###configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config' ###configfile = dir_path+'IFS_inputdata/configData/IFS_sim_C90.config'
configfile = './ifs_data/IFS_sim_C90.config' configfile = './ifs_data/IFS_sim_C90.config'
skyfitsin = dir_path+'IFS_inputdata/FengshuaiData/NGC6397_S6102.fits'
sourcein = 'SCI' sourcein = 'SCI'
print(configfile) print(configfile)
print(skyfitsin) print(skyfitsin)
csst_ifs_sim.runIFSsim(sourcein, skyfitsin, configfile, 1, 'no') csst_ifs_sim.runIFSsim(sourcein, configfile, 1, 'no')
self.assertEqual( self.assertEqual(
1 , 1, 1 , 1,
"case 1: SCI sim passes.", "case 1: SCI sim passes.",
......
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