def __init__(self, list_of_nodes): list_of_nodes = [np.array(l) for l in list_of_nodes] self.min = [min(l) for l in list_of_nodes] self.max = [max(l) for l in list_of_nodes] self.n = np.array([(len(e)) for e in list_of_nodes]) # this should be done only on request. self.__nodes__ = cartesian(list_of_nodes) self.list_of_nodes = list_of_nodes # think of a better name
def __init__(self, list_of_nodes): list_of_nodes = [np.array(l) for l in list_of_nodes] self.min = [min(l) for l in list_of_nodes] self.max = [max(l) for l in list_of_nodes] self.__nodes__ = cartesian(list_of_nodes)