From c5c6a710d9eab59cf8a4b45d1419616b71515ab0 Mon Sep 17 00:00:00 2001 From: Thomas Duvernay Date: Thu, 25 Apr 2024 11:36:49 +0200 Subject: [PATCH] BUG: Revert fastmath and turn on verbose mode --- src/pydrex/diagnostics.py | 2 +- tests/test_doctests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pydrex/diagnostics.py b/src/pydrex/diagnostics.py index 729cd222..fed664c1 100644 --- a/src/pydrex/diagnostics.py +++ b/src/pydrex/diagnostics.py @@ -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`. diff --git a/tests/test_doctests.py b/tests/test_doctests.py index d5aa06d7..d44f0445 100644 --- a/tests/test_doctests.py +++ b/tests/test_doctests.py @@ -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}")