Skip to main content

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

alfred3-reaction-times-0.1.4.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

alfred3_reaction_times-0.1.4-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file alfred3-reaction-times-0.1.4.tar.gz.

File metadata

File hashes

Hashes for alfred3-reaction-times-0.1.4.tar.gz
Algorithm Hash digest
SHA256 927a1d181bcc6ff6b8807f16d5852e9a26ab6f9fe5dda61b8c92816c45dcc8f8
MD5 fc8f26a95b88297cd21e4d0942af6bbb
BLAKE2b-256 bc7a38f816f96b62891b13f00b8bf4db099000f32fa00e31b5fb64006f1ce27c

See more details on using hashes here.

File details

Details for the file alfred3_reaction_times-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for alfred3_reaction_times-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 af0fa6d97b7e39b51206ec836d0f48cfb39a57bf30b6f0ebaa43d6a3872bc440
MD5 6f682cd68d0b216fcbe00c69305c3a79
BLAKE2b-256 e52131de19cd418907a5ab26f6bae6f0c760d0795e538320cebbb2a3e98c1d28

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page