2. Installation

2.1. Stable release

To install Python polarization package py_pol, run this command in your terminal:

$ pip install py-pol

This is the preferred method to install Python polarization, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

Note: If py_pol is installed using Python 3.9+, pip may encounter an error trying to install h5py. A workaround of this problem is downloading the module hickle from its GitHub webpage. Then, the user may have to edit the requirements.txt file from hicle to remove a limitation on the upper version of h5py. Then, the user must install this modified version of hickle. Then, the user can install py_pol without any other known problem.

2.2. From sources

The sources for Python polarization can be downloaded from the Bitbucket repo.

You can either clone the public repository:

$ git clone git@bitbucket.org:optbrea/py_pol.git
$ git clone https://optbrea@bitbucket.org/optbrea/py_pol.git

Once you have a copy of the source, you can install it with:

$ python setup.py install