NOTE: this software is under initial development, breaking changes may occur.
Tools for transforming heterogeneous sleep measurement data to a unified format.
sleeplab-converters for converting other formats exported from PSG software to sleeplab format.
sleeplab-extractor for extracting and preprocessing a subset of data in sleeplab format for the needs of specific studies.
sleeplab-tf-dataset for reading data in sleeplab format as a tensorflow Dataset.
For development, you need to install from cloned repository. To just use the current version, install with pip from github.
pip install git+https://github.com/UEF-SmartSleepLab/sleeplab-format.git#egg=sleeplab-format
Clone repository to your local files:
git clone [email protected]:UEF-SmartSleepLab/sleeplab-format.git
This project uses Hatch for project management. First, install hatch. You will also need a recent version of pip.
Then, go to the root of the cloned repository and create an environment for it:
hatch env create
After that, you can enter the environment by:
hatch shell
You can confirm that the project has been installed by:
pip show sleeplab-format
See the automatic sleep staging example for a full end-to-end example.
This project uses pytest
for testing. To run the tests after cloning and installing, go to the root of the cloned repository and run:
pytest
We follow Github flow in the development.
The basic procedure to contribute code to the project is:
- Install from cloned repository
- Create your own branch and implement the changes (and tests, preferably)
- Make sure the tests pass
- Create a pull request on Github
- Another contributor reviews the pull request
- Fix review comments if any
- Reviewer merges the pull request