Skip to content

Commit

Permalink
BUG: Revert fastmath and turn on verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Patol75 committed Apr 25, 2024
1 parent 558fd60 commit c5c6a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pydrex/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def coaxial_index(orientations, axis1="b", axis2="a"):
return 0.5 * (2 - (P1 / (G1 + P1)) - (G2 / (G2 + P2)))


@nb.njit(fastmath=False)
@nb.njit(fastmath=True)
def smallest_angle(vector, axis, plane=None):
"""Get smallest angle between a unit `vector` and a bidirectional `axis`.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_doctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_doctests(module, capsys):
n_fails, n_tests = doctest.testmod(
importlib.import_module(module),
raise_on_error=True,
verbose=False, # Change to True to debug doctest failures.
verbose=True, # Change to True to debug doctest failures.
)
if n_fails > 0:
raise AssertionError(f"there were {n_fails} doctest failures from {module}")
Expand Down

0 comments on commit c5c6a71

Please sign in to comment.