Example #1
0
 def buildLists(self):
     self.logger.info("Building Lists")
     self.frameTypes = frameTypes.getFrameLists( self.frames ) #get frame types
     self.objects = frameTypes.makeObjectMap( self.frameTypes['object'] )
     #save a cache of the frame info to speed up future uses of the FirstPassProcessor
     with open(path.join(self.rawFolder,'frameInfo.json'),'w') as f:
         json.dump([self.frameTypes,self.objects],f)
     return self
Example #2
0
 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
Example #3
0
 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