eegunity 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eegunity-0.5.0/LICENSE +21 -0
- eegunity-0.5.0/MANIFEST.in +3 -0
- eegunity-0.5.0/PKG-INFO +89 -0
- eegunity-0.5.0/README.md +58 -0
- eegunity-0.5.0/eegunity/__init__.py +1 -0
- eegunity-0.5.0/eegunity/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/__pycache__/__init__.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/__pycache__/_share_attributes.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/__pycache__/unifieddataset.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/__pycache__/unifieddataset.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/__init__.py +0 -0
- eegunity-0.5.0/eegunity/_modules/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/__pycache__/__init__.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/__init__.py +1 -0
- eegunity-0.5.0/eegunity/_modules/batch/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/__pycache__/__init__.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/__pycache__/eeg_batch.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/__pycache__/eeg_batch.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/__pycache__/eeg_scores.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/__pycache__/method_mixin_epoch.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/batch/eeg_batch.py +1541 -0
- eegunity-0.5.0/eegunity/_modules/batch/eeg_scores.py +510 -0
- eegunity-0.5.0/eegunity/_modules/batch/method_mixin_epoch.py +709 -0
- eegunity-0.5.0/eegunity/_modules/batch/utils.py +14 -0
- eegunity-0.5.0/eegunity/_modules/correction/__init__.py +1 -0
- eegunity-0.5.0/eegunity/_modules/correction/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/correction/__pycache__/eeg_correction.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/correction/eeg_correction.py +279 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/__init__.py +0 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/__pycache__/eeg_llm_booster.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/__pycache__/eeg_llm_des_parser.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/__pycache__/eeg_llm_file_parser.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/eeg_llm_booster.py +11 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/eeg_llm_des_parser.py +236 -0
- eegunity-0.5.0/eegunity/_modules/llm_booster/eeg_llm_file_parser.py +117 -0
- eegunity-0.5.0/eegunity/_modules/parser/__init__.py +1 -0
- eegunity-0.5.0/eegunity/_modules/parser/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/parser/__pycache__/eeg_parser.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/parser/__pycache__/eeg_parser_csv.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/parser/__pycache__/eeg_parser_mat.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/_modules/parser/eeg_parser.py +936 -0
- eegunity-0.5.0/eegunity/_modules/parser/eeg_parser_config.py +83 -0
- eegunity-0.5.0/eegunity/_modules/parser/eeg_parser_csv.py +161 -0
- eegunity-0.5.0/eegunity/_modules/parser/eeg_parser_mat.py +279 -0
- eegunity-0.5.0/eegunity/_resources/__init__.py +0 -0
- eegunity-0.5.0/eegunity/_resources/combined_montage.json +5237 -0
- eegunity-0.5.0/eegunity/_share_attributes.py +8 -0
- eegunity-0.5.0/eegunity/eegunity.egg-info/PKG-INFO +89 -0
- eegunity-0.5.0/eegunity/eegunity.egg-info/SOURCES.txt +75 -0
- eegunity-0.5.0/eegunity/eegunity.egg-info/dependency_links.txt +1 -0
- eegunity-0.5.0/eegunity/eegunity.egg-info/requires.txt +8 -0
- eegunity-0.5.0/eegunity/eegunity.egg-info/top_level.txt +1 -0
- eegunity-0.5.0/eegunity/unifieddataset.py +131 -0
- eegunity-0.5.0/eegunity/utils/__init__.py +5 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/__init__.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/__init__.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/channel_align_raw.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/con_udatasets.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/con_udatasets.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/h5.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/h5.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/handle_errors.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/log_processing.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/normalize.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/normalize.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/pipeline.cpython-310.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/__pycache__/pipeline.cpython-311.pyc +0 -0
- eegunity-0.5.0/eegunity/utils/channel_align_raw.py +86 -0
- eegunity-0.5.0/eegunity/utils/con_udatasets.py +41 -0
- eegunity-0.5.0/eegunity/utils/h5.py +26 -0
- eegunity-0.5.0/eegunity/utils/handle_errors.py +40 -0
- eegunity-0.5.0/eegunity/utils/log_processing.py +8 -0
- eegunity-0.5.0/eegunity/utils/normalize.py +37 -0
- eegunity-0.5.0/eegunity/utils/pipeline.py +39 -0
- eegunity-0.5.0/eegunity/utils/split_hdf5_file.py +115 -0
- eegunity-0.5.0/eegunity.egg-info/PKG-INFO +89 -0
- eegunity-0.5.0/eegunity.egg-info/SOURCES.txt +81 -0
- eegunity-0.5.0/eegunity.egg-info/dependency_links.txt +1 -0
- eegunity-0.5.0/eegunity.egg-info/requires.txt +8 -0
- eegunity-0.5.0/eegunity.egg-info/top_level.txt +1 -0
- eegunity-0.5.0/setup.cfg +4 -0
- eegunity-0.5.0/setup.py +32 -0
eegunity-0.5.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present, EEGUnity Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
eegunity-0.5.0/PKG-INFO
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: eegunity
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: An open source Python pacakge for large-scale EEG datasets processing
|
|
5
|
+
Home-page: https://github.com/Baizhige/EEGUnity
|
|
6
|
+
Author: EEGUnity Team
|
|
7
|
+
Author-email: chengxuan.qin@outlook.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: mne>=1.5.1
|
|
15
|
+
Requires-Dist: numpy>=1.24.0
|
|
16
|
+
Requires-Dist: matplotlib>=3.7.3
|
|
17
|
+
Requires-Dist: h5py>=3.12.1
|
|
18
|
+
Requires-Dist: openai==1.35.1
|
|
19
|
+
Requires-Dist: pdfplumber>=0.11.4
|
|
20
|
+
Requires-Dist: pandas>=2.1.3
|
|
21
|
+
Requires-Dist: scipy>=1.11.2
|
|
22
|
+
Dynamic: author
|
|
23
|
+
Dynamic: author-email
|
|
24
|
+
Dynamic: classifier
|
|
25
|
+
Dynamic: description
|
|
26
|
+
Dynamic: description-content-type
|
|
27
|
+
Dynamic: home-page
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: requires-python
|
|
30
|
+
Dynamic: summary
|
|
31
|
+
|
|
32
|
+
# EEGUnity
|
|
33
|
+
|
|
34
|
+
## Overview
|
|
35
|
+
|
|
36
|
+
EEGUnity is a Python package designed for processing and analyzing `large-scale EEG data` efficiently. This guide will walk you through the Usage on Windows, macOS, and Linux.
|
|
37
|
+
For more details on the motivation, concepts, and vision behind this project, please refer to the paper [EEGUnity: Open-Source Tool in Facilitating Unified EEG Datasets Towards Large-Scale EEG Model](https://arxiv.org/abs/2410.07196)
|
|
38
|
+
|
|
39
|
+
## Usage in Python Project
|
|
40
|
+
(Notes: This repository is planned for release on PyPI and the Conda community once a stable version is achieved.)
|
|
41
|
+
### Prerequisites
|
|
42
|
+
|
|
43
|
+
- Python 3.x
|
|
44
|
+
- Git
|
|
45
|
+
- See [requirements.txt](docs%2Frequirements.txt)
|
|
46
|
+
|
|
47
|
+
### Clone the Repository
|
|
48
|
+
|
|
49
|
+
First, clone the repository using Git:
|
|
50
|
+
|
|
51
|
+
#### Windows, macOS and Linux:
|
|
52
|
+
```bash
|
|
53
|
+
git clone https://github.com/Baizhige/EEGUnity/.git
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Usage in Python Projects
|
|
57
|
+
|
|
58
|
+
To use EEGUnity in your Python project, you will need to copy the `eegunity` folder to your project directory:
|
|
59
|
+
|
|
60
|
+
1. **Copy the `eegunity` folder** from the cloned repository to your Python project's folder:
|
|
61
|
+
|
|
62
|
+
#### Windows:
|
|
63
|
+
- Copy `EEGUnity\eegunity` into your project's directory.
|
|
64
|
+
|
|
65
|
+
#### macOS and Linux:
|
|
66
|
+
- Copy `EEGUnity/eegunity` into your project's directory.
|
|
67
|
+
|
|
68
|
+
2. Your project structure should resemble the following:
|
|
69
|
+
```
|
|
70
|
+
my_project/
|
|
71
|
+
│
|
|
72
|
+
├── eegunity/
|
|
73
|
+
│ └── __init__.py
|
|
74
|
+
└── your_script.py
|
|
75
|
+
```
|
|
76
|
+
3. Import the package in your Python project like this:
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
from eegunity import UnifiedDataset
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
# Tutorial
|
|
83
|
+
1. How to Format Channel Name and Inspect Channel Data: [Click here to view the tutorial](./tutorial/How%20to%20Format%20Channel%20Name%20and%20Inspect%20Metadata.md)
|
|
84
|
+
2. How to Process Data and Export as h5Dataset: [Click here to view the tutorial](./tutorial/How%20to%20Process%20Data%20and%20Export%20as%20h5Dataset.md)
|
|
85
|
+
3. How to Read h5Dataset: [Click here to view the tutorial](./tutorial/How%20to%20Read%20h5Dataset.md)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
# Project Documentation
|
|
89
|
+
You can view the project manual through the following link: [Click here to view the manual](https://eegunity.readthedocs.io/en/latest/)
|
eegunity-0.5.0/README.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# EEGUnity
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
EEGUnity is a Python package designed for processing and analyzing `large-scale EEG data` efficiently. This guide will walk you through the Usage on Windows, macOS, and Linux.
|
|
6
|
+
For more details on the motivation, concepts, and vision behind this project, please refer to the paper [EEGUnity: Open-Source Tool in Facilitating Unified EEG Datasets Towards Large-Scale EEG Model](https://arxiv.org/abs/2410.07196)
|
|
7
|
+
|
|
8
|
+
## Usage in Python Project
|
|
9
|
+
(Notes: This repository is planned for release on PyPI and the Conda community once a stable version is achieved.)
|
|
10
|
+
### Prerequisites
|
|
11
|
+
|
|
12
|
+
- Python 3.x
|
|
13
|
+
- Git
|
|
14
|
+
- See [requirements.txt](docs%2Frequirements.txt)
|
|
15
|
+
|
|
16
|
+
### Clone the Repository
|
|
17
|
+
|
|
18
|
+
First, clone the repository using Git:
|
|
19
|
+
|
|
20
|
+
#### Windows, macOS and Linux:
|
|
21
|
+
```bash
|
|
22
|
+
git clone https://github.com/Baizhige/EEGUnity/.git
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Usage in Python Projects
|
|
26
|
+
|
|
27
|
+
To use EEGUnity in your Python project, you will need to copy the `eegunity` folder to your project directory:
|
|
28
|
+
|
|
29
|
+
1. **Copy the `eegunity` folder** from the cloned repository to your Python project's folder:
|
|
30
|
+
|
|
31
|
+
#### Windows:
|
|
32
|
+
- Copy `EEGUnity\eegunity` into your project's directory.
|
|
33
|
+
|
|
34
|
+
#### macOS and Linux:
|
|
35
|
+
- Copy `EEGUnity/eegunity` into your project's directory.
|
|
36
|
+
|
|
37
|
+
2. Your project structure should resemble the following:
|
|
38
|
+
```
|
|
39
|
+
my_project/
|
|
40
|
+
│
|
|
41
|
+
├── eegunity/
|
|
42
|
+
│ └── __init__.py
|
|
43
|
+
└── your_script.py
|
|
44
|
+
```
|
|
45
|
+
3. Import the package in your Python project like this:
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from eegunity import UnifiedDataset
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
# Tutorial
|
|
52
|
+
1. How to Format Channel Name and Inspect Channel Data: [Click here to view the tutorial](./tutorial/How%20to%20Format%20Channel%20Name%20and%20Inspect%20Metadata.md)
|
|
53
|
+
2. How to Process Data and Export as h5Dataset: [Click here to view the tutorial](./tutorial/How%20to%20Process%20Data%20and%20Export%20as%20h5Dataset.md)
|
|
54
|
+
3. How to Read h5Dataset: [Click here to view the tutorial](./tutorial/How%20to%20Read%20h5Dataset.md)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# Project Documentation
|
|
58
|
+
You can view the project manual through the following link: [Click here to view the manual](https://eegunity.readthedocs.io/en/latest/)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .unifieddataset import UnifiedDataset
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .eeg_batch import EEGBatch
|