Installation

The following instructions will allow you to install PyIRI.

Prerequisites

PyIRI uses the Python modules included in the list below. This module officially supports Python 3.10+.

  1. fortranformat

  2. matplotlib

  3. netCDF4

  4. numpy

  5. opt_einsum

  6. scipy

Installation Options

1. Clone the git repository

git clone https://github.com/victoriyaforsythe/PyIRI.git
  1. Install PyIRI: Change directories into the repository folder and build the project. There are a few ways you can do this:

    1. Install on the system (root privileges required):

      sudo pip install .
      
    2. Install at the user level:

      pip install --user .
      
    3. Install with the intent to change the code:

      pip install --user -e .
      

Optional Requirements

To run the test suite and build the documentation locally, you also need the following Python packages.

Attention

This module has the following additional requirements:

coveralls
flake8
flake8-docstrings
hacking>=1.0
pytest
pytest-cov

These can be installed as follows:

python -m pip install PyIRI[test]

Attention

This module has the following additional requirements:

extras-require
ipython
m2r2
numpydoc
pyproject-parser
sphinx<9.0
sphinx-rtd-theme>=1.2.2

These can be installed as follows:

python -m pip install PyIRI[doc]