diff options
author | njsmith <njs@pobox.com> | 2012-09-11 11:12:12 -0700 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2012-09-11 11:12:12 -0700 |
commit | a17875bbf54d19a29621a173d177d56047ad4ad7 (patch) | |
tree | bc3706e6d427e50a72a82e3d496f333da8cce49a | |
parent | aed8fc547bfac6f3d9248e65a53e3eae6393a715 (diff) | |
parent | 170ed4e33d6196d724dc18ddcd42311c291b4587 (diff) | |
download | numpy-a17875bbf54d19a29621a173d177d56047ad4ad7.tar.gz |
Merge pull request #432 from rgommers/silence-cython-warnings
MAINT: silence Cython warnings about changes dtype/ufunc size.
-rw-r--r-- | numpy/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index 0b5357632..8a09d2fec 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -169,3 +169,9 @@ else: __all__.extend(_mat.__all__) __all__.extend(lib.__all__) __all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma']) + + # Filter annoying Cython warnings that serve no good purpose. + import warnings + warnings.filterwarnings("ignore", message="numpy.dtype size changed") + warnings.filterwarnings("ignore", message="numpy.ufunc size changed") + |