def buildObjectList(self): self.logger.info("Building Object List") frames = findFrames(self.folder) frameTypes = getFrameLists(frames) #get frame types self.objects = splitByHeader(frameTypes['object'], 'filter') #save a cache of the frame info to speed up future uses of the ZeroDarkProcessor with open(path.join(self.folder, 'filterLists.json'), 'w') as f: json.dump(self.objects, f) return self
def buildObjectList(self): self.logger.info("Building Object List") frames = findFrames(self.folder) frameTypes = getFrameLists(frames) # get frame types self.objects = splitByHeader(frameTypes["object"], "filter") # save a cache of the frame info to speed up future uses of the ZeroDarkProcessor with open(path.join(self.folder, "filterLists.json"), "w") as f: json.dump(self.objects, f) return self
def buildObjectList(self): """discover object frames in the folder, and what the targets are""" for im in findFrames(self.folder): header = pyfits.getheader(im) self.objects[normalizedName(header)].append(im) # now save the object lists with open(path.join(self.folder, "objectLists.json"), "w") as f: json.dump(self.objects, f) return self
def buildObjectList(self): '''discover object frames in the folder, and what the targets are''' for im in findFrames(self.folder): header = pyfits.getheader(im) self.objects[normalizedName(header)].append(im) #now save the object lists with open(path.join(self.folder, 'objectLists.json'), 'w') as f: json.dump(self.objects, f) return self