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

update setup.py

parent 80c8efca
Loading
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -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'