def _verbosity_filter(index, verbose):
 if (not verbose):
  return True
 elif (verbose > 10):
  return False
 if (index == 0):
  return False
 verbose = (0.5 * ((11 - verbose) ** 2))
 scale = sqrt((index / verbose))
 next_scale = sqrt(((index + 1) / verbose))
 return (int(next_scale) == int(scale))

def _verbosity_filter ( index , verbose ) : if ( not verbose ) : return True elif ( verbose > 10 ) : return False if ( index == 0 ) : return False verbose = ( 0.5 * ( ( 11 - verbose ) ** 2 ) ) scale = sqrt ( ( index / verbose ) ) next_scale = sqrt ( ( ( index + 1 ) / verbose ) ) return ( int ( next_scale ) == int ( scale ) )
returns false for indices increasingly apart .