Pymef is a wrapper library for Multiscale Electrophysiology Format developed by MSEL laboratory.
Currently available for all major distributions (Linux, Mac OS, Windows). Only python 3 is supported.
- Support for parallelisation of signal processing
- Data compression
- Data encryption
- Real-time read/write, failure when writing file leaves intact valid files
- CRC functionality to detect data corruption
- Support for time discontinuities
- Support for time series and video channels
- MEF3 files write/read
- Convenience functions to easily read data and metadata for multiple channels
To install please use:
pip install pymef
To install from source:
python setup.py install
from pymef.mef_session import MefSession
session_path = '/path/to/session.mefd'
password = 'mef_password' // leave blank if no password
# read session metadata
ms = MefSession(session_path, password)
# read data of a single channel from beginning to end
data = ms.read_ts_channels_sample('Ch01', [[None, None]])
# read data of multiple channels from beginning to end
data = ms.read_ts_channels_sample(['Ch01', 'Ch05'], [[None, None]])
The MEF3 specification can be found here. The PyMef documentation can be found here.
Please report problems to [email protected].
Pymef is licensed under the Apache software license. See LICENSE.txt for details.