Exemplo n.º 1
0
 def imstack_wrapper(self, target, flist, outp):
     raw = self.current_obsnight.rawpath
     cal = self.current_obsnight.calpath
     stub = self.current_obsnight.filestub
     imstack = parse_filestring(flist, os.path.join(raw, stub))
     imstack.medcombine(output=os.path.join(cal, outp))
     target[:] = [outp, flist]
     self.ids.calfiles.text = flist
     self.ids.calout.text = outp
     self.waiting.dismiss()
Exemplo n.º 2
0
 def update_targets(self, targs):
     targs["images"] = parse_filestring(
         targs["filestring"], os.path.join(self.current_obsnight.rawpath, self.current_obsnight.filestub)
     )
     targs["dither"] = targs["images"].dithers
     self.current_target = ObsTarget(**targs)
     tmp = self.current_obsnight.targets
     tmp[self.current_target.targid] = self.current_target
     self.current_obsnight = self.current_obsnight._replace(targets=tmp)
     self.target_list = self.current_obsnight.targets.keys()
     self.ids.targs.text = self.current_target.targid
     self.set_filelist()
     self.rdb[self.current_obsnight.date] = {self.current_obsnight.date: self.current_obsnight}