def writeToFile(self, stream):
        stream.writelnWord(self.name)
        stream.writeInt(len(self.parentCards))
        for c in self.parentCards:
            stream.writeInt(c)
        stream.writeNewLine()
        self_card = self.selfCard
        stream.writelnInt(self_card)
        for i, val in enumerate(self.table.flat()):
            if i > 0 and i % self_card == 0:
                stream.writeNewLine()
            stream.writeFloat(val)
        else:
            stream.writeNewLine()
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/DCPT.writeToFile/original