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():
self.configfile = opts.configfile
if opts.section is None:
####self.section = 'DEFAULT'
self.section = 'TEST' # simulation section;
# if opts.section is None:
# ####self.section = 'DEFAULT'
# self.section = 'TEST' # simulation section;
else:
self.section = opts.section
# else:
# self.section = opts.section
if opts.debug is None:
self.debug = False
else:
self.debug = opts.debug
self.section = 'TEST' # simulation section;
try:
self.random = opts.testing
except:
self.random = False
# if opts.debug is None:
# self.debug = False
# else:
# 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
self.information = IFSinstrumentModel.IFSinformation()
......@@ -5019,12 +5021,12 @@ class IFSsimulator():
def runIFSsim(sourcein, skyfitsin, configfile, iLoop, applyhole='no'):
opts, args = processArgs()
# opts, args = processArgs()
opts.configfile = configfile
# opts.configfile = configfile
simulate = dict()
simulate[iLoop] = IFSsimulator(opts)
simulate[iLoop] = IFSsimulator(configfile)
if applyhole == 'yes' and sourcein == 'LAMP':
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