def ignore_nanwarnings():
 return WarningContext((('ignore',), {'category': RuntimeWarning, 'module': 'numpy.lib.nanfunctions'}))

def ignore_nanwarnings ( ) : return WarningContext ( ( ( 'ignore' , ) , { 'category' : RuntimeWarning , 'module' : 'numpy.lib.nanfunctions' } ) )
helper for building a warningcontext that ignores warnings from numpys nanfunctions .