diff --git a/bin/fixed_point.py b/bin/fixed_point.py index a69245f3268e13a8a3f6600dcae0197c8bb5892b..284b743ab89e6405508861dda01b43afabeac1d5 100644 --- a/bin/fixed_point.py +++ b/bin/fixed_point.py @@ -159,7 +159,7 @@ class FixedPoint: @staticmethod def __findCluster(data): """Retruns the cluster contained in the given *sorted* list""" - rank = MPI.COMM_WORLD.Get_rank() + rank = MPI.COMM_WORLD.Get_rank() # Get clusters cluster = [] delta = 0.01 @@ -174,19 +174,19 @@ class FixedPoint: j = j + 1 else: break - + cluster.append(sub) i = j + 1 - + # Mean of each cluster out = [] for i in range(len(cluster)): out.append(np.mean(cluster.pop())) out.reverse() - + if(rank == 0): print "Cluster:", if(rank == 0): print out - + return out # return [data[0], data[3], data[6], data[11]]