9/14/2023 0 Comments Psychopy scale reset![]() ![]() No cursor is drawn to represent the joystick current position,īut this is easily provided by updating the position of a partially transparent ‘.png’ immage on each screen frame using the joystick coordinates: Joystick.getX() and joystick.getY() are scaled by xFactor or yFactor User defined scaling can be set by updating joystick.xFactor and joystick.yFactor to the desired values. ![]() Coordinates are correctly scaled for ‘norm’ and ‘height’ units. ![]() Given in the same coordinates as the Window, with (0,0) in the centre. The coordinates of the joystick location are NextTrial = filmDict.The Joystick component can be used to collect responses from a participant. # If statement to either present break screen or end screen # store when the video ends to later store in outputfile, this videoEnd uses clock created at start of experiment Mov = visual.MovieStim3 (win, film, size=(1920, 1080), flipVert=False, flipHoriz=False, loop=False) # store when the video started to later store in outputfile, this videoStart uses clock created at start of experiment # store trial start time for later use in calculating trial duration # Loop through each film stored in filmDict created above using trialhandler # Start a clock right before the experiment starts Key = event.waitKeys(keyList=(), timeStamped = True) # Wait for user to press Return to continue Use the mouse to move the marker and press enter when you are happy with your selection. \nAt the end of each video, you will be asked to rate several statements regarding the nature of your ongoing thoughts on a sliding scale. You will not be penalised for withdrawing from the study. \nIf at any point, you become distressed and would like to stop the task, please inform the experimenter. \nThese videos will contain dangerous behaviour, strong language, disturbing images,threat and violence.If you find these types of videos distressing ,please do not participate and let the experimenter know. tText("""You will be presented with several videos. # Update text to include instructions for task Stim = visual.TextStim(win, "", color =, wrapWidth = 1300, units = "pix", height=40) # Create text stimuli to be updated for start screen instructions Win = visual.Window(size=, color=, monitor="testMonitor", fullscr= True, allowGUI = False) #win = visual.Window(size =, fullscr = True, allowGUI = False, units = "pix", color = (1,1,1), monitor="testMonitor") # Create white window for stimuli to be presented on throughout task # Use trialhandler to sequentially present films listed in filmlist csv fileįilmDict = data.TrialHandler(nReps = 1, method = 'sequential', trialList = data.importConditions('references\\filmList.csv'), name = 'filmList') # writes headers using fieldnames as specified above when creating writer variable Writer = csv.DictWriter(outputfile, fieldnames) # create variable which calls DictWriter to write to outputfile and specifies fieldnames 'TrialDuration','Focus','Future','Past','Self','Other','Emotion','Modality','Detailed','Deliberate','Problem','Diversity','Intrusive','Source'] # Create list of headers for output csv fileįieldnames = ['Participant_number', 'videoName','Video_startTime','Video_endTime','Questionnaire_startTime','Questionnaire_endTime', Outputfile = open(completeName, "w", newline = '') # update filename to include absolute path so that it is stored in output directoryĬompleteName = os.path.join(save_path, filename) # Create a dictionary to store information from the dialogue box ![]() # User should set directory for output files to be stored # User should set cwd to the experiment directory """Quits experiment if user presses 'escape' key.""" UPDATE: issue only occurs when in fullscreen mode from psychopy import visualįrom psychopy import gui, data, core,eventįrom time import localtime, strftime, gmtime If anyone has any more recommendations to fix it, that would be super helpful! I have tried both ratingScale and Slider using Psychop圓 and it remains an issue… ThisExp.abort() # or data files will save again on exit Slider = visual.Slider(win=win, name='radio', Monitor='testMonitor', color=, colorSpace='rgb', WinType='pyglet', allowGUI=False, allowStencil=False, from _future_ import absolute_import, divisionįrom psychopy import locale_setup, visual, core, event E.g., the following should work in Coder. Hi so you have to manually focus the window using the mouse? What happens when you set the window to fullscreen using the fullscr window param? By the way, the same thing can be achieved using the new Slider component. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |