iblrig.gui.online_plots.BpodWidget

- class iblrig.gui.online_plots.BpodWidget[source]
A widget for visualizing Bpod data in a graphical layout.
This widget displays digital channels and Bpod states over time, allowing for the visualization of trial data.
- __init__(*args, title=None, alpha=64, channels=None, showStatusTips=True, **kwargs)[source]
Initialize the BpodWidget.
- Parameters:
*args (
tuple
) – Positional arguments to be passed to the parent class.title (
str | None
, optional) – The title of the widget (default is None).alpha (
int
, optional) – The alpha value used in color-coding the Bpod states. Default: 64.channels (
Iterable
, optional) – An iterable of channel names to be included in the plot. Defaults are BNC1, BNC2, and Port1.showStatusTips (
bool
, optional) – Show status tips when hovering the mouse over state regions. Default: True**kwargs (
dict
) – Keyword arguments to be passed to the parent class.
- Parameters:
- setData(data)[source]
Set the data for the widget and update the display.
- Parameters:
data (
pd.DataFrame
) – The data to be displayed in the widget. The data needs to be organized according to the format returned bybpod_trial_data_to_dataframe()
.- Parameters:
data (DataFrame)
- showTrial()[source]
Display the trial data in the widget. This method updates the limits and plots for each digital channel.
- data = Empty DataFrame Columns: [] Index: []
- meshes: dict[str, StateMeshItem] = {}