Setup
Installation
The project is only compatible with Python 3.12 and above, so make sure you have a correct python version installed.
Note
You can check your python version by running the following command:
python --version
You will need to install the caqtus-suite python package.
pip install caqtus-suite
You then need to install PostgreSQL and create a database for the project.
Once the database is created, you will need to upgrade the database schema by following the instructions in the Upgrade the database section.
Configuration
You need to configure the experiment to use the database just created.
from caqtus.extension import Experiment
from caqtus.session.sql import PostgreSQLConfig
my_experiment = Experiment()
my_experiment.configure_storage(
PostgreSQLConfig(
host="localhost",
port=5432,
password="password",
user="user",
database="database",
)
)