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 Jun 13, 2022
1 parent b87ece0 commit b08aa85
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 b08aa85

Please sign in to comment.