Ending an experiment early by pressing "esc" drops out of the trial loop but doesn't call the afterTrial() functions. One consequence is that the offsets of stimuli are not logged for the last trial.
@bartkrekelberg , do you see any negative consequence of moving this line to after afterTrial() is called?
Ending an experiment early by pressing "esc" drops out of the trial loop but doesn't call the afterTrial() functions. One consequence is that the offsets of stimuli are not logged for the last trial. @bartkrekelberg , do you see any negative consequence of moving this line to after afterTrial() is called?
https://github.com/klabhub/neurostim-ptb/blob/e1c7c4ce6111f143d7746f88b20dd4ffd9ffc15d/%2Bneurostim/cic.m#L1112