Exemple #1
0
    def get_config_data(self):
        if self.config_data is not None:
            return self.config_data

        rf=deswl.files.ShearFiles(self.rc['serun'])
        expdict = rf.get_flist(by_expname=True)
        
        odict={}
        for expname,flist in expdict.iteritems():
            odict[expname] = []
            # one for each CCD
            for fd in flist:
                ccd=fd['ccd']

                fdict={}
                fdict['run'] = self['run']
                fdict['expname'] = expname
                fdict['band'] = fd['band']
                fdict['ccd'] = ccd
                fdict['input_files'] = {'image':fd['image'],'stars':fd['stars']}
                fdict['output_files']=\
                    generic.generate_filenames(_impyp_patterns,
                                               'impyp',
                                               self['run'],
                                               expname,
                                               ccd=ccd)
                
                fdict['command'] = self.get_command(fdict)
                fdict['timeout'] = 15*60 # fifteen minute timeout
                odict[expname].append(fdict)

        self.config_data = odict 
        return odict
Exemple #2
0
    def get_config_data(self):
        if self.config_data is not None:
            return self.config_data

        desdata = desdb.files.get_des_rootdir()
        expdict = desdb.files.get_red_info_byexp(self.rc["dataset"], self.rc["band"], desdata=desdata)

        odict = {}
        for expname, flist in expdict.iteritems():
            odict[expname] = []
            # one for each CCD
            for fd in flist:
                ccd = fd["ccd"]

                fdict = {}
                fdict["run"] = self["run"]
                fdict["expname"] = expname
                fdict["band"] = fd["band"]
                fdict["ccd"] = ccd
                fdict["input_files"] = {"image": fd["image_url"], "cat": fd["cat_url"]}
                fdict["output_files"] = generic.generate_filenames(_patterns, "am", self["run"], expname, ccd=ccd)

                fdict["command"] = self.get_command(fdict)
                fdict["timeout"] = 15 * 60  # fifteen minute timeout
                odict[expname].append(fdict)

        self.config_data = odict
        return odict
Exemple #3
0
    def get_config_data(self):
        if self.config_data is not None:
            return self.config_data

        rf = deswl.files.ShearFiles(self.rc['serun'])
        expdict = rf.get_flist(by_expname=True)

        odict = {}
        for expname, flist in expdict.iteritems():
            odict[expname] = []
            # one for each CCD
            for fd in flist:
                ccd = fd['ccd']

                fdict = {}
                fdict['run'] = self['run']
                fdict['expname'] = expname
                fdict['band'] = fd['band']
                fdict['ccd'] = ccd
                fdict['input_files'] = {
                    'image': fd['image'],
                    'stars': fd['stars']
                }
                fdict['output_files']=\
                    generic.generate_filenames(_impyp_patterns,
                                               'impyp',
                                               self['run'],
                                               expname,
                                               ccd=ccd)

                fdict['command'] = self.get_command(fdict)
                fdict['timeout'] = 15 * 60  # fifteen minute timeout
                odict[expname].append(fdict)

        self.config_data = odict
        return odict
Exemple #4
0
    def get_config_data(self):
        if self.config_data is not None:
            return self.config_data

        desdata=deswl.files.des_rootdir()
        expdict = desdb.files.get_red_info_byexp(self.rc['dataset'],
                                                 self.rc['band'],
                                                 desdata=desdata)
        
        odict={}
        for expname,flist in expdict.iteritems():
            odict[expname] = []
            # one for each CCD
            for fd in flist:
                ccd=fd['ccd']

                fdict={}
                fdict['run'] = self['run']
                fdict['expname'] = expname
                fdict['band'] = fd['band']
                fdict['ccd'] = ccd
                fdict['input_files'] = \
                    {'image':fd['image_url'],'cat':fd['cat_url']}
                fdict['output_files']=\
                    generic.generate_filenames(_patterns,
                                               'am',
                                               self['run'],
                                               expname,
                                               ccd=ccd)
                
                fdict['command'] = self.get_command(fdict)
                fdict['timeout'] = 15*60 # fifteen minute timeout
                odict[expname].append(fdict)

        self.config_data = odict 
        return odict