def isfinite(arr):
 return (np.isfinite(np.max(arr)) and np.isfinite(np.min(arr)))

def isfinite ( arr ) : return ( np . isfinite ( np . max ( arr ) ) and np . isfinite ( np . min ( arr ) ) )
test whether a numpy .