-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: hook after response given + unlimited number of hooks (array) #53
Comments
The hook system seems unable to realize basic affordances. An example is in SimonTask -> branch Desired behavior:
|
This behavior works perfectly fine and was (almost) already there. The problem that the stimulus hides after a short time was introduced here: hide of stimulus added, this also makes it only possible to answer after the stimulus hides (see here for explanation of the hook/trial life cycle) The problem that the response was enabled to early was introduced here: The RT measurement was actually incorrect, because only the pause was subtracted and not the fixation time and the stim duration. I now changed it, to only start measuring the RT after the response is enabled, this means we don't have to subtract anything. magpie-ea/magpie-simon-task@3f01f3d Here, I pushed the fixed hooks version. |
Thanks for clarifying. But this is not quite the required behavior yet. The stimulus should disappear after 500ms after all. However, the response should be enabled (and RT clocking should start) at the moment the stimulus appears.
The desired behavior is implemented (without hooks and corrected mistakes in RT measurement) in branch mf_fixes. But I would love to know how to do this with hooks.
… On 12. Apr 2019, at 21:04, JannisBush ***@***.***> wrote:
This behavior works perfectly fine and was (almost) already there.
The problem that the stimulus hides after a short time was introduced here: hide of stimulus added, this also makes it only possible to answer after the stimulus hides (see here for explanation of the hook/trial life cycle)
The problem that the response was enabled to early was introduced here:
response enabled to early
The RT measurement was actually incorrect, because only the pause was subtracted and not the fixation time and the stim duration. I now changed it, to only start measuring the RT after the response is enabled, this means we don't have to subtract anything.
***@***.***
Here, I pushed the fixed hooks version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Okay, then we can't use the stimulus hide step of the trial life cycle. But we can just do the same thing it does in the after_response_enabled hook. The problem (related to this #53 issue) is, that we have no after response given hook, therefore I had to clear the timeouts in the custom view/handleResponse. Also, I realized we have no before_pause hook, which could be useful and be realized in connection to the unlimited number of hooks. |
No description provided.
The text was updated successfully, but these errors were encountered: