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.
It is recommended to use a virtual environment for installation.
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- On macOS and Linux:
source venv/bin/activate - On Windows:
venv\Scripts\activate
- On macOS and Linux:
-
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]
This project uses pytest for unit testing.
-
Ensure you have installed the package (or test dependencies):
If you installed with
pip install -e ., make surepytestis available. If not, install it:pip install pytest
-
Run the tests:
From the root directory of the repository, run:
pytest
To run with verbose output:
pytest -v