![]() ![]() # display study word 2 (starting from row 5 in the excel file)ĭisplay_sound. I have an experiment using as condition file in the loop a very very large excel sheet (40 rows for 64 columns). # display study word 1 (starting from row 5 in the excel file) I can not avoid this file size due to the complexity of the experimental stimulation (I have already excluded from the file conditional values and columns that do not have to be used by psychopy. # display the study word for sequence 1 (starting from row 2 in excelfile)ĭisplay_sound.value = trial psychopy. Trials = data.TrialHandler(trialList = Design_block, nReps = 1, method = “sequential”)įor sequence in range(n_wordsequences): trials = choose_trials(sequence) I need to make a scoring function with the rating function that will output the results viewable to user and into excel or CSV or other file MichaelWood November 6, 2020, 4:01pm 1 OS (e.g. N_wordsequences = 2 import the design (list of dictionaries)ĭesignLD = data.importConditions(“Subtest_3.1_geluiden.xlsx”) making a sound stimulus in advance with a random sound to overwrite later in the loopĭisplay_sound = sound.Sound (value = my_directory + “/Geluiden/study_word_1_6.wav”) Increasing word sequences per blockĭesign_block = DesignLD # this only takes rows 2-4 from excel file (1 study/ 1 target word)ĭesign_block = DesignLD # this only takes rows 5-7 from excel file (2 study/ 1 target word) ![]() ThisExp = data.ExperimentHandler(dataFileName = file_name, extraInfo = info) number of blocks Prefs.general = start the ExperimentHandler, add the output file name and store the dialog box info ![]() I don’t have any experience programming with sound stimuli, so I hope someone can help me!įrom psychopy import visual, event, core, gui, data, sound Note that I have now two blocks with 3 trials in each block. I refer in every trial to the excelfile where the filepaths of my sounds are described. However, when I tried to present them auditorily in the loop, I constantly hear the same word that I made in advance (see in my code). My code worked perfectly when I presented the words on my screen via textstimuli. 3 Answers Sorted by: 0 If you have the data in a pandas dataframe, you can use the pivot method with columns'LeftRight' to reorganize the data so there is a column for each unique value within the Left right column. The words need to be presented auditorily. The second block consists of two study words followed by a target word. So I need to program a task where the first block of the experiment consists of a study word followed by a target word. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |