def atmax(a,upperlimit,dimension=None,inclusive=1):
     if inclusive:         upperfcn = N.less
     else:               upperfcn = N.less_equal
     if dimension == None:
         a = N.ravel(a)
         dimension = 0
     if upperlimit == None:
         upperlimit = N.maximum.reduce(N.ravel(a))+1
     smallest = N.minimum.reduce(N.ravel(a))
     ta = N.where(upperfcn(a,upperlimit),a,smallest)
     return N.maximum.reduce(ta,dimension)
Wrapper utility that returns a test flavor.
dataset/ETHPy150Open radlab/sparrow/src/main/python/third_party/stats.py/atmax--crossover with--dataset/ETHPy150Open openstack/neutron/neutron/tests/tempest/api/base.py/BaseAdminNetworkTest.create_flavor