def importPanelsCheck(self, ext, nPanels, panelList, checkImage=True, replace=0): log('## importPanelsCheck') if checkImage: self.__checkImage(ext, nPanels, panelList) else: self.__checkDoneProcessing(ext, nPanels) sikuliUtils.saveVersion(self.importDrawing.testInfo, 'Imported %s %ss.' % (nPanels, ext)) # Check there's nPanels more panels in the current shotEdit if ext == 'mov': beat = 'a' else: beat = 'p' newPanels = checkUtils.newPanelsInShotEdit(self.importDrawing.testInfo, {beat: nPanels}, replace, beats=[beat], methodName='importPanelsCheck') checkUtils.checkPanelDir(self.importDrawing.testInfo, newPanels, ['multitrack', 'jpg', 'xml'], 'importPanelsCheck') # Check the pose for each panel was copied checkUtils.checkPanelPose(self.importDrawing.testInfo, newPanels, 'importPanelsCheck') if not replace: self.__checkDuration(ext, nPanels, panelList) log('All checks performed for importPanels.')
def __checkNewPanels(self, editPanels): # Check the multitrack, jpeg and recipe have been created successfully for each new panel newPanels = {'p': [], 'a': []} for beat in newPanels: for panel in editPanels[beat]: if panel not in self.fromSbp.testInfo.allPanels[beat]: newPanels[beat].append(panel) log('sbpToFlixCheck: newPanels: %s' % newPanels) checkUtils.checkPanelDir(self.fromSbp.testInfo, newPanels, thingsToCheck=['multitrack', 'jpg', 'xml'], methodName='sbpToFlixCheck') # Check the pose for each new panel exists checkUtils.checkPanelPose(self.fromSbp.testInfo, newPanels, 'sbpToFlixCheck')