klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 4 forks source link

Fix for https://github.com/plone/Products.CMFPlone/issues/39… #139

Closed adammorrissirrommada closed 4 years ago

adammorrissirrommada commented 4 years ago

…1. Adaptive values were being updated in afterTrial(), making get(...,'atTrialTime',Inf) return the wrong (counterintuitive) value for the trial. In this version, the criterion correct/incorrect function is evaluated in afterTrial(), but update() is not called until beforeTrial() in the next trial.