Skip to content

Commit

Permalink
[circle full] remove old workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGensollen committed Dec 13, 2021
1 parent d2ba642 commit 9d76d6c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions nilearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,6 @@ def _nibabel_deprecation_warnings():
_nibabel_deprecation_warnings()


# Temporary work around to address formatting issues in doc tests
# with NumPy 1.14. NumPy had made more consistent str/repr formatting
# of numpy arrays. Hence we print the options to old versions.
import numpy as np
if LooseVersion(np.__version__) >= LooseVersion("1.14"):
# See issue #1600 in nilearn for reason to add try and except
try:
from ._utils.testing import are_tests_running
if are_tests_running():
np.set_printoptions(legacy='1.13')
except ImportError:
pass

# Monkey-patch gzip to have faster reads on large gzip files
if hasattr(gzip.GzipFile, 'max_read_chunk'):
gzip.GzipFile.max_read_chunk = 100 * 1024 * 1024 # 100Mb
Expand Down

0 comments on commit 9d76d6c

Please sign in to comment.