A Django-based database for trials and events in the decide operant control system
Project description
django-decide-host
Decide is an event-driven state-machine framework for running behavioral experiments with embeddable computers like the Beaglebone Black. This repository is a Django app that collates event and trial data from multiple devices running decide
version 3.0 or later. It replaces decide-host, which was a bit snazzier but becoming very difficult to maintain.
This should more or less be working but should be considered beta. You should continue to save trial information locally.
This software is licensed for you to use under the Gnu Public License, version 3. See COPYING for details
Quick start
-
Install the package from source:
python setup.py install
. Worth putting in a virtualenv. -
Add
decide_host
to your INSTALLED_APPS setting like this:
INSTALLED_APPS = (
...
'decide_host.apps.DecideHostConfig',
)
You'll also need to add rest_framework
and django_filters
.
- Include the decide_host URLconf in your project urls.py like this::
url(r'^decide_host/', include(decide_host.urls')),
-
Run
python manage.py migrate
to create the database tables. -
Start the development server and point your browser to http://127.0.0.1:8000/decide-host/api/ to view records and inspect the API.
Importing trial data
If you have trial data in jsonl files that you'd like you import into the database, you can do this very easily. From your project site, run manage.py import_trials -n <name> -a <addr> trials.jsonl
. You need to supply the name of the controller (addr) and the procedure (name). The import will not happen if there's a duplicate in the database, so no need to worry about this.
Combining duplicate subjects
Subject names are set with user input, so there may be multiple records in the database that correspond to the same subject. To combine these records, run manage.py merge_subjects <to_keep> <to_combine>
. Multiple names can be give for <to_combine>
. It's easy to mess the database up badly doing this so be sure to take a snapshot!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-decide-host-0.3.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d950a63125b36f70b56dc7174bf11cde84974cb481f12549a16f77495ef02032 |
|
MD5 | 547ac57899a4bcb4cd766a0f7582cf0e |
|
BLAKE2b-256 | 1fede5caf5fa178cf9921265047432e73d8418a226642bf6fe2c8297cacd62bb |
Hashes for django_decide_host-0.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 034118d736546f0cfca08c4de16442d792ef95b565314508c76970addb894dcd |
|
MD5 | 389f2dc85f01efff26999a79be93f323 |
|
BLAKE2b-256 | f30451acbf918be7ebce2f0273eae3ad38e80e37b0abd64ed500c98ec95e1ae6 |