Repository to store code relating to Hierarchical Bayesian Model Validation project.
This project uses conda for package management and requires Python 3.11. The conda environment is named hbmv
. The setup process differs slightly depending on your operating system.
- Ensure you have Conda installed on your system. If not, download and install it from Anaconda's website.
-
Open Terminal.
-
Navigate to the project directory:
cd path/to/project
-
Make the setup script executable:
chmod +x setup.py
-
Run the setup script:
./setup.py
-
After the script completes, activate the environment:
conda activate hbmv
-
Open Command Prompt or PowerShell.
-
Navigate to the project directory:
cd path\to\project
-
Run the setup script:
bash -i setup.sh
-
After the script completes, activate the environment:
conda activate hbmv
If you encounter issues with the automated setup, you can follow these manual steps:
-
Create a new conda environment:
conda env create -f environment.yml
-
Activate the environment:
conda activate hbmv
-
Install IPython kernel:
python -m ipykernel install --user --name=hbmv
The project requires Python 3.11 and the following packages:
- numpy==2.1.1
- pandas==2.2.2
- scipy==1.14.1
- PyWavelets==1.7.0
- Pillow==10.4.0
- tqdm==4.66.5
- seaborn==0.13.2
- matplotlib (latest version)
- nibabel==5.2.1
- matlabengine==24.1.2 (installed via pip)
If you encounter any issues during setup:
-
Ensure Conda is up to date:
- For Mac/Linux:
conda update -n base -c defaults conda
- For Windows:
conda update -n base -c defaults conda
- For Mac/Linux:
-
Clear the Conda cache:
- For Mac/Linux:
conda clean -a
- For Windows:
conda clean -a
- For Mac/Linux:
-
If you're using Mac and encounter permission issues, try prefixing commands with
sudo
. -
On Windows, if you get "conda is not recognized as an internal or external command", you may need to add Conda to your system PATH or use the Anaconda Prompt instead of the regular Command Prompt.
-
If problems persist, try creating the environment manually and install packages one by one using
conda install
orpip install
.
For any other issues, please refer to the official documentation of the respective packages or seek assistance from the project maintainers.