processing_components/visibility/operations.py
def convert_blockvisibility_to_stokes(vis):
    """Convert the polarisation frame data into Stokes parameters.

    Args:
    vis (obj): ARL visibility data.

    Returns:
    vis: Converted visibility data.
    """
    poldef = vis.polarisation_frame
    if poldef == PolarisationFrame('linear'):
        vis.data['vis'] = convert_linear_to_stokes(vis.data['vis'], polaxis=4)
        vis.polarisation_frame = PolarisationFrame('stokesIQUV')
    elif poldef == PolarisationFrame('circular'):
        vis.data['vis'] = convert_circular_to_stokes(vis.data['vis'], polaxis=4)
        vis.polarisation_frame = PolarisationFrame('stokesIQUV')
    return vis
Convert the polarisation frame data into Stokes parameters.

    Args:
    vis (obj): ARL visibility data.

    Returns:
    vis: Converted visibility data.
    
Convert the polarisation frame data into Stokes parameters.
Args:
vis (obj): ARL visibility data.

Converted visibility data.
Convert the polarisation frame data into Stokes parameters . Args : vis ( obj ) : ARL visibility data . Converted visibility data .
def convert_blockvisibility_to_stokes(vis):
    poldef = vis.polarisation_frame
    if poldef == PolarisationFrame('linear'):
        vis.data['vis'] = convert_linear_to_stokes(vis.data['vis'], polaxis=4)
        vis.polarisation_frame = PolarisationFrame('stokesIQUV')
    elif poldef == PolarisationFrame('circular'):
        vis.data['vis'] = convert_circular_to_stokes(vis.data['vis'], polaxis=4)
        vis.polarisation_frame = PolarisationFrame('stokesIQUV')
    return vis
def convert_blockvisibility_to_stokes ( vis ) : poldef = vis . polarisation_frame if poldef == PolarisationFrame ( 'linear' ) : vis . data [ 'vis' ] = convert_linear_to_stokes ( vis . data [ 'vis' ] , polaxis = 4 ) vis . polarisation_frame = PolarisationFrame ( 'stokesIQUV' ) elif poldef == PolarisationFrame ( 'circular' ) : vis . data [ 'vis' ] = convert_circular_to_stokes ( vis . data [ 'vis' ] , polaxis = 4 ) vis . polarisation_frame = PolarisationFrame ( 'stokesIQUV' ) return vis
Convert the polarisation frame data into Stokes parameters.
Convert the polarisation frame data into Stokes parameters .
"""Convert the polarisation frame data into Stokes parameters.

    Args:
    vis (obj): ARL visibility data.

    Returns:
    vis: Converted visibility data.
    """
vis