def extract_clusters(self,dist):
        """ Extract list of sub-tree clusters from 
            hcluster tree with distance<dist. """
        if self.distance < dist:
            return [self]
        return self.left.extract_clusters(dist) + self.right.extract_clusters(dist)
dataset/ETHPy150Open jesolem/PCV/PCV/clustering/hcluster.py/ClusterNode.extract_clusters/original