Skip to content

Repository files navigation

BrightEyes-MCS-Reader

Reader-only utilities for BrightEyes MCS HDF5 files.

This package contains the current schema reader in

  • brighteyes_mcs_reader.reader for the h5 scheme > 0.0.6
  • the legacy compatibility helpers in brighteyes_mcs_reader.reader_legacy for the pure raw output of BrightEyes-MCS (h5 scheme == 0.0.2).

Install

pip install brighteyes-mcs-reader

Usage

from brighteyes_mcs_reader import list_datasets, read_signal

for info in list_datasets("measurement.h5"):
    print(info.path, info.kind, info.shape)

signal = read_signal("measurement.h5", time=0, depth=0, channel="sum")
print(signal.data.shape, signal.dims)

Legacy files can be loaded with:

from brighteyes_mcs_reader import reader_legacy

data, metadata = reader_legacy.load("legacy_measurement.h5")

Calibration, output building, conversion, alignment, and plotting helpers have moved to BrightEyes-MCS-DataPrep.

About

Reader-only utilities for BrightEyes MCS HDF5 files.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages