Launcher experiment helper

Jérôme BUISINE b796880830 Merge branch 'release/v0.1.0' 3 years ago
launcher 5ff66b6af3 Add of prefix url when running app 4 years ago
links af04077c4b update display of error message 3 years ago
static 91a74748fd add target blank and fixed select if id passed 3 years ago
.gitignore 926216db24 disable ignored of logo expe 3 years ago
Dockerfile 5ff66b6af3 Add of prefix url when running app 4 years ago
LICENSE b1b01440e6 Initial commit 4 years ago
Makefile df95e1299e Last version of webapp and add of docker instance 4 years ago f99eda4728 Update static files import 4 years ago
docker-compose.yml 3e082a40d4 update mongo interaction 3 years ago a1aefe8097 Add of django app 4 years ago
requirements.txt debbdca6be new version of project using mongo db sin3d collections 3 years ago



Project for generating users links in order to launch SIN3D application quickly during experiment.

How to use ?

Generate user links (file saved into data folder):

python links/generate/ --experiment AreSameImagesRandom --experimentId expe1 --scenes Appart1opt02,Bureau1,Cendrier --output expe1.csv

Generate experiment links for each user (file saved into expe folder):

python links/generate/ --data links/media/data/expe1.csv --scenes 2 --users 150 --userId 1 --output expe1_user_links.csv
  • userId: tell if an userId is used or not (use of index of line from generated output file)

The final file is generated and contains data just as follow:


Launch WebApp

1. Manually

pip install -r requirements.txt
python migrate
python runserver

2. Using docker (recommended)

You can use make commands:

make build
make run

Or simply:

make deploy

Will run build and run commands at once.

You also have stop, remove, clean commands:

  • stop: stop current container instance if exists
  • remove: stop and remove container instance if exists
  • clean: remove docker image if exists

3. Notes

Configure your own URL prefix using WEB_PREFIX_URL:

WEB_PREFIX_URL=experiments python runserver

or using docker:

WEB_PREFIX_URL=experiments make deploy


The MIT license