processing_components/visibility/gather_scatter.py
def visibility_scatter(vis: Visibility, vis_iter, vis_slices=1) -> List[Visibility]:
    """Scatter a visibility into a list of subvisibilities
    
    If vis_iter is over time then the type of the outvisibilities will be the same as inout
    If vis_iter is over w then the type of the output visibilities will always be Visibility

    :param vis: Visibility
    :param vis_iter: visibility iterator
    :param vis_slices: Number of slices to be made
    :return: list of subvisibilitys
    """
    
    assert vis is not None
    
    if vis_slices == 1:
        return [vis]
    
    visibility_list = list()
    for i, rows in enumerate(vis_iter(vis, vis_slices=vis_slices)):
        subvis = create_visibility_from_rows(vis, rows)
        visibility_list.append(subvis)
    
    return visibility_list
Scatter a visibility into a list of subvisibilities
    
    If vis_iter is over time then the type of the outvisibilities will be the same as inout
    If vis_iter is over w then the type of the output visibilities will always be Visibility

    :param vis: Visibility
    :param vis_iter: visibility iterator
    :param vis_slices: Number of slices to be made
    :return: list of subvisibilitys
    
Scatter a visibility into a list of subvisibilities
If vis_iter is over time then the type of the outvisibilities will be the same as inout
If vis_iter is over w then the type of the output visibilities will always be Visibility
Scatter a visibility into a list of subvisibilities If vis_iter is over time then the type of the outvisibilities will be the same as inout If vis_iter is over w then the type of the output visibilities will always be Visibility
def visibility_scatter(vis: Visibility, vis_iter, vis_slices=1) -> List[Visibility]:
    assert vis is not None
    if vis_slices == 1:
        return [vis]
    visibility_list = list()
    for i, rows in enumerate(vis_iter(vis, vis_slices=vis_slices)):
        subvis = create_visibility_from_rows(vis, rows)
        visibility_list.append(subvis)
    return visibility_list
def visibility_scatter ( vis : Visibility , vis_iter , vis_slices = 1 ) -> List [ Visibility ] : assert vis is not None if vis_slices == 1 : return [ vis ] visibility_list = list ( ) for i , rows in enumerate ( vis_iter ( vis , vis_slices = vis_slices ) ) : subvis = create_visibility_from_rows ( vis , rows ) visibility_list . append ( subvis ) return visibility_list
Scatter a visibility into a list of subvisibilities
If vis_iter is over time then the type of the outvisibilities will be the same as inout
If vis_iter is over w then the type of the output visibilities will always be Visibility
Scatter a visibility into a list of subvisibilities If vis_iter is over time then the type of the outvisibilities will be the same as inout If vis_iter is over w then the type of the output visibilities will always be Visibility
"""Scatter a visibility into a list of subvisibilities
    
    If vis_iter is over time then the type of the outvisibilities will be the same as inout
    If vis_iter is over w then the type of the output visibilities will always be Visibility

    :param vis: Visibility
    :param vis_iter: visibility iterator
    :param vis_slices: Number of slices to be made
    :return: list of subvisibilitys
    """
list of subvisibilitys
list of subvisibilitys
vis
Visibility
None
vis_iter
None
vis_slices
Number of slices to be made
Number of slices to be made