eegunity package#
Core API#
eegunity.unifieddataset module#
- class eegunity.unifieddataset.UnifiedDataset(dataset_path=None, locator_path=None, domain_tag=None, is_unzip=True, verbose='CRITICAL', num_workers=0, kernel_spec=None, min_file_size=5242880)[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.
- 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.
- load_kernel(kernel_spec)[source]#
Load an external kernel and bind it to this dataset.
- Parameters:
kernel_spec (str) – Spec string in the form
"<path_or_module>:<object_name>". This can be called at construction time or any time later.- Returns:
The loaded kernel object.
- Return type:
Any
- Raises:
ValueError – If the loaded object does not implement
apply(udataset, raw, row).
- get_locator()[source]#
Return the locator in DataFrame.
Returns:#
- pandas.DataFrame
The locator DataFrame associated with the dataset.
- Parameters:
dataset_path (str)
locator_path (str)
domain_tag (str)
is_unzip (bool)
verbose (str)
num_workers (int)
kernel_spec (str)
min_file_size (int)
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.label_channel module
- eegunity.utils.log_processing module
- eegunity.utils.normalize module
- eegunity.utils.parallel module
- eegunity.utils.pipeline module
- eegunity.utils.split_hdf5_file module
- Package exports