def createChamber(self, rect): ''' Create chamber from rect and add it to chamber set ''' chamber = Chamber(rect, self.sampleName) chamber.setThreshold(self.threshold) self.addChamber(chamber)
def loadChambers(self): for name in sorted(glob(str(self.videoFileName) + '*.lt1')) : print("Opening chamber ", name) chamber,scale,frameRate = Chamber.loadFromFile(name) if frameRate<>self.frameRate and self.frameRate>0 and frameRate >0 : print("Chamber framerate {} not equal to video file one {}".format(frameRate,self.frameRate)) else : self.chambers.addChamber(chamber) QtGui.QApplication.processEvents() if len(self.chambers) > 0 : self.chambers.setScale(scale)