Skip to content

Commit

Permalink
Satisfy pre-commit hooks once and for all.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmjl committed Feb 16, 2023
1 parent a98f1de commit b4d828f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/circos/edge_direction_by_node_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
for n, d in G.nodes(data=True):
G.nodes[n]["group"] = randint(0, 30)

for (u, v, d) in G.edges(data=True):
for u, v, d in G.edges(data=True):
d["weight"] = randint(0, 10)

nv.circos(
Expand Down
2 changes: 1 addition & 1 deletion nxviz/polcart.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def to_polar(x, y):
Converts cartesian x, y to polar r, theta.
"""
theta = atan2(y, x)
r = sqrt(x ** 2 + y ** 2)
r = sqrt(x**2 + y**2)

if theta < 0:
theta += 2 * np.pi
Expand Down

0 comments on commit b4d828f

Please sign in to comment.