def asymmStr(self): unqueued = lib.unQueuedBins(self.datas[0], 5, [-1, 1], [-1, 1]) unqx = unqueued.ProjectionX() unqy = unqueued.ProjectionY() ay = tuple([100 * f for f in lib.asymmetry(unqx)]) ap = tuple([100 * f for f in lib.asymmetry(unqy)]) del unqueued, unqx, unqy return '; '.join([('ay: % .2f(%.2f)' % ay).rjust(8), ('ap: % .2f(%.2f)' % ap).rjust(8)])
def asymmStr(self): unqueued = lib.unQueuedBins(self.datas[0],5,[-1,1],[-1,1]) unqx = unqueued.ProjectionX() unqy = unqueued.ProjectionY() ay = tuple([100*f for f in lib.asymmetry(unqx)]) ap = tuple([100*f for f in lib.asymmetry(unqy)]) del unqueued, unqx, unqy return '; '.join([ ('ay: % .2f(%.2f)'%ay).rjust(8), ('ap: % .2f(%.2f)'%ap).rjust(8) ])
def unqueue(h, doIt): return lib.unQueuedBins(h, 5, [-1, 1], [-1, 1]) if doIt else h
def unqueue(h): return lib.unQueuedBins(h,5,[-1,1],[-1,1])
def unqueue(h, doIt): return lib.unQueuedBins(h,5,[-1,1],[-1,1]) if doIt else h