From 3f688ea6e1289343d991e3e8434fc340edd62a94 Mon Sep 17 00:00:00 2001
From: Rishi Sharma <rishi.sharma@epfl.ch>
Date: Wed, 17 Nov 2021 18:08:32 +0100
Subject: [PATCH] Communication_test

---
 ip_addr.json | 4 ++--
 testing.py   | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ip_addr.json b/ip_addr.json
index 187f543..a700c5f 100644
--- a/ip_addr.json
+++ b/ip_addr.json
@@ -1,4 +1,4 @@
 {
-    "0": "labostrex131",
-    "1": "labostrex132"
+    "0": "10.90.41.131",
+    "1": "10.90.41.132"
 }
\ No newline at end of file
diff --git a/testing.py b/testing.py
index fafca29..5d487bd 100644
--- a/testing.py
+++ b/testing.py
@@ -6,7 +6,8 @@ from decentralizepy.mappings.Linear import Linear
 
 def f(rank, m_id, total_procs, filePath, mapping):
     c = Communication(rank, m_id, total_procs, filePath, mapping)
-    c.connect_neighbours([i for i in range(total_procs) if i != rank])
+
+    c.connect_neighbours([i for i in range(total_procs) if i != mapping.get_uid(rank, m_id)])
     send = {}
     send["message"] = "Hi I am rank {}".format(rank)
     c.send((rank + 1) % total_procs, send)
-- 
GitLab