deprecated_code/workflows/mpi/imaging/imaging_mpi.py
def residual_list_mpi_workflow(vis, model_imagelist, context='2d', gcfcf=None,comm=MPI.COMM_WORLD, **kwargs):
    """ Create a graph to calculate residual image using w stacking and faceting

    :param context:
    :param vis: rank0
    :param model_imagelist: Model used to determine image parameters rank0
    :param gcfcg: tuple containing grid correction and convolution function
    :param kwargs: Parameters for functions in components
    :return:
    """
    rank = comm.Get_rank()
    size = comm.Get_size()
    model_vis = zero_list_mpi_workflow(vis)
    log.info('%d: In residual_list_mpi_workflow vis len %d model_imagelist len %d model_vis len %d'
          %(rank,len(vis),len(model_imagelist),len(model_vis)))

    model_vis = predict_list_mpi_workflow(model_vis, model_imagelist,
                                          context=context,gcfcf=gcfcf, **kwargs)
    residual_vis = subtract_list_mpi_workflow(vis, model_vis)
    return invert_list_mpi_workflow(residual_vis, model_imagelist, dopsf=False,
                                    normalize=True,
                                    context=context,gcfcf=gcfcf,
                                       **kwargs)
 Create a graph to calculate residual image using w stacking and faceting

    :param context:
    :param vis: rank0
    :param model_imagelist: Model used to determine image parameters rank0
    :param gcfcg: tuple containing grid correction and convolution function
    :param kwargs: Parameters for functions in components
    :return:
    
Create a graph to calculate residual image using w stacking and faceting
Create a graph to calculate residual image using w stacking and faceting
def residual_list_mpi_workflow(vis, model_imagelist, context='2d', gcfcf=None,comm=MPI.COMM_WORLD, **kwargs):
    rank = comm.Get_rank()
    size = comm.Get_size()
    model_vis = zero_list_mpi_workflow(vis)
    log.info('%d: In residual_list_mpi_workflow vis len %d model_imagelist len %d model_vis len %d'
          %(rank,len(vis),len(model_imagelist),len(model_vis)))
    model_vis = predict_list_mpi_workflow(model_vis, model_imagelist,
                                          context=context,gcfcf=gcfcf, **kwargs)
    residual_vis = subtract_list_mpi_workflow(vis, model_vis)
    return invert_list_mpi_workflow(residual_vis, model_imagelist, dopsf=False,
                                    normalize=True,
                                    context=context,gcfcf=gcfcf,
                                       **kwargs)
def residual_list_mpi_workflow ( vis , model_imagelist , context = '2d' , gcfcf = None , comm = MPI . COMM_WORLD , ** kwargs ) : rank = comm . Get_rank ( ) size = comm . Get_size ( ) model_vis = zero_list_mpi_workflow ( vis ) log . info ( '%d: In residual_list_mpi_workflow vis len %d model_imagelist len %d model_vis len %d' % ( rank , len ( vis ) , len ( model_imagelist ) , len ( model_vis ) ) ) model_vis = predict_list_mpi_workflow ( model_vis , model_imagelist , context = context , gcfcf = gcfcf , ** kwargs ) residual_vis = subtract_list_mpi_workflow ( vis , model_vis ) return invert_list_mpi_workflow ( residual_vis , model_imagelist , dopsf = False , normalize = True , context = context , gcfcf = gcfcf , ** kwargs )
Create a graph to calculate residual image using w stacking and faceting
Create a graph to calculate residual image using w stacking and faceting
""" Create a graph to calculate residual image using w stacking and faceting

    :param context:
    :param vis: rank0
    :param model_imagelist: Model used to determine image parameters rank0
    :param gcfcg: tuple containing grid correction and convolution function
    :param kwargs: Parameters for functions in components
    :return:
    """
None
vis
None
model_imagelist
Model used to determine image parameters rank0
Model used to determine image parameters rank0
context
None
gcfcf
comm
gcfcg
tuple containing grid correction and convolution function
tuple containing grid correction and convolution function
kwargs
Parameters for functions in components
Parameters for functions in components