Downloading PyTolosa
Downloading PyTolosa
Section titled “Downloading PyTolosa”Git Repository
Section titled “Git Repository”First, download the git repository to get the post-treatment program:
cd 'your_py_dir'git clone https://github.com/TolosaProject/PyTolosa.gitSetting up PYTHONPATH
Section titled “Setting up PYTHONPATH”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.
Permanent Setup
Section titled “Permanent Setup”Add the following line to your ~/.bashrc (or ~/.zshrc for zsh users):
export PYTHONPATH=$PYTHONPATH:/your/path/to/PyTolosaReplace /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.
Reload your shell configuration
Section titled “Reload your shell configuration”# For bashsource ~/.bashrc
# For zshsource ~/.zshrcTemporary Setup
Section titled “Temporary Setup”If you do not wish to add permanently this PYTHONPATH, you can:
-
Execute the command line each time before running PyTolosa:
Terminal window export PYTHONPATH=$PYTHONPATH:/your/path/to/PyTolosa -
Or place yourself in the
/PyTolosadirectory to run the post-treatment tool:Terminal window cd /your/path/to/PyTolosapython3 -m pytolosa [options]
Directory Structure
Section titled “Directory Structure”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 filesVerification
Section titled “Verification”Verify the installation by checking the help:
python3 -m pytolosa -hYou should see the help message with all available options.
Next Steps
Section titled “Next Steps”- Features - Learn about PyTolosa capabilities
- Running PyTolosa - Usage guide and examples