BGLab commited on
Commit
8a8c7bb
·
verified ·
1 Parent(s): 672a820

add readme.md file

Browse files
Files changed (1) hide show
  1. README.md +185 -3
README.md CHANGED
@@ -1,3 +1,185 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: LightModulation
3
+ license: mit
4
+ task_categories:
5
+ - other
6
+ tags:
7
+ - polymer-electronics
8
+ - simulation
9
+ - light-modulation
10
+ - organic-photovoltaics
11
+ - current-density
12
+ - fft-analysis
13
+ size_categories:
14
+ - 1K<n<10K
15
+ ---
16
+
17
+ # Light Modulation Analysis Dataset
18
+ [![Code](https://img.shields.io/badge/GitHub-Code-black?logo=github)](https://github.com/baskargroup/LightModulation)
19
+
20
+ ## Dataset Description
21
+
22
+ This dataset contains current-time curve data, extracted features, and analysis outputs from light modulation simulations of organic photovoltaic devices. The dataset includes both raw JT curves and processed features from FFT (Fast Fourier Transform) and JT cycle analysis.
23
+
24
+ ### Dataset Summary
25
+
26
+ - **Total Files**: ~5,000 files
27
+ - **Dataset Size**: ~436 MB (compressed: ~XXX MB)
28
+ - **Modulation Types**: Sinusoidal and Square waveforms
29
+ - **Data Types**:
30
+ - Raw JT curve time-series data (.txt files)
31
+ - Extracted JT cycle features (CSV)
32
+ - FFT spectral analysis features (CSV)
33
+ - GRASPI morphological features (CSV)
34
+ - Analysis plots and visualizations (PNG)
35
+
36
+ ## Dataset Structure
37
+
38
+ ```
39
+ data/
40
+ ├── modulation_profile/ # Light modulation waveform definitions
41
+ │ ├── LM_sinusoidal.txt
42
+ │ └── LM_square.txt
43
+ ├── all_jt_curves/ # Raw JT curve time-series data
44
+ │ ├── sinusoidal/ # Sinusoidal modulation JT curves
45
+ │ └── square/ # Square modulation JT curves
46
+ ├── sample_jt_curves/ # Sample subset of JT curves
47
+ ├── morph_images/ # Morphology images
48
+ ├── jt_features_out/ # Extracted JT cycle features
49
+ │ ├── jt_features_sinusoidal.csv
50
+ │ ├── jt_features_square.csv
51
+ │ └── figs_*/ # Analysis plots
52
+ ├── fft_features_out/ # FFT spectral analysis features
53
+ │ ├── fft_features_sinusoidal.csv
54
+ │ ├── fft_features_square.csv
55
+ │ └── */ # FFT spectrum plots
56
+ ├── features_data.csv # Merged feature dataset
57
+ ├── graspi_features.csv # GRASPI morphological features
58
+ └── figures/ # Publication-quality figures
59
+ ```
60
+
61
+ ## Data Fields
62
+
63
+ ### JT Curve Files (.txt)
64
+ Each JT curve file contains time-series data with the following columns:
65
+ - `time(sec)`: Time in seconds
66
+ - `J`: Current density in mA/cm²
67
+
68
+ ### JT Features
69
+ Extracted features from JT cycle analysis:
70
+ - **Peak Features**: `peak_value`, `peak_time`, `left_min_value`, `right_min_value`
71
+ - **Amplitude Features**: `left_amplitude`, `right_amplitude`, `avg_amplitude`
72
+ - **Temporal Features**: `rise_time_ps`, `fall_time_ps`, `cycle_time_ps`, `time_avg_value`
73
+ - **Phase Features**: `phase_shift_ps`
74
+ - **Shape Features**: `skewness`, `skewness_2`, `asymmetry`
75
+ - **Metadata**: `filename`, `modulation_type`
76
+
77
+ ### FFT Features
78
+ Spectral analysis features:
79
+ - `f1_Hz`: Fundamental frequency (Hz)
80
+ - `H1_amp`: Fundamental harmonic amplitude
81
+ - `THD_ratio`: Total Harmonic Distortion
82
+ - `OER_odd_over_even`: Odd-to-even harmonic ratio
83
+ - `harmonic_decay_slope_per_k`: Harmonic amplitude decay slope
84
+ - `sampling_jitter`: Temporal sampling jitter
85
+ - `filename`, `modulation_type`
86
+
87
+
88
+ ## Usage
89
+
90
+ ### Download the Dataset
91
+
92
+ #### Option 1: Using the provided script (Recommended)
93
+
94
+ 1. Clone the Light Modulation Analysis repository:
95
+ ```bash
96
+ git clone https://github.com/baskargroup/LightModulation.git
97
+ cd LightModulation
98
+ ```
99
+
100
+ 2. Install dependencies:
101
+ ```bash
102
+ pip install -r requirements.txt
103
+ ```
104
+
105
+ 3. Download the data:
106
+ ```bash
107
+ python download_data_from_hf.py --repo-id BGlab/light-modulation-data
108
+ ```
109
+
110
+ The script will automatically:
111
+ - Download the compressed archive
112
+ - Extract to `data/` folder in the git root
113
+ - Verify the extraction
114
+
115
+ #### Option 2: Using Hugging Face Hub
116
+
117
+ ```python
118
+ from huggingface_hub import hf_hub_download
119
+ import tarfile
120
+
121
+ # Download the archive
122
+ archive_path = hf_hub_download(
123
+ repo_id="BGlab/light-modulation-data",
124
+ filename="data.tar.gz",
125
+ repo_type="dataset"
126
+ )
127
+
128
+ # Extract to current directory
129
+ with tarfile.open(archive_path, 'r:gz') as tar:
130
+ tar.extractall()
131
+ ```
132
+
133
+ ### Using the Data
134
+
135
+ Once downloaded, you can load the feature datasets:
136
+
137
+ ```python
138
+ import pandas as pd
139
+
140
+ # Load merged features
141
+ features = pd.read_csv('data/features_data.csv')
142
+
143
+ # Load GRASPI features
144
+ graspi = pd.read_csv('data/graspi_features.csv', delimiter=' ')
145
+ ```
146
+
147
+ ## Dataset Creation
148
+
149
+ ### Source Data
150
+ The dataset was generated from light modulation simulations of organic photovoltaic devices. JT curves were collected from simulation outputs and processed using the Light Modulation Analysis pipeline.
151
+
152
+ ### Preprocessing
153
+ 1. **JT Cycle Analysis**: Extracted temporal and amplitude features from current-time cycles
154
+ 2. **FFT Analysis**: Performed spectral decomposition to extract harmonic content
155
+ 3. **Feature Merging**: Combined JT, FFT, and GRASPI features into unified dataset
156
+
157
+ ### Analysis Windows
158
+ - **Sinusoidal modulation**: Analysis window [0.89e-9, 0.96e-9] seconds
159
+ - **Square modulation**: Analysis window [0.8e-9, 0.9e-9] seconds
160
+
161
+ ## Citation
162
+
163
+ If you use this dataset in your research, please cite:
164
+
165
+ ```bibtex
166
+ @dataset{light_modulation_2024,
167
+ title={Light Modulation Analysis Dataset},
168
+ author={BGlab},
169
+ year={2024},
170
+ url={https://huggingface.co/datasets/BGlab/light-modulation-data}
171
+ }
172
+ ```
173
+
174
+ ## License
175
+
176
+ This dataset is released under the MIT License.
177
+
178
+ ## Contact
179
+
180
+ For questions or issues, please contact the maintainers.
181
+
182
+ ## Acknowledgments
183
+
184
+ This dataset was created as part of research on light modulation effects in organic photovoltaic devices.
185
+