Skip to content

Commit

Permalink
pylinting
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang20 committed Apr 30, 2022
1 parent 3e1001f commit e13f2f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/yeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def y_equals(s:str, coor) -> tuple:
# if there is an error
except Exception:

# set old coordinate pair to None
old_coord = None
# set old coordinate pair to None
old_coord = None

# return output tuple
return tuple(output)
Expand Down Expand Up @@ -105,7 +105,10 @@ def xyre(s:str, coor) -> tuple:
for x in range((ori_x - left_lim) % gap_px + left_lim, DISPLAY_WIDTH, gap_px):
matrix.append([])
for y in range(ori_y % gap_py, DISPLAY_HEIGHT, gap_py):
matrix[-1].append(evaluate2(x, y, r[0], ori_x, ori_y, coor.scalex, coor.scaley) - evaluate2(x, y, r[1], ori_x, ori_y, coor.scalex, coor.scaley))
matrix[-1].append(
evaluate2(x, y, r[0], ori_x, ori_y, coor.scalex, coor.scaley) -
evaluate2(x, y, r[1], ori_x, ori_y, coor.scalex, coor.scaley)
)
# compute
points = []
for mx, x in enumerate(range((ori_x - left_lim) % gap_px + left_lim, DISPLAY_WIDTH - gap_px, gap_px)):
Expand Down

0 comments on commit e13f2f2

Please sign in to comment.