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 20, 2024
1 parent 0d6bbc9 commit ab47d98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yt/visualization/tests/test_offaxisprojection.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ def _vlos_sq(field, data):
np.min(p1_expsq[p1_expsq > 0]), np.min(p1_sqexp[p1_sqexp > 0])
)
# print(mindiff)
safeorbad = np.logical_not(np.logical_and(
p1_expsq - p1_sqexp < 0, p1_expsq - p1_sqexp > -1.0 * mindiff
))
safeorbad = np.logical_not(
np.logical_and(p1_expsq - p1_sqexp < 0, p1_expsq - p1_sqexp > -1.0 * mindiff)
)
# avoid errors from sqrt(negative)
# sqrt in zeros_like insures correct units
p1res = np.zeros_like(np.sqrt(p1_expsq))
Expand Down

0 comments on commit ab47d98

Please sign in to comment.