From 9d76d6c55c3d847e3ccd5cc7eed8f0438e695252 Mon Sep 17 00:00:00 2001 From: NicolasGensollen Date: Mon, 13 Dec 2021 18:47:55 +0100 Subject: [PATCH] [circle full] remove old workaround --- nilearn/__init__.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/nilearn/__init__.py b/nilearn/__init__.py index d777e972e39..524898b8405 100644 --- a/nilearn/__init__.py +++ b/nilearn/__init__.py @@ -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