@classmethod
    def readFromFile(cls, parent, stream):
        dimensionality = stream.readInt()
        typ = stream.readInt()
        if typ != 0:
            raise ValueError('only GC type 0 is supported, but %d is specified' % typ)
        name = stream.readWord()
        meanName = stream.readWord()
        varName = stream.readWord()
        gc = cls(parent, name, dimensionality, meanName, varName)
        #print gc
        return gc
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/GC.readFromFile/original