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

Uploaded Source

Built Distribution

alfred3_reaction_times-0.1.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file alfred3_reaction_times-0.1.3.tar.gz.

File metadata

File hashes

Hashes for alfred3_reaction_times-0.1.3.tar.gz
Algorithm Hash digest
SHA256 57604c55eeef9cbea46a648a9563f845adb76b19a20f195f71913c3d800f0092
MD5 00a57f45014817b4bb6f7decda351bdd
BLAKE2b-256 bfc975f72703763778b73c84e11e411c8f6efb73c4d1f67b253f9a8015ac170d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for alfred3_reaction_times-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0cce64f74f01fcbc8d0a6f84210132f6939f98b9b55b2d35b26dbf6b116432a
MD5 ce0bbf762993c0c2a4ad7488a3aa5d9c
BLAKE2b-256 aee2d807835874d1caf439da7a127caac5a0f53449de7324ea38b8aff428f878

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