Commit f45e507c authored by Julian Lysvik's avatar Julian Lysvik

Experiment update - list

parent 6d7b98a1
Plural,Singular,Type,Picture,Picture_pl,Final_C,Trigger_txt,Target_txt,New,Target_img,Trigger_img,Target,Number,a,k,New_seg,Corr,Instr,trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,trials_2.thisRepN,trials_2.thisTrialN,trials_2.thisN,trials_2.thisIndex,trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,key_resp_1.keys,key_resp_1.rt,key_resp_2.keys,key_resp_2.rt,inputText,text_resp.keys,text_resp.rt,key_resp_4.keys,key_resp_4.rt,FC_resp.keys,FC_resp.rt,gender,age,language,participant,date,expName,psychopyVersion,frameRate,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,0.9259578774544934,,,,,,,,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
musapu,musab,Alt,Images/apple.jpg,Images/apple_pl.jpg,b,,,,,,,,,,,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
nalipu,nalib,Alt,Images/coin.jpg,Images/coin_pl.jpg,b,,,,,,,,,,,,,0,1,1,2,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
larupu,larub,Alt,Images/rock.jpg,Images/rock_pl.jpg,b,,,,,,,,,,,,,0,2,2,1,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,1.7736711055586056,,,,,,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,Alt,,,b,musapu,musab,Given,Images/apple.jpg,Images/apple_pl.jpg,sg,Write the singular form on your keyboard - then press enter,,,,,,,,,,0,0,0,0,,,,,,,,,musab,"['m', 'u', 's', 'a', 'b', 'return']","[0.6662604935190757, 1.1990158834196336, 1.4486737081406318, 1.715260249473431, 2.148050112893543, 3.4470716281230125]",,,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,1.105165140104873,,,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,Alt,,,b,nasapu,,,Images/spear.jpg,Images/spear_pl.jpg,sg,,nasap,nasab,Given,k,Choose the singular form of the word that belongs to the language,,,,,,,,,0,0,0,1,,,,,,,,,,k,5.328689221221794,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,Alt,,,b,minupu,,,Images/raindrop.jpg,Images/raindrop_pl.jpg,sg,,minup,minub,Given,k,Choose the singular form of the word that belongs to the language,,,,,,,,,0,1,1,3,,,,,,,,,,k,2.2984459610506747,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,Alt,,,b,sanub,,,Images/hammock_pl.jpg,Images/hammock.jpg,pl,,sanupu,sanubu,Given,a,Choose the plural form of the word that belongs to the language,,,,,,,,,0,2,2,2,,,,,,,,,,a,1.2827775758287316,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
,,Alt,,,b,rumab,,,Images/soldier_pl.jpg,Images/soldier.jpg,pl,,rumapu,rumabu,Given,a,Choose the plural form of the word that belongs to the language,,,,,,,,,0,3,3,0,,,,,,,,,,a,1.9317868034686398,,,,001,2019_Feb_12_1100,experiment2_b,3.0.0,60.31156399565387,
This diff is collapsed.
Plural,Singular,Type,Picture,Picture_pl,Final_C,Trigger_txt,Target_txt,New,Target_img,Trigger_img,Target,Number,a,k,New_seg,Corr,Instr,trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,trials_2.thisRepN,trials_2.thisTrialN,trials_2.thisN,trials_2.thisIndex,trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,key_resp_1.keys,key_resp_1.rt,key_resp_2.keys,key_resp_2.rt,inputText,text_resp.keys,text_resp.rt,key_resp_4.keys,key_resp_4.rt,FC_resp.keys,FC_resp.rt,gender,age,language,participant,date,expName,psychopyVersion,frameRate,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,0.7930825128805736,,,,,,,,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
larupu,larub,Alt,Images/rock.jpg,Images/rock_pl.jpg,b,,,,,,,,,,,,,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
nalipu,nalib,Alt,Images/coin.jpg,Images/coin_pl.jpg,b,,,,,,,,,,,,,0,1,1,2,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
musapu,musab,Alt,Images/apple.jpg,Images/apple_pl.jpg,b,,,,,,,,,,,,,0,2,2,0,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,1.4516188901216083,,,,,,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,Alt,,,b,musapu,musab,Given,Images/apple.jpg,Images/apple_pl.jpg,sg,Write the singular form on your keyboard - then press enter,,,,,,,,,,0,0,0,0,,,,,,,,,musab,"['m', 'u', 's', 'a', 'b', 'return']","[1.6155199954937416, 1.8486130381570547, 1.9817780997582304, 2.1984322228418023, 2.431096053122019, 2.7477370353117294]",,,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,2.421164436982508,,,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,Alt,,,b,minupu,,,Images/raindrop.jpg,Images/raindrop_pl.jpg,sg,,minup,minub,Given,k,Choose the singular form of the word that belongs to the language,,,,,,,,,0,0,0,3,,,,,,,,,,k,1.498838651981714,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,Alt,,,b,nasapu,,,Images/spear.jpg,Images/spear_pl.jpg,sg,,nasap,nasab,Given,k,Choose the singular form of the word that belongs to the language,,,,,,,,,0,1,1,1,,,,,,,,,,k,1.3158905004984263,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,Alt,,,b,sanub,,,Images/hammock_pl.jpg,Images/hammock.jpg,pl,,sanupu,sanubu,Given,a,Choose the plural form of the word that belongs to the language,,,,,,,,,0,2,2,2,,,,,,,,,,a,2.2983098589138535,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
,,Alt,,,b,rumab,,,Images/soldier_pl.jpg,Images/soldier.jpg,pl,,rumapu,rumabu,Given,a,Choose the plural form of the word that belongs to the language,,,,,,,,,0,3,3,0,,,,,,,,,,a,0.999431272261063,,,,001,2019_Feb_12_1102,experiment2_b,3.0.0,59.8541331491838,
This diff is collapsed.
trig,targ,type,trig_img,targ_img,final_c,new,num,instr,a,k,corr,lang,phase,trials.thisRepN,trials.thisTrialN,trials.thisN,trials.thisIndex,trials_2.thisRepN,trials_2.thisTrialN,trials_2.thisN,trials_2.thisIndex,trials_3.thisRepN,trials_3.thisTrialN,trials_3.thisN,trials_3.thisIndex,key_resp_1.keys,key_resp_1.rt,key_resp_2.keys,key_resp_2.rt,inputText,text_resp.keys,text_resp.rt,key_resp_4.keys,key_resp_4.rt,FC_resp.keys,FC_resp.rt,gender,age,language,participant,date,expName,psychopyVersion,frameRate,
,,,,,,,,,,,,,,,,,,,,,,,,,,space,20.205226236736053,,,,,,,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
larub,larupu,alt,Images/rock.jpg,Images/rock_pl.jpg,b,None,None,None,None,None,None,voicing,exposure,0,0,0,1,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
nalib,nalipu,alt,Images/coin.jpg,Images/coin_pl.jpg,b,None,None,None,None,None,None,voicing,exposure,0,1,1,2,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
musab,musapu,alt,Images/apple.jpg,Images/apple_pl.jpg,b,None,None,None,None,None,None,voicing,exposure,0,2,2,0,,,,,,,,,,,,,,,,,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,1.922460180525377,,,,,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
mirab,mirapu,alt,Images/hammer.jpg,Images/hammer_pl.jpg,b,new,pl,Write the plural form on your keyboard - then press enter,None,None,None,voicing,prod,,,,,0,0,0,1,,,,,,,,,mirapu,"['m', 'i', 'r', 'a', 'p', 'u', 'return']","[1.6498480263908277, 1.7494543114953558, 1.9160232747453847, 1.9994223125613644, 2.132204666897451, 2.2651222700660583, 2.5660534817398]",,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
milupu,milub,alt,Images/soap_pl.jpg,Images/soap.jpg,b,given,sg,Write the singular form on your keyboard - then press enter,None,None,None,voicing,prod,,,,,0,1,1,0,,,,,,,,,milub,"['m', 'i', 'l', 'u', 'b', 'return']","[0.9002704123340664, 0.9999927469107206, 1.133441105746897, 1.3499429139010317, 1.5378645532036899, 1.766254179063253]",,,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,space,1.3847816478009918,,,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
minupu,None,alt,Images/raindrop_pl.jpg,Images/raindrop.jpg,b,given,sg,Choose the singular form of the word that belongs to the language,minup,minub,k,voicing,FC,,,,,,,,,0,0,0,0,,,,,,,,,,a,3.9934662441119144,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
musupu,None,alt,Images/dog_pl.jpg,Images/dog.jpg,b,new,sg,Choose the singular form of the word that belongs to the language,musub,musup,a,voicing,FC,,,,,,,,,0,1,1,1,,,,,,,,,,k,2.3599709534973954,,,,001,2019_Feb_12_1442,experiment2_b,3.0.0,60.05980796935485,
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v3.0.0),
on februar 12, 2019, at 10:22
on februar 12, 2019, at 14:42
If you publish work using this script please cite the PsychoPy publications:
Peirce, JW (2007) PsychoPy - Psychophysics software in Python.
Journal of Neuroscience Methods, 162(1-2), 8-13.
......@@ -82,7 +82,7 @@ fixation = visual.ShapeStim(
size=(0.5, 0.5),
ori=0, pos=(0, 0),
lineWidth=1, lineColor=[1,1,1], lineColorSpace='rgb',
fillColor=[1,1,1], fillColorSpace='rgb',
fillColor=[-1.000,-1.000,-1.000], fillColorSpace='rgb',
opacity=1, depth=-1.0, interpolate=True)
# Initialize components for Routine "Exposure"
......@@ -138,7 +138,7 @@ fixation = visual.ShapeStim(
size=(0.5, 0.5),
ori=0, pos=(0, 0),
lineWidth=1, lineColor=[1,1,1], lineColorSpace='rgb',
fillColor=[1,1,1], fillColorSpace='rgb',
fillColor=[-1.000,-1.000,-1.000], fillColorSpace='rgb',
opacity=1, depth=-1.0, interpolate=True)
# Initialize components for Routine "Test_Prod"
......@@ -202,7 +202,7 @@ fixation = visual.ShapeStim(
size=(0.5, 0.5),
ori=0, pos=(0, 0),
lineWidth=1, lineColor=[1,1,1], lineColorSpace='rgb',
fillColor=[1,1,1], fillColorSpace='rgb',
fillColor=[-1.000,-1.000,-1.000], fillColorSpace='rgb',
opacity=1, depth=-1.0, interpolate=True)
# Initialize components for Routine "Test_FC"
......@@ -268,6 +268,16 @@ Resp_b = visual.TextStim(win=win, name='Resp_b',
ISI_1secClock = core.Clock()
ISI_2 = clock.StaticPeriod(win=win, screenHz=expInfo['frameRate'], name='ISI_2')
# Initialize components for Routine "Thank_you"
Thank_youClock = core.Clock()
text = visual.TextStim(win=win, name='text',
text='Thank you very much for participating!',
font='Arial',
pos=(0, 0), height=0.1, wrapWidth=None, ori=0,
color=[-1.000,-1.000,-1.000], colorSpace='rgb', opacity=1,
languageStyle='LTR',
depth=0.0);
# Create some handy timers
globalClock = core.Clock() # to track the time since experiment started
routineTimer = core.CountdownTimer() # to track time remaining of each (non-slip) routine
......@@ -414,7 +424,7 @@ for thisComponent in ISI_PreComponents:
# set up handler to look after randomisation of conditions etc
trials = data.TrialHandler(nReps=1, method='random',
extraInfo=expInfo, originPath=-1,
trialList=data.importConditions('Lists\\Voi_exposure.xlsx', selection='0:3'),
trialList=data.importConditions('Lists\\voicing.xlsx', selection='0:3'),
seed=None, name='trials')
thisExp.addLoop(trials) # add the loop to the experiment
thisTrial = trials.trialList[0] # so we can initialise stimuli with some values
......@@ -437,10 +447,10 @@ for thisTrial in trials:
continueRoutine = True
routineTimer.add(6.000000)
# update component parameters for each repeat
Sing_img.setImage(Picture)
Pl_img.setImage(Picture_pl)
Sing_txt.setText(Singular)
Pl_txt.setText(Plural)
Sing_img.setImage(trig_img)
Pl_img.setImage(targ_img)
Sing_txt.setText(trig)
Pl_txt.setText(targ)
# keep track of which components have finished
ExposureComponents = [Sing_img, Pl_img, Sing_txt, Pl_txt]
for thisComponent in ExposureComponents:
......@@ -712,7 +722,7 @@ for thisComponent in ISI_PreComponents:
# set up handler to look after randomisation of conditions etc
trials_2 = data.TrialHandler(nReps=1, method='random',
extraInfo=expInfo, originPath=-1,
trialList=data.importConditions('Lists\\Voi_Prod.xlsx', selection='0:1'),
trialList=data.importConditions('Lists\\voicing.xlsx', selection='45:47'),
seed=None, name='trials_2')
thisExp.addLoop(trials_2) # add the loop to the experiment
thisTrial_2 = trials_2.trialList[0] # so we can initialise stimuli with some values
......@@ -734,10 +744,10 @@ for thisTrial_2 in trials_2:
frameN = -1
continueRoutine = True
# update component parameters for each repeat
Target_ins1.setText(Number)
Trigger_img1.setImage(Trigger_img)
Target_img1.setImage(Target_img)
Trigger_txt1.setText(Trigger_txt)
Target_ins1.setText(instr)
Trigger_img1.setImage(trig_img)
Target_img1.setImage(targ_img)
Trigger_txt1.setText(trig)
theseKeys=""
shift_flag = False
txtinp.alignHoriz ='center'
......@@ -1079,7 +1089,7 @@ for thisComponent in ISI_PreComponents:
# set up handler to look after randomisation of conditions etc
trials_3 = data.TrialHandler(nReps=1, method='random',
extraInfo=expInfo, originPath=-1,
trialList=data.importConditions('Lists\\Voi_FC.xlsx', selection='0:4'),
trialList=data.importConditions('Lists\\voicing.xlsx', selection='75:77'),
seed=None, name='trials_3')
thisExp.addLoop(trials_3) # add the loop to the experiment
thisTrial_3 = trials_3.trialList[0] # so we can initialise stimuli with some values
......@@ -1101,10 +1111,10 @@ for thisTrial_3 in trials_3:
frameN = -1
continueRoutine = True
# update component parameters for each repeat
Target_ins2.setText(Instr)
Trigger_img2.setImage(Trigger_img)
Target_img2.setImage(Target_img)
Trigger_txt2.setText(Trigger_txt)
Target_ins2.setText(instr)
Trigger_img2.setImage(trig_img)
Target_img2.setImage(targ_img)
Trigger_txt2.setText(trig)
FC_resp = event.BuilderKeyResponse()
Resp_a.setText(a)
Resp_b.setText(k)
......@@ -1288,6 +1298,74 @@ for thisTrial_3 in trials_3:
# completed 1 repeats of 'trials_3'
# ------Prepare to start Routine "Thank_you"-------
t = 0
Thank_youClock.reset() # clock
frameN = -1
continueRoutine = True
# update component parameters for each repeat
key_resp_3 = event.BuilderKeyResponse()
# keep track of which components have finished
Thank_youComponents = [text, key_resp_3]
for thisComponent in Thank_youComponents:
if hasattr(thisComponent, 'status'):
thisComponent.status = NOT_STARTED
# -------Start Routine "Thank_you"-------
while continueRoutine:
# get current time
t = Thank_youClock.getTime()
frameN = frameN + 1 # number of completed frames (so 0 is the first frame)
# update/draw components on each frame
# *text* updates
if t >= 0.0 and text.status == NOT_STARTED:
# keep track of start time/frame for later
text.tStart = t
text.frameNStart = frameN # exact frame index
text.setAutoDraw(True)
# *key_resp_3* updates
if t >= 0.0 and key_resp_3.status == NOT_STARTED:
# keep track of start time/frame for later
key_resp_3.tStart = t
key_resp_3.frameNStart = frameN # exact frame index
key_resp_3.status = STARTED
# keyboard checking is just starting
if key_resp_3.status == STARTED:
theseKeys = event.getKeys(keyList=['q'])
# check for quit:
if "escape" in theseKeys:
endExpNow = True
if len(theseKeys) > 0: # at least one key was pressed
# a response ends the routine
continueRoutine = False
# check if all components have finished
if not continueRoutine: # a component has requested a forced-end of Routine
break
continueRoutine = False # will revert to True if at least one component still running
for thisComponent in Thank_youComponents:
if hasattr(thisComponent, "status") and thisComponent.status != FINISHED:
continueRoutine = True
break # at least one component has not yet finished
# check for quit (the Esc key)
if endExpNow or event.getKeys(keyList=["escape"]):
core.quit()
# refresh the screen
if continueRoutine: # don't flip if this routine is over or we'll get a blank screen
win.flip()
# -------Ending Routine "Thank_you"-------
for thisComponent in Thank_youComponents:
if hasattr(thisComponent, "setAutoDraw"):
thisComponent.setAutoDraw(False)
# the Routine "Thank_you" was not non-slip safe, so reset the non-slip timer
routineTimer.reset()
# these shouldn't be strictly necessary (should auto-save)
thisExp.saveAsWideText(filename+'.csv')
thisExp.saveAsPickle(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment