![]() Monitor='testMonitor', color=, colorSpace='rgb', WinType='pyglet', allowGUI=True, allowStencil=False, # Start Code - component code to be run before the window creation (logging.WARNING) # this outputs to the screen, not a fileĮndExpNow = False # flag for 'escape' or other condition => quit the expįrameTolerance = 0.001 # how close to onset before 'same' frame LogFile = logging.LogFile(filename+'.log', level=logging.EXP) ![]() # save a log file for detail verbose info OriginPath='C:\\Users\\micha\\Desktop\\1_BASE_TEMPLATE_PSYCHOPY\\1_template.py', ThisExp = data.ExperimentHandler(name=expName, version='', # An ExperimentHandler isn't essential but helps with data saving log, etcįilename = _thisDir + os.sep + u'data/%s_%s_%s' % (expInfo, expName, expInfo) # Data file name stem = absolute path + name later add. # Store info about the experiment sessionĮxpName = 'blockedTrials' # from the Builder filename that created this scriptĮxpInfo = ĭlg = gui.DlgFromDict(dictionary=expInfo, sortKeys=False, title=expName)ĮxpInfo = data.getDateStr() # add a simple timestampĮxpInfo = psychopyVersion _thisDir = os.path.dirname(os.path.abspath(_file_)) # Ensure that relative paths start from the same directory as this script Import os # handy system and path functions Sqrt, std, deg2rad, rad2deg, linspace, asarray)įrom numpy.random import random, randint, normal, shuffle Import numpy as np # whole numpy lib is available, prepend 'np.'įrom numpy import (sin, cos, tan, log, log10, pi, average, STOPPED, FINISHED, PRESSED, RELEASED, FOREVER) PsychoPy2: Experiments in behavior made easy Behav Res 51: 195.įrom _future_ import absolute_import, divisionįrom psychopy import sound, gui, visual, core, data, event, logging, clockįrom nstants import (NOT_STARTED, STARTED, PLAYING, PAUSED, Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. If you publish work using this script the most relevant publication is: This experiment was created using PsychoP圓 Experiment Builder (v2020.1.3), Here is the total code so far: #!/usr/bin/env python I have observed other code but I am not using the keyboard but a rating slider with categories. ![]() I’m trying to save just their scores and be able to test if this feedback helps them improve, etc. I am trying to get psychopy to compare user input to the correct answer in a conditions file and be able to display that to them at the end of the experiement.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |