Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINT] Remove old workarounds in init file #3092

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 0 additions & 13 deletions nilearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ def _python_deprecation_warnings():
_python_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 _compare_version(np.__version__, '>=', "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