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

update setup.py

parent 80c8efca
Pipeline #3963 failed with stage
in 0 seconds
...@@ -977,22 +977,24 @@ class IFSsimulator(): ...@@ -977,22 +977,24 @@ class IFSsimulator():
self.configfile = opts.configfile self.configfile = opts.configfile
if opts.section is None: # if opts.section is None:
####self.section = 'DEFAULT' # ####self.section = 'DEFAULT'
self.section = 'TEST' # simulation section; # self.section = 'TEST' # simulation section;
else: # else:
self.section = opts.section # self.section = opts.section
if opts.debug is None: self.section = 'TEST' # simulation section;
self.debug = False
else:
self.debug = opts.debug
try: # if opts.debug is None:
self.random = opts.testing # self.debug = False
except: # else:
self.random = False # self.debug = opts.debug
# try:
# self.random = opts.testing
# except:
# self.random = False
# load instrument model, these values are also stored in the FITS header # load instrument model, these values are also stored in the FITS header
self.information = IFSinstrumentModel.IFSinformation() self.information = IFSinstrumentModel.IFSinformation()
...@@ -5019,12 +5021,12 @@ class IFSsimulator(): ...@@ -5019,12 +5021,12 @@ class IFSsimulator():
def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'): def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'):
opts, args = processArgs() # opts, args = processArgs()
opts.configfile = configfile # opts.configfile = configfile
simulate = dict() simulate = dict()
simulate[iLoop] = IFSsimulator(opts) simulate[iLoop] = IFSsimulator(configfile)
if applyhole == 'yes' and sourcein == 'LAMP': if applyhole == 'yes' and sourcein == 'LAMP':
simulate[iLoop].information['holemask'] = 'yes' simulate[iLoop].information['holemask'] = 'yes'
......
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