Polarization Object
- class perceval.utils.polarization.Polarization(v)
Polarization class
This class is defined values used by polarization annotations P
- Parameters:
v (
Union
[str
,Any
,Tuple
[Any
,Any
]]) – a string ([HVADLR]
), a single angle or a pair of angle definition either symbolic or numeric. Angles should be in \([0,\pi]\) range.- Raise:
ValueError if the parameters are out of range, or invalid
- static parse(s)
Parse a polarization value string
- Parameters:
s (
str
) – should match regex:^([HVADLR]|\(theta,phi\)|theta$
- Return type:
- Returns:
a Polarization instance
- Raise:
ValueError if the value cannot be parsed, or if parameters are invalid
- project_eh_ev(use_symbolic=False)
Build Jones vector corresponding to the current instance
- Return type:
Tuple
[Any
,Any
]- Returns:
a pair of numeric or symbolic expressions