Alfred3 library for measurement of reaction times.
Project description
alfred-reaction-times
Alfred3 library for measurement of reaction times
Installation
Please note, that the base package alfred3 must also be installed.
$ pip install alfred3
Afterwards, you can install alfred3_reaction_times:
$ pip install alfred3_reaction_times
A "Hello world" experiment
import alfred3 as al
import alfred3_reaction_times as art
exp = al.Experiment()
exp += al.Page('Reacting to "Hello World"', name="hello_world")
exp.hello_world += al.Text('Please press any key when you see "Hello World')
exp.hello_world += art.ReactionTimes(
art.Trial(
art.Fixation(
element=al.Text("X"), # any alfred3 element to be shown
duration=5 # display duration in seconds
),
art.Stimulus(
al.Text("Hello world"), # any alfred3 element to be shown
art.Reaction("any") # definition of the keys that are considered as the proper reaction
)
)
)
In this example, an "X" will be shown as a fixation stimulus, followed by the text "Hello World" after 5 seconds
On further information on how to write and run an alfred3 experiment, please read the alfred3 documentation
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file alfred3-reaction-times-0.1.4.tar.gz
.
File metadata
- Download URL: alfred3-reaction-times-0.1.4.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 927a1d181bcc6ff6b8807f16d5852e9a26ab6f9fe5dda61b8c92816c45dcc8f8 |
|
MD5 | fc8f26a95b88297cd21e4d0942af6bbb |
|
BLAKE2b-256 | bc7a38f816f96b62891b13f00b8bf4db099000f32fa00e31b5fb64006f1ce27c |
File details
Details for the file alfred3_reaction_times-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: alfred3_reaction_times-0.1.4-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af0fa6d97b7e39b51206ec836d0f48cfb39a57bf30b6f0ebaa43d6a3872bc440 |
|
MD5 | 6f682cd68d0b216fcbe00c69305c3a79 |
|
BLAKE2b-256 | e52131de19cd418907a5ab26f6bae6f0c760d0795e538320cebbb2a3e98c1d28 |