Installation
Python environment
You will need to install Python (>=3.12) on your system.
Download the framework
Follow these steps to install and configure Zalmoxis:
-
Create a virtual environment
python -m venv .venv source .venv/bin/activate -
Clone the repository and install dependencies
This installs Zalmoxis in editable mode, so local changes to the code are immediately reflected.git clone https://github.com/FormingWorlds/Zalmoxis.git cd Zalmoxis pip install -e . -
Set environment variable
Zalmoxis requires the
ZALMOXIS_ROOTenvironment variable to point to the base directory:export ZALMOXIS_ROOT=$(pwd)To make
ZALMOXIS_ROOTavailable across sessions, add the above line to your shell profile file:- For
bashusers:
echo "export ZALMOXIS_ROOT=$(pwd)" >> ~/.bashrc- For
zshusers:
echo "export ZALMOXIS_ROOT=$(pwd)" >> ~/.zshrcAfterwards, reload your profile with:
- For
bashusers:
source ~/.bashrc- For
zshusers:
source ~/.zshrc - For
-
Download necessary input/output files
Run the provided script to download required model files:
This will create thebash src/get_zalmoxis.shdata/folder for configuration files and theoutput_files/folder for model results.