testing

Module: testing

The testing directory contains a small set of imaging files to be used for doctests only. More thorough tests and example data will be stored in a nipy data packages that you can download separately.

Examples

>>> from nipy.testing import funcfile
>>> from nipy.io.api import load_image
>>> img = load_image(funcfile)
>>> img.shape
(17, 21, 3, 20)
nipy.testing.legacy_printing()[source]

Set numpy print options to “legacy” for new versions of numpy

If imported into a file, nosetest will run this before any doctests.