A standardized format for polysomnography recordings.
Project description
sleeplab-format
NOTE: this software is under initial development, breaking changes may occur.
A standardized format for polysomnography recordings.
Related tools
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.
Installation
For development, you need to install from cloned repository. To just use the current version, install with pip from github.
Install with pip from Github
pip install git+https://github.com/UEF-SmartSleepLab/sleeplab-format.git#egg=sleeplab-format
Install from cloned repository
Clone repository to your local files:
git clone git@github.com: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
Usage
See the automatic sleep staging example for a full end-to-end example.
Running tests
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
How to contribute
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sleeplab_format-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43ad65a3f74d72d1b0a05a04751d1275a384bc72ac105d437f3c47062b3774c6 |
|
MD5 | 5d6f0db4906ba451954361184444f94f |
|
BLAKE2b-256 | 32cfb485d2f498ee11061ba506032f7310b9ba7ee1cb98433a2601cf9fb3d5a7 |