eegunity package#
Subpackages#
- eegunity.modules package
- eegunity.resources package
- eegunity.utils package
- Submodules
- eegunity.utils.channel_align_raw module
- eegunity.utils.con_udatasets module
- eegunity.utils.h5 module
- eegunity.utils.handle_errors module
- eegunity.utils.log_processing module
- eegunity.utils.normalize module
- eegunity.utils.pipeline module
- eegunity.utils.split_hdf5_file module
- Module contents
Submodules#
eegunity.unifieddataset module#
- class eegunity.unifieddataset.UnifiedDataset(dataset_path: str | None = None, locator_path: str | None = None, domain_tag: str | None = None, is_unzip: bool = True, verbose: str = 'CRITICAL')[source]#
Bases:
_UDatasetSharedAttributesThis is the kernel class to manage mutiple EEG datasets and associated processing tools.
Attributes:#
- dataset_pathstr, optional
Path to the dataset (folder). Should not be provided alongside locator_path.
- locator_pathstr, optional
Path to the locator. Should not be provided alongside dataset_path.
- is_unzipbool, optional
If set to True, any Zip files in the specified dataset will be unzipped. Be aware that unzipping may modify the dataset.
- domain_tagstr, optional
The domain tag identifies the dataset name and is required if you specify a dataset path.
- verbosestr, optional
Level of verbosity for logging (default is ‘CRITICAL’).
- eeg_parserEEGParser
EEGParser module
- eeg_batchEEGBatch
EEGBatch module
- eeg_correctionEEGCorrection
EEGCorrection module
- llm_boosterEEGLLMBooster
EEGLLMBooster module
- copy()[source]#
Create a deep copy of the UnifiedDataset instance.
Returns:#
- UnifiedDataset
A deep copy of the current UnifiedDataset instance.
- get_locator()[source]#
Return the locator in DataFrame.
Returns:#
- pandas.DataFrame
The locator DataFrame associated with the dataset.
- group_by_domain()[source]#
Groups the locator data by the ‘domain_tag’ and returns multiple UnifiedDataset instances.
Returns:#
List[UnifiedDataset] : A list of UnifiedDataset instances, each grouped by domain.
- save_locator(path)[source]#
Save the locator of this UnifiedDataset to a CSV file at the specified path. This file is helpful for checking the current status and metadata after data processing. You can also reload the UnifiedDataset later by using this locator file, for example: unified_dataset = UnifiedDataset(locator_path=”your_locator_path”)
Parameters:#
- pathstr
The file path where the locator should be saved.