-
install docker
-
sudo pip install docker-compose
-
Clone code:
git clone https://github.com/fabiansinz/efish_locking.git
-
Create a file
.env
with contentDJ_HOST=<IP OF MYSQL-SERVER> DJ_USER=<USER FOR THIS DATABASE> DJ_PASS=<PASSWORD FOR THE USER>
and replace the placeholders with the correct values. It has to be the IP, because the Docker container cannot look up servers. The mysql user (here it's
efish
) needs the rightsGRANT ALL PRIVILEGES ON
efish%.* TO 'efish'@'%';
-
Build the docker container:
sudo docker-compose build --pull --no-cache locking
-
If you only want to use a populated database, read on. If you want to populate the tables, then you'll need a directory
data/carolin
in you home with the recordings. If the files are at a different location, change the location indocker-compose.yml
. -
Start the docker container by
sudo docker-compose run locking
. That will start a shell in the docker container -
To import the data use:
python3 scripts/populate_data.py
-
To run analyses use:
python3 scripts/populate_analyses.py
-
To run modells use:
python3 scripts/populate_modelling.py
-
After that you can reproduce the figures with the respective figure scripts in the
scripts
directory. The currentdocker-compose.yml
maps the local directoryfigures_docker
to the directory where the figures are stored in the container. This means you either have to create that one locally or you need to change thedocker-compose.yml
to point to a different directory.
-
Notifications
You must be signed in to change notification settings - Fork 0
fabiansinz/efish_locking
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published