Skip to content

Commit

Permalink
pushing review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Krlosromero authored and davidban77 committed Nov 3, 2019
1 parent 619cc3d commit 2a81851
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gns3fy/gns3fy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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"

Expand Down

0 comments on commit 2a81851

Please sign in to comment.