-
Notifications
You must be signed in to change notification settings - Fork 25
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
Abort experiment #20
Comments
@cMadan there are currently no generic way to abort an experiment other than alt+tab and console quit. However, this can be easily added within the experiment code whenever a key press is required. For instance: ....
n.refresh() # Diplay stimulus on screen
response, RT = n.response() # Collect the response and its time
# Categorize the response
if response == "SPACE" and stimulus == "green":
response_type = "HIT" # Hit
if response != "SPACE" and stimulus == "green":
response_type = "MISS" # Miss
if response == "ESCAPE":
quit() |
Thanks! Maybe this can be added to the documentation somewhere? I don't think alt-tab worked for me, but that may have been related to other video issues (see #21). In my case I had to ssh into my mac machine and kill the python process. |
@cMadan I'm back from holidays 😄, I added an example of how to enable quitting in the stroop tutorial in docs. |
Is there any way to abort an experiment? (E.g., pressing certain keys.)
The text was updated successfully, but these errors were encountered: