File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 36
36
For more detailed information see the :ref:`manual`.
37
37
"""
38
38
39
- # Package-wide test setup and teardown
40
- _test_states = {
41
- # Numpy changed print options in 1.14; we can update docstrings and remove
42
- # these when our minimum for building docs exceeds that
43
- 'legacy_printopt' : None ,
44
- }
45
-
46
- def setup_package ():
47
- """ Set numpy print style to legacy="1.13" for newer versions of numpy """
48
- import numpy as np
49
- from distutils .version import LooseVersion
50
- if LooseVersion (np .__version__ ) >= LooseVersion ('1.14' ):
51
- if _test_states .get ('legacy_printopt' ) is None :
52
- _test_states ['legacy_printopt' ] = np .get_printoptions ().get ('legacy' )
53
- np .set_printoptions (legacy = "1.13" )
54
-
55
- def teardown_package ():
56
- """ Reset print options when tests finish """
57
- import numpy as np
58
- if _test_states .get ('legacy_printopt' ) is not None :
59
- np .set_printoptions (legacy = _test_states .pop ('legacy_printopt' ))
60
-
61
-
62
39
# module imports
63
40
from . import analyze as ana
64
41
from . import spm99analyze as spm99
You can’t perform that action at this time.
0 commit comments