Skip to content

Downloading PyTolosa

First, download the git repository to get the post-treatment program:

Terminal window
cd 'your_py_dir'
git clone https://github.com/TolosaProject/PyTolosa.git

To be able to run PyTolosa and use its modules anywhere, add the path to the package in the PYTHONPATH environment variable, which will augment the default module search paths used by the Python interpreter.

Add the following line to your ~/.bashrc (or ~/.zshrc for zsh users):

Terminal window
export PYTHONPATH=$PYTHONPATH:/your/path/to/PyTolosa

Replace /your/path/to/PyTolosa with the actual path where you cloned the repository.

Your path should end with /PyTolosa, where the pytolosa package is located.

Terminal window
# For bash
source ~/.bashrc
# For zsh
source ~/.zshrc

If you do not wish to add permanently this PYTHONPATH, you can:

  1. Execute the command line each time before running PyTolosa:

    Terminal window
    export PYTHONPATH=$PYTHONPATH:/your/path/to/PyTolosa
  2. Or place yourself in the /PyTolosa directory to run the post-treatment tool:

    Terminal window
    cd /your/path/to/PyTolosa
    python3 -m pytolosa [options]

After cloning, the PyTolosa directory contains:

PyTolosa/
├── pytolosa/ # Main package directory
│ ├── __init__.py
│ ├── __main__.py # Entry point
│ ├── post1D.py # 1D post-processing
│ ├── post2D.py # 2D post-processing
│ └── utils.py # Utility functions
├── README.md
├── LICENSE
└── examples/ # Example files

Verify the installation by checking the help:

Terminal window
python3 -m pytolosa -h

You should see the help message with all available options.