Installation
Prerequisites
Python 3.10
Repository
To clone the repository from GitHub to a directory, run the following command:
$ git clone --recurse-submodules https://github.com/VeraKowalczuk/acept.git
On UNIX machines (Linux or macOS)
Use the convenience setup script setup.sh for this project for UNIX based systems.
The script …
Creates a new virtual environment (venv) for the acept project
Activates the virtual environment
Checks the python version. This should return
.../venv/bin/pythonInstalls the project requirements
Fetches additional dependencies and installs them:
The git submodule UrbanHeatPro in
deps/UrbanHeatPro
To run it, execute the following commands inside root directory of the repository:
$ ./setup.sh
Then activate the virtual environment:
$ source venv/bin/activate
On Windows machines
It is recommended to use the Windows Subsystem for Linux (WSL). Then the convenience script can also be used. Alternatively, follow the usual procedure on Windows to …
Navigate to the root directory of the cloned git repository of the ACEPT project
Create a new virtual environment
$ python -m venv venv
Activate the virtual environment
$ source venv/Scripts/activate
Install the project requirements
$ pip install -e .
Fetch the additional dependencies or update the submodules
$ git submodule update --init --recursive
Install the additional dependencies from the submodules
$ pip install -e deps/UrbanHeatPro
Using conda
To use conda for the convenience script, you can modify the script to include the following steps or run them in order:
Create a new conda environment:
$ conda create --name acept-env
Activate the conda environment:
$ conda activate acept-env
Install the project requirements:
$ pip install -e .
Fetch the additional dependencies:
$ git submodule update --init --recursive
Install the additional dependencies:
$ pip install -e deps/UrbanHeatPro
As a package or library in used in other projects
The project can be installed as a library or as a package in other projects.
We recommend integrating the project as a git submodule to your project.
See also
There is a guide on git submodules here. It explains how to add a git submodule to your project and how to use it.
This allows to use the folder structure expected by acept and use it from other packages. Then follow these steps for installing the project as a editable package:
Go to the root directory of the cloned git repository of the ACEPT project
Install acept as an editable package:
$ pip install -e .
Fetch the additional dependencies:
$ git submodule update --init --recursive
Install the additional dependencies:
$ pip install -e deps/UrbanHeatPro
As a developer working on the acept package
As a developer working on the acept package, it is recommended to install acept according to the guidelines above.
Additionally, the optional dependencies should be installed as follows:
$ pip install -e .[all]
This allows to also use the interactive notebooks of the project and build the documentation for the package.
After the installation
Once the project is installed and you activated the created virtual environment, head to the Setting up additional data section to find out how to set up the data for the project and package and configure it for your needs.