# Create a virtual environment with Python 3.10
python3.10 -m venv venv

# Activate the virtual environment
. ./venv/bin/activate

# Install the required dependencies
pip install -r requirements_lock.txt

# Download data
# check if git lfs is installed and run the appropriate script, otherwise run the curl script
if [ -x "$(command -v git-lfs)" ]; then
  . ./scripts/download_data_lfs.sh
else
  . ./scripts/download_data_curl.sh
fi

# Deactivate the virtual environment
deactivate