Skip to content

Commit

Permalink
Add num_horizontal track to SB repr
Browse files Browse the repository at this point in the history
  • Loading branch information
mcoduoza committed Feb 5, 2025
1 parent e842391 commit 958c85d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions canal/cyclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,7 @@ def __eq__(self, other):
return True

def __repr__(self):
if self.isTall:
return f"TALLSWITCH {self.width} {self.id} {self.num_track} {self.num_horizontal_track}"
else:
return f"SWITCH {self.width} {self.id} {self.num_track}"
return f"SWITCH {self.width} {self.id} {self.num_track} {self.num_horizontal_track}"

def __getitem__(self, item: Tuple[SwitchBoxSide, int, SwitchBoxIO]):
if not isinstance(item, tuple):
Expand Down

0 comments on commit 958c85d

Please sign in to comment.