A package to export events to be used in BIDS datasets.
Project description
bids_events
Tool to export events from presentation log files.
Installation
pip install bids_events
Example of use
with Presentation LOGS
from bids_events.presentation import LogHandler as Log
cols = [
['trial_type', Log.COL_CODE, r'cue.*'],
['fix_after_cue', Log.COL_CODE, r'fixAfterCue', Log.COL_TIME],
['reward', Log.COL_CODE, r'rew.*', Log.COL_CODE],
['response', Log.COL_CODE, r'press', Log.COL_TTIME],
['fix2', Log.COL_CODE, r'fix2', Log.COL_TTIME]
]
log = Log('S001-Run1.log')
log.extract_trials( cols )
log.export_bids('sub-S001_task-emotion_run-1')
For a full example, please, check the ./tests
folder.
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
bids_events-0.0.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for bids_events-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a2c8e8efbd38626d7dab667e8d9d9b5dab2bbe111e64d5061b1d7455125d56d |
|
MD5 | beb08d5387425ce0ecc12acb8add98d3 |
|
BLAKE2b-256 | 8f3f659c5f29a8a9e649d08ebffaf14ec0545410986e9a957b59542251b6462a |