From 415d52339bc65dcf16d076e4b3e75a654871a2a2 Mon Sep 17 00:00:00 2001 From: Nicolas Marsic <marsic@temf.tu-darmstadt.de> Date: Mon, 14 Aug 2017 11:58:01 +0200 Subject: [PATCH] oops --- bin/fixed_point.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/fixed_point.py b/bin/fixed_point.py index a69245f..284b743 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]] -- GitLab