-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table trial is not defined #383
Comments
Hi, I created a new database using the docker image from https://github.com/datajoint/mysql-docker and a new conda environment with Python 3.9 on Ubuntu 20.04 (There is an issue in datajoint with python 3.10 so I recommend to Python 3.9) In order to create the databases again, delete the ones that you have already created because datajoint checks if a table exists and doesn't update or create it.
pip install numpy datajoint scipy h5py pygame_menu pyopengl panda3d imageio
python3 -c 'from core.Experiment import *'
python3 -c 'from core.Stimulus import *'
python3 -c 'from core.Behavior import *'
python3 -c 'from Stimuli import *'
python3 -c 'from Behaviors import *'
python3 -c 'from Experiments import *' After this, you will be able to run the grating_test.py which is defined in lab_experiment table Task with id 17 on your computer (left/right arrows are responses to horizontal or vertical gratings). All test configurations are using setup_conf_idx=0 which considered as "Simulation", If you want to run it on the Raspberry, you must create a new setup_conf_idx and fill in the necessary lookup tables (#setup_configuration, #setup_configuration_screen, #setup_configuration_port) according to your needs. So you can run: python run.py 17 or python run.py conf/grating_test.py What Raspberry Pi board and OS you are using? |
Hello Alex, The problem is that datajoint can not create any table that uses primary keys from other table, such as I tried the docker image (https://github.com/datajoint/mysql-docker ) and it works without any problem. So i think it is the mysql database version. Version (5.7.44-48; the one that i was using) has problems, whereas |
Hi
I was trying to setup a new raspberry PI. I got the last step
Create tables
.When run the command
python3 -c 'from core.Experiment import *'
, I got the following error:In the database, I can see all the 5 databases has been created :
lab_experiments
,lab_stimuli
,lab_behavior
,lab_recordings
,lab_mice
. And within lab_experiment, tablecondition
andsession
was also created. Shall i manually add this trial table.Is possible to share an empty database schemas to facilitate database initialization
I am using
Python 3.9
,datajoint 0.14.1
Thanks!
The text was updated successfully, but these errors were encountered: