BIDSBehEvent¶
BIDSBehEvent represents one row in a behavioral *_beh.tsv file.
Unlike BIDSTaskEvent, timing fields are optional and you can store flexible behavioral metadata.
Practical Example¶
from psychopy_bids import bids
event = bids.BIDSBehEvent(
trial_type="rating",
response_value=4,
response_label="high_confidence",
)
When To Use It¶
- Use for non-time-locked annotations.
- Use for ratings, questionnaires, or block-level behavioral summaries.
API Reference¶
Bases: dict
A class that represents events of behavioral experiments.
This class is used for events that do not include the mandatory onset and duration columns. Events are, for example, stimuli presented to the participant or participant responses.
Examples:
Notes
For more details on behavioral experiment files, see BIDS Specification.
Source code in psychopy_bids/bids/bidsbehevent.py
__init__(*args, **kwargs)
¶
Initialize a BIDSBehEvent object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*args
|
tuple
|
Any arguments that the object's superclass's |
()
|
**kwargs
|
dict
|
Any keyword arguments that the object's superclass's |
{}
|
Source code in psychopy_bids/bids/bidsbehevent.py
__repr__()
¶
Return a printable representational string of the given object.
This method returns a string representation of the BIDSBehEvent object containing its attribute-value pairs.
Returns:
str A string representation of the BIDSBehEvent object.