Installation

Step 1: Clone the Repository

Using Git:

git clone https://github.com/diedrichsenlab/MultiTaskBattery.git
cd MultiTaskBattery

Or use GitHub Desktop.

Step 2: Install Python (≥ 3.9)

This project requires Python 3.9 or later.

Option B: Using system Python

Ensure python –version reports 3.9 or higher.

Step 3: Create a Virtual Environment

python -m venv mtb-env
source mtb-env/bin/activate    # On Windows: mtb-env\Scripts\activate

Step 4: Install Dependencies

Make sure you upgrade pip first, then install the required packages from the requirements.txt file.

pip install --upgrade pip
pip install -r requirements.txt

Step 5: Add to Python Path

Add the repository to your Python path so that MultiTaskBattery can be imported from anywhere. Add the following line to your shell profile (e.g., ~/.bashrc, ~/.zshrc, or ~/.bash_profile):

export PYTHONPATH="/path/to/MultiTaskBattery:$PYTHONPATH"

On Windows, add the repository path to the PYTHONPATH environment variable via System Settings > Environment Variables.

Replace /path/to/MultiTaskBattery with the actual path to the cloned repository.