The sessions attribute enables running subsets of tests and procedures based on the session id paramater.
integer | A positive integer indicating which session numbers should run the experiment. |
modulus | A positive integer indicating the modulus. |
The sessions attribute allows you to run different batch or expt depending on the session number provided when the script is run. A given expt or batch will be run if the the following is true:
integer = remainder( session number / modulus )
Multiple expts and batches can be defined in the script, allowing different session numbers to be assigned to different experimental conditions. A single session number can be assigned to multiple expts, in which case all of the assigned expts will be run for that session number in the order they appear in the script.
The following expt is run for odd numbered sessions:
<expt>
/ blocks=[1-20=noreplace(testtrials, distractortrials)]
/ sessions = (1 of 2)
</expt>
The following expt is run for even numbered sessions:
<expt>
/ blocks=[1-20=noreplace(testtrials, distractortrials)]
/ sessions = (2 of 2)
</expt>
The following batch is run for session number 3 and every subsequent 3rd session number (e.g., 3, 6, 9, 12, ...):
<batch>
/ file="experiment3.iqx"
/ sessions = (1 of 4)
</batch>
The following expt is run for second of every four sessions (e.g., 2, 6, 10, 14, ...):
<expt>
/ blocks=[1-20=noreplace(testtrials, distractortrials)]
/ sessions = (1 of 4)
</expt>