@classmethod
    def deserialize(cls, h5G):
        thisForestPath = h5G.name
        allForestsPath = thisForestPath[0:thisForestPath.rfind("/")]
      
        if allForestsPath in h5G.file:
            trees = h5G.file[allForestsPath].keys()
          
            treeCount = 0
            for t in trees:
                #print "before"
                #print allForestsPath+"/"+t+"/_options/tree_count_"
                #print "after"
                treeCount += h5G.file[allForestsPath+"/"+t+"/_options/tree_count_"][0]
            print "total number of RandomForest trees = ", treeCount
            ClassifierRandomForest.treeCount = treeCount
      
        return 0
FIXME: we do not load the complete random forest here, but require the user to re-train
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/classification/core/classifiers/classifierRandomForest.py/ClassifierRandomForest.deserialize