![]() ![]() ' File "/home/station1/.local/lib/python2.7/site-packages/Xlib/display.py", line 71, in _init_\n protocol_display.Display._init_(self, *args, **keys)\n', ' File "/home/station1/.local/lib/python2.7/site-packages/Xlib/display.py", line 89, in _init_\n self.display = _BaseDisplay(display)\n', ' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/devices/pyXHook.py", line 163, in _init_\n self.local_dpy = display.Display()\n', ' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/server.py", line 662, in createNewMonitoredDevice\n self._hookManager = pyXHook.HookManager(log_events)\n', [' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/server.py", line 520, in _init_\n self.createNewMonitoredDevice(device_class_name,deviceConfig)\n', ' File "/home/station1/src/tables/tables/group.py", line 402, in _g_check_has_child\n % (self._v_pathname, name))\n'] ![]() ' File "/home/station1/src/tables/tables/group.py", line 711, in _f_get_child\n self._g_check_has_child(childname)\n', ' File "/home/station1/src/tables/tables/group.py", line 841, in _getattr_\n return self._f_get_child(name)\n', ' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/datastore/_init_.py", line 319, in _buildEventGroupMappingDict\n self._eventGroupMappings=_\n', ' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/datastore/_init_.py", line 137, in loadTableMappings\n self._buildEventGroupMappingDict()\n', ' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/datastore/_init_.py", line 72, in _init_\n self.loadTableMappings()\n', ' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/server.py", line 837, in createDataStoreFile\n self.emrt_file=ioHubpyTablesFile(fileName,folderPath,fmode,ioHubsettings)\n', [' File "/usr/lib/python2.7/dist-packages/psychopy/iohub/server.py", line 506, in _init_\n self.createDataStoreFile(experiment_datastore_config.get(\'filename\',\'events\')+\'.hdf5\',resultsFilePath,\'a\',experiment_datastore_config)\n', ![]() NoSuchNodeError('group ``/`` does not have a child named ``data_collection``',) I am getting the following errors from my own script: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' I can’t quite get my own eye tracking script to work, and that is the case for iohub demos as well. Note that I never had this issue on the older 1.83 version.) and the foreseeable nightmare of breaking what was initially working occurred. Tutorial 2: Measuring a JND using a staircase procedure which will show you how to build an actual experiment.I have recently did an upgrade to my testing system (including upgrading from psychopy 1.83 to 1.85.3. If you’re feeling like something bigger then go to There are several more simple scripts like this in the demos menu of the Coder and Builder views and many more to download. setPhase ( 0.05, '+' ) #advance phase by 0.05 of a cycle 17 grating. Keyboard () 13 14 #draw the stimuli and update the window 15 while True : #this creates a never-ending loop 16 grating. GratingStim ( win = mywin, size = 0.2, pos =, sf = 0, rgb =- 1 ) 10 11 #create a keyboard component 12 kb = keyboard. GratingStim ( win = mywin, mask = 'circle', size = 3, pos =, sf = 3 ) 9 fixation = visual. Window (, monitor = "testMonitor", units = "deg" ) 6 7 #create some stimuli 8 grating = visual. Type it into a coder window, save it somewhere and press run.ġ from psychopy import visual, core, event #import some libraries from PsychoPy 2 from psychopy.hardware import keyboard 3 4 #create a window 5 mywin = visual. PsychoPy ® has various other useful commands to help with timing too. Draw those stimuli, then update the window. Your first stimulus ¶īuilding stimuli is extremely easy. Now, when you create a window on your monitor you can give it the name ‘testMonitor’ and stimuli will know how they should be scaled appropriately. For now you can just stick to the but give it correct values for your screen size in number of pixels and width in cm. ![]() In the MonitorCenter window you can create a new monitor name, insert values that describe your monitor and run calibrations like gamma corrections. There is a GUI to help with this (select MonitorCenter from the tools menu of |PsychoPy|IDE or run …site-packages/monitors/MonitorCenter.py). In order to do this PsychoPy ® needs to know a little about your monitor. It is also designed to operate (if possible) in the final experimental units that you like to use e.g. PsychoPy ® has been designed to handle your screen calibrations for you. Tutorial 1: Generating your first stimulus ¶Ī tutorial to get you going with your first stimulus display. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |