Skip to content

Commit 9151ae5

Browse files
committed
FIX: Import numpy in setup_test
1 parent f8291e3 commit 9151ae5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nibabel/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ def setup_test():
4141
4242
If imported into a file, nosetest will run this before any doctests.
4343
"""
44+
import numpy
4445
from distutils.version import LooseVersion
45-
if LooseVersion(np.__version__) >= LooseVersion('1.14'):
46-
np.set_printoptions(legacy="1.13")
46+
if LooseVersion(numpy.__version__) >= LooseVersion('1.14'):
47+
numpy.set_printoptions(legacy="1.13")
4748

4849

4950
# module imports

0 commit comments

Comments
 (0)