2.1. Stable release¶
To install Python diffraction and interference, run this command in your terminal:
# Linux: $ pip3 install diffractio # Windows: $ pip install diffractio
This is the preferred method to install Python diffraction and interference, as it will always install the most recent stable release.
2.2. Additional packages¶
Diffractio uses also the following non-standard modules:
In some schemes, the following modules are also required:
- mayavi, traits, tvtk
They should previously be installed before Diffractio module.
2.3. From sources¶
The sources for Python diffraction and interference can be downloaded from the Bitbucket repo.
You can either clone the public repository:
$ git clone email@example.com:optbrea/diffractio.git $ git clone https://firstname.lastname@example.org/optbrea/diffractio.git
Once you have a copy of the source, you can install it with:
# Linux: $ python3 setup.py install # Windows: $ python setup.py install