workflows/arlexecute/skymodel/skymodel_arlexecute.py
def predict_skymodel_list_compsonly_arlexecute_workflow(obsvis, skymodel_list, docal=False, **kwargs):
    """Predict from a list of component-only skymodels, producing one visibility per skymodel
    
    This is an optimised version of predict_skymodel_list_arlexecute_workflow, working on block
    visibilities and ignoring the image in a skymodel

    :param obsvis: "Observed Block Visibility"
    :param skymodel_list: skymodel list
    :param context: Type of processing e.g. 2d, wstack, timeslice or facets
    :param docal: Apply calibration table in skymodel
    :param kwargs: Parameters for functions in components
    :return: List of vis_lists
   """
    
    def ft_cal_sm(obv, sm):
        assert isinstance(obv, BlockVisibility), obv
        bv = copy_visibility(obv)
        
        bv.data['vis'][...] = 0.0 + 0.0j
        
        assert len(sm.components) > 0
            
        if isinstance(sm.mask, Image):
            comps = copy_skycomponent(sm.components)
            comps = apply_beam_to_skycomponent(comps, sm.mask)
            bv = predict_skycomponent_visibility(bv, comps)
        else:
            bv = predict_skycomponent_visibility(bv, sm.components)
        
        if docal and isinstance(sm.gaintable, GainTable):
            bv = apply_gaintable(bv, sm.gaintable, inverse=True)
            
        return bv

    return [arlexecute.execute(ft_cal_sm, nout=1)(obsvis, sm) for sm in skymodel_list]
Predict from a list of component-only skymodels, producing one visibility per skymodel
    
    This is an optimised version of predict_skymodel_list_arlexecute_workflow, working on block
    visibilities and ignoring the image in a skymodel

    :param obsvis: "Observed Block Visibility"
    :param skymodel_list: skymodel list
    :param context: Type of processing e.g. 2d, wstack, timeslice or facets
    :param docal: Apply calibration table in skymodel
    :param kwargs: Parameters for functions in components
    :return: List of vis_lists
   
Predict from a list of component-only skymodels, producing one visibility per skymodel
This is an optimised version of predict_skymodel_list_arlexecute_workflow, working on block
visibilities and ignoring the image in a skymodel
Predict from a list of component - only skymodels producing one visibility per skymodel This is an optimised version of predict_skymodel_list_arlexecute_workflow working on block visibilities and ignoring the image in a skymodel
def predict_skymodel_list_compsonly_arlexecute_workflow(obsvis, skymodel_list, docal=False, **kwargs):
    def ft_cal_sm(obv, sm):
        assert isinstance(obv, BlockVisibility), obv
        bv = copy_visibility(obv)
        bv.data['vis'][...] = 0.0 + 0.0j
        assert len(sm.components) > 0
        if isinstance(sm.mask, Image):
            comps = copy_skycomponent(sm.components)
            comps = apply_beam_to_skycomponent(comps, sm.mask)
            bv = predict_skycomponent_visibility(bv, comps)
        else:
            bv = predict_skycomponent_visibility(bv, sm.components)
        if docal and isinstance(sm.gaintable, GainTable):
            bv = apply_gaintable(bv, sm.gaintable, inverse=True)
        return bv
    return [arlexecute.execute(ft_cal_sm, nout=1)(obsvis, sm) for sm in skymodel_list]
def predict_skymodel_list_compsonly_arlexecute_workflow ( obsvis , skymodel_list , docal = False , ** kwargs ) : def ft_cal_sm ( obv , sm ) : assert isinstance ( obv , BlockVisibility ) , obv bv = copy_visibility ( obv ) bv . data [ 'vis' ] [ ... ] = 0.0 + 0.0j assert len ( sm . components ) > 0 if isinstance ( sm . mask , Image ) : comps = copy_skycomponent ( sm . components ) comps = apply_beam_to_skycomponent ( comps , sm . mask ) bv = predict_skycomponent_visibility ( bv , comps ) else : bv = predict_skycomponent_visibility ( bv , sm . components ) if docal and isinstance ( sm . gaintable , GainTable ) : bv = apply_gaintable ( bv , sm . gaintable , inverse = True ) return bv return [ arlexecute . execute ( ft_cal_sm , nout = 1 ) ( obsvis , sm ) for sm in skymodel_list ]
Predict from a list of component-only skymodels, producing one visibility per skymodel
This is an optimised version of predict_skymodel_list_arlexecute_workflow, working on block
visibilities and ignoring the image in a skymodel
Predict from a list of component - only skymodels producing one visibility per skymodel This is an optimised version of predict_skymodel_list_arlexecute_workflow working on block visibilities and ignoring the image in a skymodel
"""Predict from a list of component-only skymodels, producing one visibility per skymodel
    
    This is an optimised version of predict_skymodel_list_arlexecute_workflow, working on block
    visibilities and ignoring the image in a skymodel

    :param obsvis: "Observed Block Visibility"
    :param skymodel_list: skymodel list
    :param context: Type of processing e.g. 2d, wstack, timeslice or facets
    :param docal: Apply calibration table in skymodel
    :param kwargs: Parameters for functions in components
    :return: List of vis_lists
   """
List of vis_lists
List of vis_lists
obsvis
"Observed Block Visibility"
" Observed Block Visibility "
skymodel_list
None
docal
Apply calibration table in skymodel
Apply calibration table in skymodel
context
Type of processing e.g. 2d, wstack, timeslice or facets
Type of processing e . g . 2d wstack timeslice or facets
kwargs
Parameters for functions in components
Parameters for functions in components