Montage

class bci_framework.framework.widgets.montage.Montage(core)[source]

Widget that handle the montage, electrodes channels, and impedances.

change_plot() None[source]

Switch between Montage and Impedance.

connect() None[source]

Connect events.

delete_montage(*args, **kwargs) None[source]

Remove montage.

generate_list_channels() None[source]

Update the widgets to set the channel to the electrode.

get_mne_montage() mne.channels.DigMontage[source]

Create montage from GUI options.

load_montage(event=None) None[source]

Load the selected montage.

save_montage() None[source]

Save current montage.

set_saved_montages() None[source]

Load saved montages.

set_spliter_position() None[source]

Delay method to redraw the figure.

update_environ() None[source]

Update environment variables.

update_impedance(z: Optional[List[float]] = None) None[source]

Send the impedance values to the drawer.

update_topoplot() None[source]

Redraw topoplot.

validate_channels() None[source]

Highlight misconfigurations.

class bci_framework.framework.widgets.montage.TopoplotBase(*args: Any, **kwargs: Any)[source]

The figure will try to resize so fast that freezes the main window.

do_resize_now() None[source]

Resize plot.

resizeEvent(event) None[source]

Slow down the resize event.

class bci_framework.framework.widgets.montage.TopoplotImpedances(*args: Any, **kwargs: Any)[source]

Topoplot with electrodes impedances.

add_colorbar() None[source]

Draw color bar to indicate the impedance value.

raw_to_z(v: Volts) Impedance[source]

Convert voltage to impedance.

remove_overlaping(info, channels_names) None[source]

Remove channels that overlap positions.

reset_plot() None[source]

Ajust figure positions.

update_impedances(montage: mne.channels.DigMontage, electrodes: List[str], impedances: Dict[str, float], montage_name: Optional[str] = None) None[source]

Redraw electrodes with background colors.

class bci_framework.framework.widgets.montage.TopoplotMontage(*args: Any, **kwargs: Any)[source]

Topoplot with electrodes positions.

reset_plot() None[source]

Ajust figure positions.

update_montage(montage: mne.channels.DigMontage, electrodes: List[str], montage_name: Optional[str] = None) None[source]

Redraw electrodes positions.