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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for alfred3-reaction-times-0.1.6.tar.gz
Algorithm Hash digest
SHA256 d685c99b0e535b625e6b5efb4583e35c28d69f12ca9412fc3d371839ac4dbfba
MD5 4031c20f2ef46665afbe0b83e82cc7b8
BLAKE2b-256 657571d9b96f3db77f2f582a0180dcaeb38dc79f612c99e2b847e9ed0e1e6ebd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alfred3_reaction_times-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6aee078417ec3727377f0c021a7bab9e4dde2ce2bc1bdd9fcc8164ddea5b034e
MD5 6fc5e551ac19ce7a4dbaae88cb6b7827
BLAKE2b-256 1524974c762d766589e3f1484e73e980a0222e6e7cc1b32b37c98cae483a4c15

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