-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple navigation show, restore the LeftToRightAndBack show #21
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Added a couple comments on parts you could do more concisely, but definitely don't need to. PR needs to resolve merge conflicts, which should be minor.
@@ -41,7 +41,7 @@ class Cell(NamedTuple): | |||
orientation: Orientation | |||
addresses: List["Address"] | |||
|
|||
row_count = 11 | |||
row_count = 11 #why is this hard coded? (jem) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #19
@@ -11,7 +11,7 @@ def __init__(self, grid, frame_delay=0.1): | |||
self.grid = grid | |||
self.frame_delay = frame_delay | |||
|
|||
# from IPython import embed; embed() | |||
from IPython import embed; embed() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably meant to keep this commented out for master.
while True: | ||
hsv = HSV(1.0, 1, 1) | ||
|
||
for row in range (0,11): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After #19 merged, you can do (if you want):
for row in range(self.grid.rows):
for col in range(self.grid.geom.row_length(row)):
self.grid.set(Position(row, col), hsv)
a_ctr = 0 | ||
for points in traversal.left_to_right(n_rows): | ||
for (row, col) in points: | ||
cell = self.grid.select(Position(row=row,col=col)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be cell = self.grid[Position(row, col)]
and you don't have to do cell[0]
after.
.