workflows/serial/imaging/imaging_serial.py
def deconvolve_channel_list_serial_workflow(dirty_list, psf_list, model_imagelist, subimages, **kwargs):
    """Create a graph for deconvolution by channels, adding to the model

    Does deconvolution channel by channel.
    :param subimages:
    :param dirty_list:
    :param psf_list: Must be the size of a facet
    :param model_imagelist: Current model
    :param kwargs: Parameters for functions in components
    :return:
    """
    
    def deconvolve_subimage(dirty, psf):
        assert isinstance(dirty, Image)
        assert isinstance(psf, Image)
        comp = deconvolve_cube(dirty, psf, **kwargs)
        return comp[0]
    
    def add_model(sum_model, model):
        assert isinstance(output, Image)
        assert isinstance(model, Image)
        sum_model.data += model.data
        return sum_model
    
    output = create_empty_image_like(model_imagelist)
    dirty_lists = image_scatter_channels(dirty_list[0],
                                         subimages=subimages)
    results = [deconvolve_subimage(dirty_list, psf_list[0])
               for dirty_list in dirty_lists]
    result = image_gather_channels(results, output, subimages=subimages)
    return add_model(result, model_imagelist)
Create a graph for deconvolution by channels, adding to the model

    Does deconvolution channel by channel.
    :param subimages:
    :param dirty_list:
    :param psf_list: Must be the size of a facet
    :param model_imagelist: Current model
    :param kwargs: Parameters for functions in components
    :return:
    
Create a graph for deconvolution by channels, adding to the model
Does deconvolution channel by channel.
Create a graph for deconvolution by channels adding to the model Does deconvolution channel by channel .
def deconvolve_channel_list_serial_workflow(dirty_list, psf_list, model_imagelist, subimages, **kwargs):
    def deconvolve_subimage(dirty, psf):
        assert isinstance(dirty, Image)
        assert isinstance(psf, Image)
        comp = deconvolve_cube(dirty, psf, **kwargs)
        return comp[0]
    def add_model(sum_model, model):
        assert isinstance(output, Image)
        assert isinstance(model, Image)
        sum_model.data += model.data
        return sum_model
    output = create_empty_image_like(model_imagelist)
    dirty_lists = image_scatter_channels(dirty_list[0],
                                         subimages=subimages)
    results = [deconvolve_subimage(dirty_list, psf_list[0])
               for dirty_list in dirty_lists]
    result = image_gather_channels(results, output, subimages=subimages)
    return add_model(result, model_imagelist)
def deconvolve_channel_list_serial_workflow ( dirty_list , psf_list , model_imagelist , subimages , ** kwargs ) : def deconvolve_subimage ( dirty , psf ) : assert isinstance ( dirty , Image ) assert isinstance ( psf , Image ) comp = deconvolve_cube ( dirty , psf , ** kwargs ) return comp [ 0 ] def add_model ( sum_model , model ) : assert isinstance ( output , Image ) assert isinstance ( model , Image ) sum_model . data += model . data return sum_model output = create_empty_image_like ( model_imagelist ) dirty_lists = image_scatter_channels ( dirty_list [ 0 ] , subimages = subimages ) results = [ deconvolve_subimage ( dirty_list , psf_list [ 0 ] ) for dirty_list in dirty_lists ] result = image_gather_channels ( results , output , subimages = subimages ) return add_model ( result , model_imagelist )
Create a graph for deconvolution by channels, adding to the model
Does deconvolution channel by channel.
Create a graph for deconvolution by channels adding to the model Does deconvolution channel by channel .
"""Create a graph for deconvolution by channels, adding to the model

    Does deconvolution channel by channel.
    :param subimages:
    :param dirty_list:
    :param psf_list: Must be the size of a facet
    :param model_imagelist: Current model
    :param kwargs: Parameters for functions in components
    :return:
    """
None
dirty_list
None
psf_list
Must be the size of a facet
Must be the size of a facet
model_imagelist
None
subimages
None
kwargs
Parameters for functions in components
Parameters for functions in components