Skip to content

ttaiv/videomeg-browser

Repository files navigation

Video browser extension for MNE Python's qt raw data browser

Work in progress. This project is based on Helsinki VideoMEG project and currently works with video files recorded using software from that project.

VideoMEG browser screenshot Screenshot of the browser extension showing video from our validation measurement (in which a plushie named Herba kindly volunteered to be the test subject), synchronized with MNE-Python's sample MEG data.

Installation for development

In addition to MNE-Python, this project currently requires package OpenCV for standard video file reading. Here's how to set up a environment with all the necessary dependencies:

  1. Create a new conda environment (named mne-videomeg) with MNE-Python and OpenCV:

    conda create --channel=conda-forge --strict-channel-priority --name=mne-videomeg mne opencv
  2. Clone this repository and navigate to project root.

  3. Activate the environment:

    conda activate mne-videomeg
  4. Install the package in editable mode:

    pip install -e .

Now you should be able to test the video browser by running example scripts in scripts/ directory. For example:

python scripts/run_sync_demo_with_sample_data.py

Script run_sync_demo_with_sample_data.py uses a sample dataset from MNE Python and a fake video file. Other examples require you to have your own raw data and video files in a correct format.

Running tests

Tests are located in directory tests/ and they run using package pytest. You can install it to your environment by running:

pip install -e .[dev]

Then you can run all the tests with:

pytest

You can also selectively run tests in a specific file/class/method. See pytest documentation for details.

About

Video browser extension for MNE-Python's qt raw data browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages