data_models/polarisation.py
def correlate_polarisation(rec_frame: ReceptorFrame):
    """ Gives the polarisation frame corresponding to a receptor frame

    :param rec_frame: Receptor frame
    :return: PolarisationFrame
    """
    if rec_frame == ReceptorFrame("circular"):
        correlation = PolarisationFrame("circular")
    elif rec_frame == ReceptorFrame("linear"):
        correlation = PolarisationFrame("linear")
    elif rec_frame == ReceptorFrame("stokesI"):
        correlation = PolarisationFrame("stokesI")
    else:
        raise ValueError("Unknown receptor frame %s for correlation" % rec_frame)

    return correlation
 Gives the polarisation frame corresponding to a receptor frame

    :param rec_frame: Receptor frame
    :return: PolarisationFrame
    
Gives the polarisation frame corresponding to a receptor frame
Gives the polarisation frame corresponding to a receptor frame
def correlate_polarisation(rec_frame: ReceptorFrame):
    if rec_frame == ReceptorFrame("circular"):
        correlation = PolarisationFrame("circular")
    elif rec_frame == ReceptorFrame("linear"):
        correlation = PolarisationFrame("linear")
    elif rec_frame == ReceptorFrame("stokesI"):
        correlation = PolarisationFrame("stokesI")
    else:
        raise ValueError("Unknown receptor frame %s for correlation" % rec_frame)
    return correlation
def correlate_polarisation ( rec_frame : ReceptorFrame ) : if rec_frame == ReceptorFrame ( "circular" ) : correlation = PolarisationFrame ( "circular" ) elif rec_frame == ReceptorFrame ( "linear" ) : correlation = PolarisationFrame ( "linear" ) elif rec_frame == ReceptorFrame ( "stokesI" ) : correlation = PolarisationFrame ( "stokesI" ) else : raise ValueError ( "Unknown receptor frame %s for correlation" % rec_frame ) return correlation
Gives the polarisation frame corresponding to a receptor frame
Gives the polarisation frame corresponding to a receptor frame
""" Gives the polarisation frame corresponding to a receptor frame

    :param rec_frame: Receptor frame
    :return: PolarisationFrame
    """
None
rec_frame
ReceptorFrame
None