Experiment Module

Experiment module for DRIADA.

This module provides the core Experiment class and utilities for loading, saving, and generating synthetic experimental data.

Core data structures and utilities for managing neural experiments, including data loading/saving, spike reconstruction, wavelet analysis, and synthetic data generation.

Module Components

Usage Example

from driada.experiment import Experiment, load_exp_from_pickle

# Load saved experiment
# Replace with your actual experiment file path
# sample_pkl_path = "path/to/your/experiment.pkl"
# exp = load_exp_from_pickle(sample_pkl_path)

# Or create synthetic data
from driada.experiment import generate_circular_manifold_exp
exp = generate_circular_manifold_exp(
    n_neurons=50,
    duration=600,
    noise_std=0.1
)

# Access data
calcium_data = exp.calcium  # MultiTimeSeries

# Reconstruct spikes
from driada.experiment import reconstruct_spikes
spikes = reconstruct_spikes(exp.calcium, fps=exp.fps, method='wavelet')