Commit 1b74837a authored by Ruben van Bergen's avatar Ruben van Bergen

Fixing nRep

Turns out that nRep refers to the number of repetitions of the *whole loop*...
parent 710d3591
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v2021.2.0),
on september 16, 2021, at 16:53
on september 17, 2021, at 16:43
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019)
......@@ -140,7 +140,7 @@ rsp_min_dur = 1.5
#foo = data.importConditions(exp_script_fname)
#num_trials = len(foo)
num_trials = 3
#num_trials = 3
digit_paths = []
......@@ -362,7 +362,7 @@ thisExp.nextEntry()
routineTimer.reset()
# set up handler to look after randomisation of conditions etc
trials = data.TrialHandler(nReps=3.0, method='sequential',
trials = data.TrialHandler(nReps=1.0, method='sequential',
extraInfo=expInfo, originPath=-1,
trialList=data.importConditions(exp_script_fname),
seed=None, name='trials')
......@@ -453,6 +453,8 @@ for thisTrial in trials:
# ------Prepare to start Routine "trial"-------
continueRoutine = True
# update component parameters for each repeat
if trial_idx==0:
num_trials=len(trials.trialList)
digit0.setPos((digit0_posx, digit0_posy))
digit0.setSize((digit0_aspect_ratio*stim_size, stim_size))
digit0.setImage(digit_paths[int(digit0_idx)])
......@@ -931,7 +933,9 @@ for thisTrial in trials:
trials.addData('continue_text.stopped', continue_text.tStopRefresh)
# the Routine "trial_feedback" was not non-slip safe, so reset the non-slip timer
routineTimer.reset()
# completed 3.0 repeats of 'trials'
thisExp.nextEntry()
# completed 1.0 repeats of 'trials'
# ------Prepare to start Routine "session_feedback"-------
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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