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 Jul 25, 2022
1 parent 1e7585a commit 7d0966e
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 7d0966e

Please sign in to comment.