This guide explains how to pull the latest class scripts and run the Python version of the resting-state simulation on a Mac.
Recommended Python version: 3.10 or newer.
cd /path/to/your/local/repo/teach/psych221If you are already in the repo, you can check with:
pwdgit pullpython3 -m venv .venvActivate it:
source .venv/bin/activateYou should now see (.venv) at the start of your Terminal prompt.
python -m pip install --upgrade pip
pip install -r requirements.txtThe requirements.txt file in this folder contains:
- numpy
- scipy
- matplotlib
Notes:
- The first run may take a bit longer (for example, Matplotlib font cache setup).
- On later runs, this step is usually fast.
From the teach/psych221 folder:
python restingState.pyThe script will:
- Print correlation and kurtosis values to the Terminal
- Open figures showing signal scrubbing and ICA spatial examples
cd /path/to/your/local/repo/teach/psych221
source .venv/bin/activate
git pull
python restingState.pyTry:
python3 restingState.pyMake sure your environment is activated and reinstall:
source .venv/bin/activate
pip install -r requirements.txtIf using a remote session, run locally on your laptop desktop session.
restingState.py uses a fixed random seed, so outputs are reproducible across runs on the same software stack.