[object Object]

← back to Exo

formatting if

9785e250c086640d5bf22a789bba690bd43a7073 · 2024-07-20 15:15:05 -0700 · Alex Cheema

Files touched

Diff

commit 9785e250c086640d5bf22a789bba690bd43a7073
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Sat Jul 20 15:15:05 2024 -0700

    formatting if
---
 exo/orchestration/standard_node.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/exo/orchestration/standard_node.py b/exo/orchestration/standard_node.py
index 52668855..b892be4d 100644
--- a/exo/orchestration/standard_node.py
+++ b/exo/orchestration/standard_node.py
@@ -40,8 +40,7 @@ class StandardNode(Node):
                 elif status_data.get("status", "").startswith("end_"):
                     if status_data.get("node_id") == self.current_topology.active_node_id:
                         self.current_topology.active_node_id = None
-            if self.topology_viz:
-              self.topology_viz.update_visualization(self.current_topology, self.partitioning_strategy.partition(self.current_topology))
+            if self.topology_viz: self.topology_viz.update_visualization(self.current_topology, self.partitioning_strategy.partition(self.current_topology))
         except json.JSONDecodeError:
             pass
 
@@ -243,8 +242,7 @@ class StandardNode(Node):
 
         next_topology.active_node_id = self.topology.active_node_id # this is not so clean.
         self.topology = next_topology
-        if self.topology_viz:
-            self.topology_viz.update_visualization(self.current_topology, self.partitioning_strategy.partition(self.current_topology))
+        if self.topology_viz: self.topology_viz.update_visualization(self.current_topology, self.partitioning_strategy.partition(self.current_topology))
         return next_topology
 
     # TODO: unify this and collect_topology as global actions

← 08b2f375 test output spacing  ·  back to Exo  ·  remove redaudant discovery check in automated test aec58b3b →