Skip to content

Commit b027228

Browse files
Merge pull request #176 from jeremymanning/master
got rid of warning message due to harmless numpy/cython issues
2 parents 718ef27 + 35afad6 commit b027228

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

supereeg/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#deal with numpy import warnings due to cython (https://stackoverflow.com/questions/40845304/runtimewarning-numpy-dtype-size-changed-may-indicate-binary-incompatibility)
2+
import warnings
3+
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
4+
warnings.filterwarnings("ignore", message="numpy.ufunc size changed")
5+
16
from .brain import Brain
27
from .model import Model
38
from .nifti import Nifti

0 commit comments

Comments
 (0)