From 2a8185130f01679b52e2849a441ad874cda69de8 Mon Sep 17 00:00:00 2001 From: krlosromero Date: Wed, 30 Oct 2019 14:44:54 +0000 Subject: [PATCH] pushing review changes --- gns3fy/gns3fy.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gns3fy/gns3fy.py b/gns3fy/gns3fy.py index 5197bd1..7e7a697 100644 --- a/gns3fy/gns3fy.py +++ b/gns3fy/gns3fy.py @@ -1921,13 +1921,11 @@ def arrange_nodes_circular(self, radius=120): if self.status != "opened": self.open() - _r = 120 - # radius _angle = (2 * pi) / len(self.nodes) # The Y Axis is inverted in GNS3, so the -Y is UP for index, n in enumerate(self.nodes): - _x = int(_r * (sin(_angle * index))) - _y = int(_r * (-cos(_angle * index))) + _x = int(radius * (sin(_angle * index))) + _y = int(radius * (-cos(_angle * index))) n.update(x=_x, y=_y) def get_drawings(self): @@ -1938,7 +1936,6 @@ def get_drawings(self): - `connector` """ self._verify_before_action() - self.get() _url = f"{self.connector.base_url}/projects/{self.project_id}/drawings"