Skip to main content

mini-mne

A simplified wrapper around MNE-Python for teaching EEG data analysis. mini-mne exposes only the essential classes and methods, reducing the cognitive load for learners who are new to EEG preprocessing and analysis.

Installation

pip install --upgrade mini-mne

Requires Python ≥ 3.11.

Usage

mini-mne follows the standard EEG analysis pipeline: load continuous data → epoch around events → compute ERPs.

from mini_mne import SimpleRaw, SimpleEpoch, SimpleEvoked, plot_evokeds

# Load data (downloads the MNE ERP-CORE example dataset if no path is given)
raw = SimpleRaw()

# Inspect the data
print(raw)
print(raw.sampling_frequency)  # Hz
print(raw.channel_names)
print(raw.duration)            # seconds

# Preprocess
raw = raw.filter(l_freq=0.1, h_freq=40.0)
raw = raw.re_reference()

# Extract events from annotations
events, event_id = raw.get_events()

# Epoch the data
epochs = SimpleEpoch(raw, events, event_id,
                     tmin=-0.2, tmax=0.8,
                     baseline=(-0.2, 0),
                     reject={"eeg": 100e-6})

print(epochs)
print(epochs.event_types)
print(epochs.dropped_epochs)

# Compute ERPs
evokeds = epochs.average(by_event_type=True)

# Plot
plot_evokeds(evokeds)

Classes

Class Wraps Purpose
SimpleRaw mne.io.Raw Continuous EEG data
SimpleEpoch mne.Epochs Segmented data around events
SimpleEvoked mne.Evoked Averaged ERP

Licence

mini-mne is licenced under the BSD-3-Clause licence.

Acknowledgements

mini-mne is built on top of MNE-Python. The default example dataset is from the ERP-CORE dataset (Kappenman et al., 2021).

Metadata

Release files for mini-mne 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mini-mne 0.1.4
File Size Uploaded
mini_mne-0.1.4.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mini-mne 0.1.4
File Interpreter ABI Platform
mini_mne-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / mini_mne-0.1.4.tar.gz

Download URL mini_mne-0.1.4.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9c92e5e891c432d856327673c51d83a3155f5021d96c7a32cc3b891f07355e47
BLAKE2b-256 checksum
How to use checksums
ac2dd29235ce2b648171ba3f738c12f4c69b4ef48e30eac727d6b655351e37a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mini_mne-0.1.4-py3-none-any.whl

Download URL mini_mne-0.1.4-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7915bd1e9f0fa1a0810f66b62d4d72481c454ce466105576c68ad178bea3ab4
BLAKE2b-256 checksum
How to use checksums
c60325ea71cbfb327a3cf031cc905b01fe0b5aa1acf348292e58868829586235
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.1.5

2 release files

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page