Metadata-Version: 2.1
Name: psychopy-bids
Version: 2023.1.0
Summary: A PsychoPy plugin for using the Brain Imaging Data Structure (BIDS) to organize and describe data.
Home-page: https://pypi.org/project/psychopy-bids/
License: GNU General Public License v3.0
Keywords: data,dataset,bids
Author: Christoph Anzengruber
Author-email: christoph.anzengruber@uni-graz.at
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Dist: PsychoPy (>=2023.1.0,<2024.0.0)
Requires-Dist: pandas (>=1.4.3,<2.0.0)
Project-URL: Documentation, https://psychopy-bids.readthedocs.io/en/latest/
Project-URL: Repository, https://gitlab.com/psygraz/psychopy-bids/
Description-Content-Type: text/markdown

# psychopy_bids

A [PsychoPy](https://www.psychopy.org/) plugin to work with the [Brain Imaging Data Structure (BIDS)](https://bids-specification.readthedocs.io/)

## Installation

```bash
$ pip install psychopy_bids
```

## Usage

`psychopy_bids` can be used to create valid BIDS datasets by adding the possibility of using [task events](https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/05-task-events.html) in PsychoPy.

```python
from psychopy_bids import bids

handler = bids.BIDSHandler(dataset="example", subject="01", task="A")
handler.createDataset()

event_list = [{'trigger': bids.BIDSTaskEvent(onset=1.0, duration=0, trial_type="trigger")}]
participant_info = {'participant_id': handler.subject, 'age': 18}

handler.addTaskEvents(event_list, participant_info)
```

## Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

## License

`psychopy_bids` was created by Christoph Anzengruber & Florian Schöngaßner. It is licensed under the terms of the GNU General Public License v3.0 license.

## Credits

`psychopy_bids` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).

