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)
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_data_packet.py/DataPacket.fileDescriptorNamed/original