Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 1.53 KB

File metadata and controls

68 lines (45 loc) · 1.53 KB

vhlab-NewStim-python

This python repository is designed to interpret data structures and read data files created in the matlab repository vhlab-NewStim-matlab.

Note: This library is intended solely for reading data files and data structures. It does not and will not have the capability to interact with hardware in the way that vhlab-NewStim-matlab does.

Installation

It is recommended to use a virtual environment for installation.

  1. Create a virtual environment:

    python3 -m venv venv
  2. Activate the virtual environment:

    • On macOS and Linux:
      source venv/bin/activate
    • On Windows:
      venv\Scripts\activate
  3. Install the package:

    You can install the package in editable mode using pip:

    pip install -e .

    Or install the dependencies directly if you are just developing:

    pip install -r requirements.txt # if provided
    # or just
    pip install .[test]

Running Unit Tests

This project uses pytest for unit testing.

  1. Ensure you have installed the package (or test dependencies):

    If you installed with pip install -e ., make sure pytest is available. If not, install it:

    pip install pytest
  2. Run the tests:

    From the root directory of the repository, run:

    pytest

    To run with verbose output:

    pytest -v