Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 289, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 83, in _split_generators
                  raise ValueError(
              ValueError: The TAR archives of the dataset should be in WebDataset format, but the files in the archive don't share the same prefix or the same types.
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 65, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 343, in get_dataset_split_names
                  info = get_dataset_config_info(
                         ^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 294, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Light Modulation Analysis Dataset

Code

Dataset Description

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.

Dataset Summary

  • Total Files: ~5,000 files
  • Dataset Size: ~436 MB (compressed: ~XXX MB)
  • Modulation Types: Sinusoidal and Square waveforms
  • Data Types:
    • Raw JT curve time-series data (.txt files)
    • Extracted JT cycle features (CSV)
    • FFT spectral analysis features (CSV)
    • GRASPI morphological features (CSV)
    • Analysis plots and visualizations (PNG)

Dataset Structure

data/
β”œβ”€β”€ modulation_profile/          # Light modulation waveform definitions
β”‚   β”œβ”€β”€ LM_sinusoidal.txt
β”‚   └── LM_square.txt
β”œβ”€β”€ all_jt_curves/               # Raw JT curve time-series data
β”‚   β”œβ”€β”€ sinusoidal/             # Sinusoidal modulation JT curves
β”‚   └── square/                 # Square modulation JT curves
β”œβ”€β”€ sample_jt_curves/           # Sample subset of JT curves
β”œβ”€β”€ morph_images/               # Morphology images
β”œβ”€β”€ jt_features_out/             # Extracted JT cycle features
β”‚   β”œβ”€β”€ jt_features_sinusoidal.csv
β”‚   β”œβ”€β”€ jt_features_square.csv
β”‚   └── figs_*/                 # Analysis plots
β”œβ”€β”€ fft_features_out/           # FFT spectral analysis features
β”‚   β”œβ”€β”€ fft_features_sinusoidal.csv
β”‚   β”œβ”€β”€ fft_features_square.csv
β”‚   └── */                      # FFT spectrum plots
β”œβ”€β”€ features_data.csv           # Merged feature dataset
β”œβ”€β”€ graspi_features.csv         # GRASPI morphological features
└── figures/                    # Publication-quality figures

Data Fields

JT Curve Files (.txt)

Each JT curve file contains time-series data with the following columns:

  • time(sec): Time in seconds
  • J: Current density in mA/cmΒ²

JT Features

Extracted features from JT cycle analysis:

  • Peak Features: peak_value, peak_time, left_min_value, right_min_value
  • Amplitude Features: left_amplitude, right_amplitude, avg_amplitude
  • Temporal Features: rise_time_ps, fall_time_ps, cycle_time_ps, time_avg_value
  • Phase Features: phase_shift_ps
  • Shape Features: skewness, skewness_2, asymmetry
  • Metadata: filename, modulation_type

FFT Features

Spectral analysis features:

  • f1_Hz: Fundamental frequency (Hz)
  • H1_amp: Fundamental harmonic amplitude
  • THD_ratio: Total Harmonic Distortion
  • OER_odd_over_even: Odd-to-even harmonic ratio
  • harmonic_decay_slope_per_k: Harmonic amplitude decay slope
  • sampling_jitter: Temporal sampling jitter
  • filename, modulation_type

Usage

Download the Dataset

Option 1: Using the provided script (Recommended)

  1. Clone the Light Modulation Analysis repository:

    git clone https://github.com/baskargroup/LightModulation.git
    cd LightModulation
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Download the data:

    python download_data_from_hf.py --repo-id BGlab/light-modulation-data
    

The script will automatically:

  • Download the compressed archive
  • Extract to data/ folder in the git root
  • Verify the extraction

Option 2: Using Hugging Face Hub

from huggingface_hub import hf_hub_download
import tarfile

# Download the archive
archive_path = hf_hub_download(
    repo_id="BGlab/light-modulation-data",
    filename="data.tar.gz",
    repo_type="dataset"
)

# Extract to current directory
with tarfile.open(archive_path, 'r:gz') as tar:
    tar.extractall()

Using the Data

Once downloaded, you can load the feature datasets:

import pandas as pd

# Load merged features
features = pd.read_csv('data/features_data.csv')

# Load GRASPI features
graspi = pd.read_csv('data/graspi_features.csv', delimiter=' ')

Dataset Creation

Source Data

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.

Preprocessing

  1. JT Cycle Analysis: Extracted temporal and amplitude features from current-time cycles
  2. FFT Analysis: Performed spectral decomposition to extract harmonic content
  3. Feature Merging: Combined JT, FFT, and GRASPI features into unified dataset

Analysis Windows

  • Sinusoidal modulation: Analysis window [0.89e-9, 0.96e-9] seconds
  • Square modulation: Analysis window [0.8e-9, 0.9e-9] seconds

Citation

If you use this dataset in your research, please cite:

@dataset{light_modulation_2024,
  title={Light Modulation Analysis Dataset},
  author={BGlab},
  year={2024},
  url={https://huggingface.co/datasets/BGlab/light-modulation-data}
}

License

This dataset is released under the MIT License.

Contact

For questions or issues, please contact the maintainers.

Acknowledgments

This dataset was created as part of research on light modulation effects in organic photovoltaic devices.

Downloads last month
6