(count)
return out
Return the output array shape given the count array created by getStartCountStride
Return the output array shape given the count array created by getStartCountStride
Return the output array shape given the count array created by getStartCountStride
def _out_array_shape(count):
    """Return the output array shape given the count array created by getStartCountStride"""

    s = list(count.shape[:-1])
    out = []

    for i, n in enumerate(s):
        if n == 1:
            c = count[..., i].ravel()[0] # All elements should be identical.
            out.append(c)
        else:
            out.append(n)
    return out
def _out_array_shape ( count ) : s = list ( count . shape [ : - 1 ] ) out = [ ] for i , n in enumerate ( s ) : if n == 1 : c = count [ ... , i ] . ravel ( ) [ 0 ] # All elements should be identical. out . append ( c ) else : out . append ( n ) return out