Download

pypho can be downloaded in different zip-formats from the Gitlab of the LRZ:

https://gitlab.lrz.de/hm-striegle/pypho

Alternatively, you can directly clone the repository:

git clone https://gitlab.lrz.de/hm-striegle/pypho.git


 

2019-12-01: V3.0

pypho for Python 3.x

2018-10-10: V1.0

New functions and fast multithreaded version of the fiber module.

2018-06-08: V0.5

Initial version

Installation

There is no installation required. Just download the repository and start the python code.

Some packages are required. Using Ubuntu the installation is quite easy:

sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install python-pyfftw
sudo apt-get install python-matplotlib

cfiber: Faster fiber simulation by multithreading

If you want to use the faster version of the fiber simulation, you have to compile it on your computer. Furthermore, you should install the latest version of FFTW enableling multithreading.

The following steps are recommended:

  1. Install python-fftw:
    sudo apt-get install libfftw3-dev libfftw3-doc

  2. Download the latest version of FFTW and decompress it:
    wget http://www.fftw.org/fftw-3.3.8.tar.gz
    tar -zxvf fftw-3.3.8.tar.gz
    cd fftw-3.3.8
    Visit http://www.fftw.org/download.html to check if there is a new version available.

  3. Install it:
    sudo ./configure --enable-threads --enable-openmp
    sudo make
    sudo make install
    Find out here how to optimize it on your computer: http://www.fftw.org/fftw3_doc/Installation-on-Unix.html#Installation-on-Unix

  4. Install cython:
    sudo apt-get install build-essential
    pip install Cython

  5. Build the fiber modell
    python speedup.py build_ext --inplace

  6. Test the code as described in the example