Loading csst_ifs_sim/csst_ifs_sim.py +18 −16 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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' Loading Loading
csst_ifs_sim/csst_ifs_sim.py +18 −16 Original line number Diff line number Diff line Loading @@ -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() Loading Loading @@ -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' Loading