class TMSiFrontend.plotters.impedance_plotter.ImpedancePlotter(*args: Any, **kwargs: Any)#

Bases: Plotter

ImpedancePlotter object

__init__(device_type='saga', is_headcap=False, name='Impedance Plotter')#

Initialize impedance plotter

Parameters:
  • device_type (str, optional) – devuce type. saga or apex

  • is_headcap (bool, optional) – show or not the head on the background, defaults to True

  • name (str, optional) – name of the plotter, defaults to “Impedance Plotter”

Methods

__init__([device_type, is_headcap, name])

Initialize impedance plotter

get_channels_status()

Get channels status from the table

initialize_table_impedance_values(channels)

Initialize the table of impedances

set_electrode_position(channels, coordinates)

Set position of the electode on the chart

update_chart(data_to_plot)

Update chart

get_channels_status()#

Get channels status from the table

Returns:

return the status of the channel in the table (checked or not)

Return type:

dict()

initialize_table_impedance_values(channels)#

Initialize the table of impedances

Parameters:

channels (list) – list of impedance channels

set_electrode_position(channels, coordinates, reordered_indices=None)#

Set position of the electode on the chart

Parameters:
  • channels (list) – list of channels

  • coordinates (TMSiGrids or TMSiHeadcaps) – coordinates of the electrodes

  • reordered_indices (list, optional) – reordered indices, defaults to None

update_chart(data_to_plot)#

Update chart

Parameters:

data_to_plot (list) – data to be plotted