eegprep.EEGobj#
- class eegprep.EEGobj(EEG_or_path)#
Bases:
objectWrapper class for EEG datasets stored as dictionaries.
Provides attribute access to EEG fields and method calls to eegprep functions.
- __init__(EEG_or_path)#
Initialize from an EEG dict or a file path string.
If string: loads dataset with pop_loadset(path).
If dict: uses it directly.
Methods
__init__(EEG_or_path)Initialize from an EEG dict or a file path string.
- __init__(EEG_or_path)#
Initialize from an EEG dict or a file path string.
If string: loads dataset with pop_loadset(path).
If dict: uses it directly.
- __getattr__(name)#
Access EEG fields or eegprep functions.
If ‘name’ is a key in EEG, return EEG[name] (convenience).
If ‘name’ is a function in eegprep, return a wrapper that: self.EEG = func(deepcopy(self.EEG), …) and returns updated EEG for convenience.
- __setattr__(name, value)#
Set attributes on the underlying EEG dict when possible, else on the wrapper.
- __repr__()#
Multi-line, MNE-like summary of the EEG object.
Shows key metadata, data shape, sampling info, time span, and brief events/channels info.
- __str__()#
Multi-line, MNE-like summary of the EEG object.
Shows key metadata, data shape, sampling info, time span, and brief events/channels info.