Metadata-Version: 2.1
Name: bbtkv2
Version: 0.2
Summary: Code to control the BlackBox ToolKit v2 device for audio-visual timing checks
Home-page: https://github.com/chrplr/bbtkv2_python
Author: Christophe Pallier
Author-email: christophe@pallier.org
Project-URL: Documentation, https://bbtkv2.rtfd.io
Project-URL: Bug Tracker, https://github.com/chrplr/bbtkv2_python/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

<p align="center">

![](docs/images/bbtkv2.png)

</p>

The [BlackBox ToolKit v2](https://www.blackboxtoolkit.com/bbtkv2.html) is a device that allows psychologists to accurately measure the timing of audio-visual stimuli.

The BBTKv2 communicates via a serial protocol over USB. The _bbtkv2_ python module provided here encapsualtes (some of) the commands described in the _API Guide_. 
In a nutshell:

    import bbtkv2 

    bb = bbtkv2.BlackBoxToolKit()
    bb.adjust_thresholds()  # adjust the thresholds manually
    bb.clear_timing_data()
    text = bb.capture(10)
    df1 = bbtkv2.capture_output_to_dataframe(text)
    processed_events = bbtkv2.capture_dataframe_to_events(df1)
    print(processed_events)


# Documentation

Check <https://bbtkv2.readthedocs.io/en/latest/intro.html>


# Installation

    pip install bbtkv2==0.1 

---

Christophe@Pallier.org



