We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9e666 commit c5f1bb0Copy full SHA for c5f1bb0
niworkflows/conftest.py
@@ -48,6 +48,14 @@ def find_resource_or_skip(resource):
48
return pathlike
49
50
51
+@pytest.fixture(scope="session", autouse=True)
52
+def legacy_printoptions():
53
+ from packaging.version import Version
54
+
55
+ if Version(np.__version__) >= Version("1.22"):
56
+ np.set_printoptions(legacy="1.21")
57
58
59
@pytest.fixture(autouse=True)
60
def add_np(doctest_namespace):
61
from .utils.bids import collect_data
0 commit comments