PyTolosa System Requirements
System Requirements
Section titled “System Requirements”Environment
Section titled “Environment”The following environment variable needs to be added to your ~/.bash_profile, or before executing PyTolosa:
export QT_QPA_PLATFORM='offscreen'Python Version
Section titled “Python Version”PyTolosa requires Python 3.7 or later.
Required Python Packages
Section titled “Required Python Packages”The Python libraries and packages needed to use PyTolosa are:
Core Dependencies
Section titled “Core Dependencies”- Matplotlib - Creates static, animated, and interactive visualizations in Python
- NumPy - Fundamental package for scientific computing in Python
- SciPy - Collection of open source software for scientific computing in Python
- CSV - Implements classes to read and write tabular data in CSV format
Optional Dependencies
Section titled “Optional Dependencies”- mpi4py - Provides bindings of the Message Passing Interface (MPI) standard, allowing any Python program to exploit multiple processors (for parallel post-processing)
- argparse - Writes user-friendly command-line interfaces
- termcolor - ANSII Color formatting for output in terminal
Animation Tools
Section titled “Animation Tools”You should also install FFMPEG to create animations of post-treated results.
Installation
Section titled “Installation”Using pip
Section titled “Using pip”# Install core dependenciespip install matplotlib numpy scipy
# Install optional dependencies for parallel processingpip install mpi4py
# Install termcolor for colored terminal outputpip install termcolorUsing conda
Section titled “Using conda”# Create a new environmentconda create -n pytolosa python=3.9
# Activate the environmentconda activate pytolosa
# Install dependenciesconda install matplotlib numpy scipy mpi4py
# Install FFMPEGconda install ffmpegFFMPEG Installation
Section titled “FFMPEG Installation”Linux (Ubuntu/Debian)
Section titled “Linux (Ubuntu/Debian)”sudo apt-get updatesudo apt-get install ffmpegbrew install ffmpegVerify Installation
Section titled “Verify Installation”ffmpeg -versionVerification
Section titled “Verification”To verify your Python environment:
python3 -c "import matplotlib, numpy, scipy; print('All core packages installed!')"For MPI support:
python3 -c "import mpi4py; print('MPI support available!')"Next Steps
Section titled “Next Steps”- Downloading - Get the PyTolosa source code
- Running PyTolosa - Usage examples