workflows/serial/imaging/imaging_serial.py
def restore_list_serial_workflow(model_imagelist, psf_imagelist, residual_imagelist=None, **kwargs):
    """ Create a graph to calculate the restored image

    :param model_imagelist: Model list
    :param psf_imagelist: PSF list
    :param residual_imagelist: Residual list
    :param kwargs: Parameters for functions in components
    :return:
    """
    
    if residual_imagelist is None:
        residual_imagelist = []
    
    if len(residual_imagelist) > 0:
        return [restore_cube(model_imagelist[i], psf_imagelist[i][0],
                             residual_imagelist[i][0], **kwargs)
                for i, _ in enumerate(model_imagelist)]
    else:
        return [restore_cube(model_imagelist[i], psf_imagelist[i][0], **kwargs)
                for i, _ in enumerate(model_imagelist)]
 Create a graph to calculate the restored image

    :param model_imagelist: Model list
    :param psf_imagelist: PSF list
    :param residual_imagelist: Residual list
    :param kwargs: Parameters for functions in components
    :return:
    
Create a graph to calculate the restored image
Create a graph to calculate the restored image
def restore_list_serial_workflow(model_imagelist, psf_imagelist, residual_imagelist=None, **kwargs):
    if residual_imagelist is None:
        residual_imagelist = []
    if len(residual_imagelist) > 0:
        return [restore_cube(model_imagelist[i], psf_imagelist[i][0],
                             residual_imagelist[i][0], **kwargs)
                for i, _ in enumerate(model_imagelist)]
    else:
        return [restore_cube(model_imagelist[i], psf_imagelist[i][0], **kwargs)
                for i, _ in enumerate(model_imagelist)]
def restore_list_serial_workflow ( model_imagelist , psf_imagelist , residual_imagelist = None , ** kwargs ) : if residual_imagelist is None : residual_imagelist = [ ] if len ( residual_imagelist ) > 0 : return [ restore_cube ( model_imagelist [ i ] , psf_imagelist [ i ] [ 0 ] , residual_imagelist [ i ] [ 0 ] , ** kwargs ) for i , _ in enumerate ( model_imagelist ) ] else : return [ restore_cube ( model_imagelist [ i ] , psf_imagelist [ i ] [ 0 ] , ** kwargs ) for i , _ in enumerate ( model_imagelist ) ]
Create a graph to calculate the restored image
Create a graph to calculate the restored image
""" Create a graph to calculate the restored image

    :param model_imagelist: Model list
    :param psf_imagelist: PSF list
    :param residual_imagelist: Residual list
    :param kwargs: Parameters for functions in components
    :return:
    """
None
model_imagelist
None
psf_imagelist
None
residual_imagelist
None
kwargs
Parameters for functions in components
Parameters for functions in components