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.5.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

alfred3_reaction_times-0.1.5-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for alfred3-reaction-times-0.1.5.tar.gz
Algorithm Hash digest
SHA256 57cd3a081a73d685b822d05004a51d92eacd8b9ac7623748947ac4b5f23caa05
MD5 cb11557c156ed51883224f641ed52f04
BLAKE2b-256 71f2ff197836f3c8e36e7ffeb89940a9e482c6e8787bcca3919500a7dd90716a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alfred3_reaction_times-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8353b3fad33af9cf0cace554659d5354924de87b6afe6625b04201d644b6385c
MD5 ba3627ba05a51525787dc49b7c04811f
BLAKE2b-256 1c76c17aa40bd9ac704fe3698d9446c4f9531e8b95b014e91c30056fd20d8798

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