diff options
author | Jeremy Manning <jeremy@hypercube.local> | 2018-07-29 08:35:19 -0400 |
---|---|---|
committer | Jeremy Manning <jeremy@hypercube.local> | 2018-07-29 08:35:19 -0400 |
commit | 15b7ecdacdb37b6334e9c0312115ad0fabefb676 (patch) | |
tree | 5ae62db9017e8c9525f7f8ea49e5b171d477677d /numpy/__init__.py | |
parent | 74fdbc728294700b6d495d4dd95a2c281a4420f4 (diff) | |
download | numpy-15b7ecdacdb37b6334e9c0312115ad0fabefb676.tar.gz |
ignore cython warnings in init
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r-- | numpy/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index b912d2222..2b8d41798 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -179,6 +179,11 @@ else: __all__.extend(lib.__all__) __all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma']) + # Filter out Cython harmless warnings + warnings.filterwarnings("ignore", message="numpy.dtype size changed") + warnings.filterwarnings("ignore", message="numpy.ufunc size changed") + warnings.filterwarnings("ignore", message="numpy.ndarray size changed") + # oldnumeric and numarray were removed in 1.9. In case some packages import # but do not use them, we define them here for backward compatibility. oldnumeric = 'removed' |