def setFilename(self, descriptorName, filename):
        """
        Set the value of one of the files|sequences in this datapacket.
        """
        if descriptorName not in self.filenames:
            raise RuntimeError("DataPacket %s does not contain a file descriptor named %s." % (shorthandScenegraphLocationString(self), descriptorName))
        self.filenames[descriptorName] = filename
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_data_packet.py/DataPacket.setFilename/original