def omni_normtest(resids, axis=0):
 resids = np.asarray(resids)
 n = resids.shape[axis]
 if (n < 8):
  from warnings import warn
  warn(('omni_normtest is not valid with less than 8 observations; %i samples were given.' % int(n)), ValueWarning)
  return (np.nan, np.nan)
 return stats.normaltest(resids, axis=axis)

def omni_normtest ( resids , axis = 0 ) : resids = np . asarray ( resids ) n = resids . shape [ axis ] if ( n < 8 ) : from warnings import warn warn ( ( 'omni_normtest is not valid with less than 8 observations; %i samples were given.' % int ( n ) ) , ValueWarning ) return ( np . nan , np . nan ) return stats . normaltest ( resids , axis = axis )
omnibus test for normality parameters resid : array-like axis : int .