Permalink
Browse files

pep8

  • Loading branch information...
sdpython committed Oct 22, 2016
1 parent d25cafe commit 90941594eb3a8f52ddcce25d60cf18ebcbb26cf3
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/code_beatrix/algorithm/classroom.py
@@ -48,10 +48,8 @@ def plot_positions(positions, edges=None, ax=None, **options):
p1 = posdict[e1]
p2 = posdict[e2]
if p1 != p2:
dx = ((p2[0] - p1[0]) / abs(p2[0] - p1[0])
* 0.1) if p2[0] != p1[0] else 0.0
dy = ((p2[1] - p1[1]) / abs(p2[1] - p1[1])
* 0.1) if p2[1] != p1[1] else 0.0
dx = ((p2[0] - p1[0]) / abs(p2[0] - p1[0]) * 0.1) if p2[0] != p1[0] else 0.0
dy = ((p2[1] - p1[1]) / abs(p2[1] - p1[1]) * 0.1) if p2[1] != p1[1] else 0.0
d = distance(p1, p2)
if d < 1.1:
color = "y"

0 comments on commit 9094159

Please sign in to comment.