def outputFramespec(self, outputName, subOutputName):
		"""
		Return a framespec object for the given output name and sub-name.
		Workflow variables are always substituted in this function.
		"""
		filename = self.outputValue(outputName, subOutputName)
		seqRange = self.outputRange(outputName)
		return depends_util.framespec(filename, seqRange)
 def fileDescriptorNamed(self, descriptorName):
     """
     Return a framespec object derived from the information in the given
     descriptor.
     """
     if descriptorName not in self.filenames:
         raise RuntimeError("DataPacket %s does not contain a file descriptor named %s." % (shorthandScenegraphLocationString(self), descriptorName))
     return depends_util.framespec(self.filenames[descriptorName], self.sequenceRange)
Exemple #3
0
 def outputFramespec(self, outputName, subOutputName):
     """
     Return a framespec object for the given output name and sub-name.
     Workflow variables are always substituted in this function.
     """
     filename = self.outputValue(outputName, subOutputName)
     seqRange = self.outputRange(outputName)
     return depends_util.framespec(filename, seqRange)
 def dataPresent(self, specificFileDescriptorName=None):
     """
     Returns if all data is present for the current DataPacket.  Individual
     file descriptors in the data packet can be specified to retrieve more 
     detailed information.
     """
     fdNameList = list()
     if specificFileDescriptorName:
         fdNameList.append(specificFileDescriptorName)
     else:
         fdNameList = self.filenames.keys()
     for fileDescriptor in fdNameList:
         if not self._filesExist(depends_util.framespec(self.filenames[fileDescriptor], self.sequenceRange)):
             return False
     return True