

# TODO: axis (?)
def center_idx(array):
    '''
    Get cetral idx of iterable.
    
    Parameters
    ----------
    array: Iterable
       An iterable object
    
    '''
    return int(round(len(array)/2.))
