Make sure all volume numbers (in particular seg volume numbers) are rounded to the nearest volume (i.e. before they were always recorded as the last volume tick that occurred). Also, if an event happens after the end of the last volume (+ 1 TR) the volume number will be set to nan.
29 lines of code changed in 1 file:
Remove any nan stimvols this will happen if the trial happened after the end of the experiment.
5 lines of code changed in 1 file:
Save the volume in which a subject response happens. Also keep trialVolume and responseVolume to the closest volume (before it was always setting the volums to the last recorded volume).
36 lines of code changed in 1 file:
minor: changed comment
2 lines of code changed in 1 file: