Pylarization
About
Pylarization is a Python module that aids in processing light polarization states. For given method of polarization description it can calculate all parameters of a polarization ellipse.
Installation
The following should do, as pylarization does not have any platform-specific dependancies.
pip install pylarization
Usage
Polarization Ellipse
PolarizationEllipse is the base class for all classes describing different methods of describing the state of polarization.
To create an instance it is necessary to supply light amplitudes along the X and Y axes and the phase difference between the amplitudes.
light = PolarizationEllipse(0.445, 0.89, 1.57)
Vectors
Jones Vector
light = JonesVector(0.445, 0.89j)
Stokes Vector
light = StokesVector(1, 0.6, 0, 0.8)
Matrices
Jonex Matrix
matrix_values = numpy.matrix([[1, 0], [0, -1j]])
light = JonesMatrix(matrix_values) * JonesVector(1, -1j)
light.vector
matrix([[ 1.+0.j],
[-1.+0.j]])
Mueller Matrix
matrix_values = numpy.matrix([[0.5, 0.5, 0, 0], [0.5, 0.5, 0, 0], [0 , 0, 0, 0], [0 , 0, 0, 0]])
light = MuellerMatrix(matrix_values) * StokesVector(1, 0, 0, 0)
light.vector
matrix([[0.5],
[0.5],
[0. ],
[0. ]])
Coherency Matrix
light = CoherencyMatrix(1, 0 ,0 ,0)
Sources
All sources can be found here
Metadata
Release files for pylarization 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylarization-0.2.1.tar.gz | 6.6 kB | Without provenance | Details for pylarization-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylarization-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for pylarization-0.2.1-py3-none-any.whl |
Total release size: 15.9 kB
Release files / pylarization-0.2.1.tar.gz
| Download URL | pylarization-0.2.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84e14001f9ab03cb941300ccb092a6cc69f80e4c96710b9dd2e365232c60ff22
|
|
BLAKE2b-256 checksum How to use checksums |
7e5080a6b33ab503ee1f26e180a4045534214bfc45f3e52623dcfc6b8f7494bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
|
Release files / pylarization-0.2.1-py3-none-any.whl
| Download URL | pylarization-0.2.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2205beeb2e65ffeebb49dacc247026f5429ed4f615da81d9b21d233a6195787
|
|
BLAKE2b-256 checksum How to use checksums |
f935e212e42f4056a1e32e5b514b7b0bc2778109516688d3c33ec7bad93c137f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
|
Security for pylarization 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.