Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 5, 2022
1 parent 6cdd610 commit 8a30808
Showing 1 changed file with 1 addition and 1 deletion.
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 8a30808

Please sign in to comment.