eeg_hist#

eeg_hist(eeg, command)#

Append command to eeg["history"] and return the same dataset.

The command is stored on its own line, including a leading newline when the history was empty. A character matrix or a list of rows is joined with newlines before that command is added. A command that contains pop_loadset is not recorded. A missing history field becomes an empty string.

Parameters:
  • eeg (dict[str, Any]) – EEG dataset dictionary.

  • command (str) – History command text.

Returns:

eeg, updated in place.

Return type:

dict[str, Any]