summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjsmith <njs@pobox.com>2012-09-11 11:12:12 -0700
committernjsmith <njs@pobox.com>2012-09-11 11:12:12 -0700
commita17875bbf54d19a29621a173d177d56047ad4ad7 (patch)
treebc3706e6d427e50a72a82e3d496f333da8cce49a
parentaed8fc547bfac6f3d9248e65a53e3eae6393a715 (diff)
parent170ed4e33d6196d724dc18ddcd42311c291b4587 (diff)
downloadnumpy-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__.py6
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")
+