eegprep.pop_interp#

eegprep.pop_interp(EEG=<object object>, bad_elec=<object object>, method=None, t_range=None, *, gui=None, renderer=None, alleeg=None, return_com=False)#

Interpolate EEG channels using EEGLAB pop_interp semantics.

Parameters:
  • EEG (dict | str | object) – EEG dictionary. MATLAB callback-string mode is handled internally by the GUI renderer in EEGPrep rather than by public string calls.

  • bad_elec (Any) – 0-based channel indices, channel labels, or channel-location dictionaries to interpolate. When omitted, the EEGLAB-like GUI is shown.

  • method (str | None) – Interpolation method. Defaults to "spherical" when bad_elec is provided, matching EEGLAB.

  • t_range (Any) – Optional [start, end] interpolation time range in seconds.

  • gui (bool | None) – Force or suppress the GUI path.

  • renderer (Any | None) – Optional dialog renderer for tests or alternate frontends.

  • alleeg (list[dict] | None) – Optional list of loaded EEG datasets used by the GUI’s “other dataset” channel-source buttons.

  • return_com (bool) – Return (EEG, command) when true.

Returns:

Interpolated EEG, and optionally the EEGLAB history command generated by the GUI path.

Return type:

dict or tuple