Package installation

Working on Google Colab

The following bash script can be used to install the NURI package as well as other dependent packages:

git clone mlpy
rm mlpy/mlpy/gsl/gsl.c mlpy/mlpy/liblinear/liblinear.c mlpy/mlpy/libsvm/libsvm.c mlpy/mlpy/adatron/adatron.c
apt-get install libgsl-dev
cd mlpy && python build_ext --include-dirs=/usr/include --rpath=/usr/lib && python install --single-version-externally-managed --root=/
rm -rf mlpy
pip install gwpy obspy matplotlib==3.1.3 scipy==1.5.0
ln -s /content/nuri/nuri $(python -c "import pip; print(pip.__path__[0].rstrip('/pip'))")/

MLPY package

This software uses the Machine Learning Python package , also known as mlpy , to do continuous wavelet transform with complex Morlet wavelets. This package has changed over time and the NURI software may very likely failed to get installed with more recent version of mlpy . Therefore, we have saved a working version in our Gitlab group which can be installed prior to installing NURI.

Note on SciPy cwt module

While the cwt module from SciPy could look like an easier option to do continuous wavelet transform, the module no longer handles complex wavelets as of version 0.18, which is why we are using mlpy .

PIP installation

Stable version

The NURI Python library can be very easily installed using the Python package manager PIP follows:

sudo pip install nuri

Development version

If you wish to work with the development version , this can be achieved as follows:

sudo pip install -I git+

Git installation

We may also want to work on the source code and implement some changes, adding new modules or improving parts of some exisiting functions. To this end, the easiest solution is to clode the Gitlab repository and add the directories in the system PATH. Here’s how to do it:

  1. Clone the git repository on your local machine.

    git clone
  2. Open your shell config file (e.g. .profile, .bash_profile, .bashrc) and add the following lines.

    export PATH=$PATH:/path/to/nuri/bin
    export PYTHONPATH=$PYTHONPATH:/path/to/nuri/

    The first line will add the location of the self-executing scripts into the system path. The second line includes the path to all the program’s modules into the import search path.