summaryrefslogtreecommitdiff
path: root/python-sleepecg.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-sleepecg.spec')
-rw-r--r--python-sleepecg.spec89
1 files changed, 67 insertions, 22 deletions
diff --git a/python-sleepecg.spec b/python-sleepecg.spec
index 9f8decc..4ee62f4 100644
--- a/python-sleepecg.spec
+++ b/python-sleepecg.spec
@@ -1,11 +1,11 @@
%global _empty_manifest_terminate_build 0
Name: python-sleepecg
-Version: 0.5.4
+Version: 0.5.5
Release: 1
Summary: A package for sleep stage classification using ECG data
-License: BSD 3-Clause License
-URL: https://github.com/cbrnr/sleepecg
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/06/d20abc96a026eb5dd3939735035baf0925f199f0ec0d655187ba82dcbf8f/sleepecg-0.5.4.tar.gz
+License: BSD 3-Clause
+URL: https://pypi.org/project/sleepecg/
+Source0: https://mirrors.aliyun.com/pypi/web/packages/d7/45/3bdb7126284dcf23fd39a9a1623f0fc4398b0ea293bea418ac47ca269746/sleepecg-0.5.5.tar.gz
Requires: python3-numpy
Requires: python3-PyYAML
@@ -13,33 +13,33 @@ Requires: python3-requests
Requires: python3-scipy
Requires: python3-tqdm
Requires: python3-mne
+Requires: python3-numba
Requires: python3-pyEDFlib
Requires: python3-wfdb
-Requires: python3-numba
Requires: python3-black
-Requires: python3-flake8
Requires: python3-joblib
Requires: python3-matplotlib
Requires: python3-mkdocs-material
Requires: python3-mkdocstrings-python
Requires: python3-mne
Requires: python3-mypy
+Requires: python3-numba
Requires: python3-pre-commit
Requires: python3-pyEDFlib
Requires: python3-pytest
+Requires: python3-ruff
Requires: python3-setuptools
Requires: python3-sphinx
-Requires: python3-wfdb
-Requires: python3-numba
Requires: python3-tensorflow
+Requires: python3-wfdb
Requires: python3-mkdocs-material
Requires: python3-mkdocstrings-python
Requires: python3-joblib
Requires: python3-matplotlib
Requires: python3-mne
-Requires: python3-wfdb
Requires: python3-numba
Requires: python3-tensorflow
+Requires: python3-wfdb
%description
![Python](https://img.shields.io/pypi/pyversions/sleepecg.svg?logo=python&logoColor=white)
@@ -49,7 +49,7 @@ Requires: python3-tensorflow
[![License](https://img.shields.io/github/license/cbrnr/sleepecg)](LICENSE)
## SleepECG
-SleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography) (and to a lesser extent also movement data), SleepECG provides functions for
+SleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography), SleepECG provides functions for
- downloading and reading open polysomnography datasets,
- detecting heartbeats from ECG signals, and
@@ -95,7 +95,7 @@ conda install -c conda-forge sleepecg
SleepECG with all optional dependencies can be installed with the following command:
```
-pip install sleepecg[full]
+pip install "sleepecg[full]"
```
If you want the latest development version, use the following command:
@@ -104,6 +104,21 @@ If you want the latest development version, use the following command:
pip install git+https://github.com/cbrnr/sleepecg
```
+### Example
+The following example detects heartbeats in a short ECG (a one-dimensional NumPy array):
+
+```python
+import numpy as np
+from scipy.misc import electrocardiogram
+from sleepecg import detect_heartbeats
+
+ecg = electrocardiogram() # 5 min of ECG data at 360 Hz
+fs = 360 # sampling frequency
+beats = detect_heartbeats(ecg, fs) # indices of detected heartbeats
+```
+
+More examples are available at https://github.com/cbrnr/sleepecg/tree/main/examples.
+
### Contributing
The [contributing guide](https://github.com/cbrnr/sleepecg/blob/main/CONTRIBUTING.md) contains detailed instructions on how to contribute to SleepECG.
@@ -125,7 +140,7 @@ BuildRequires: gdb
[![License](https://img.shields.io/github/license/cbrnr/sleepecg)](LICENSE)
## SleepECG
-SleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography) (and to a lesser extent also movement data), SleepECG provides functions for
+SleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography), SleepECG provides functions for
- downloading and reading open polysomnography datasets,
- detecting heartbeats from ECG signals, and
@@ -171,7 +186,7 @@ conda install -c conda-forge sleepecg
SleepECG with all optional dependencies can be installed with the following command:
```
-pip install sleepecg[full]
+pip install "sleepecg[full]"
```
If you want the latest development version, use the following command:
@@ -180,6 +195,21 @@ If you want the latest development version, use the following command:
pip install git+https://github.com/cbrnr/sleepecg
```
+### Example
+The following example detects heartbeats in a short ECG (a one-dimensional NumPy array):
+
+```python
+import numpy as np
+from scipy.misc import electrocardiogram
+from sleepecg import detect_heartbeats
+
+ecg = electrocardiogram() # 5 min of ECG data at 360 Hz
+fs = 360 # sampling frequency
+beats = detect_heartbeats(ecg, fs) # indices of detected heartbeats
+```
+
+More examples are available at https://github.com/cbrnr/sleepecg/tree/main/examples.
+
### Contributing
The [contributing guide](https://github.com/cbrnr/sleepecg/blob/main/CONTRIBUTING.md) contains detailed instructions on how to contribute to SleepECG.
@@ -195,7 +225,7 @@ Provides: python3-sleepecg-doc
[![License](https://img.shields.io/github/license/cbrnr/sleepecg)](LICENSE)
## SleepECG
-SleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography) (and to a lesser extent also movement data), SleepECG provides functions for
+SleepECG provides tools for sleep stage classification when [EEG](https://en.wikipedia.org/wiki/Electroencephalography) signals are not available. Based only on [ECG](https://en.wikipedia.org/wiki/Electrocardiography), SleepECG provides functions for
- downloading and reading open polysomnography datasets,
- detecting heartbeats from ECG signals, and
@@ -241,7 +271,7 @@ conda install -c conda-forge sleepecg
SleepECG with all optional dependencies can be installed with the following command:
```
-pip install sleepecg[full]
+pip install "sleepecg[full]"
```
If you want the latest development version, use the following command:
@@ -250,12 +280,27 @@ If you want the latest development version, use the following command:
pip install git+https://github.com/cbrnr/sleepecg
```
+### Example
+The following example detects heartbeats in a short ECG (a one-dimensional NumPy array):
+
+```python
+import numpy as np
+from scipy.misc import electrocardiogram
+from sleepecg import detect_heartbeats
+
+ecg = electrocardiogram() # 5 min of ECG data at 360 Hz
+fs = 360 # sampling frequency
+beats = detect_heartbeats(ecg, fs) # indices of detected heartbeats
+```
+
+More examples are available at https://github.com/cbrnr/sleepecg/tree/main/examples.
+
### Contributing
The [contributing guide](https://github.com/cbrnr/sleepecg/blob/main/CONTRIBUTING.md) contains detailed instructions on how to contribute to SleepECG.
%prep
-%autosetup -n sleepecg-0.5.4
+%autosetup -n sleepecg-0.5.5
%build
%py3_build
@@ -269,20 +314,20 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
- find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
- find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
- find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
- find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
- find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
@@ -295,5 +340,5 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
-* Tue May 30 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.4-1
+* Thu Jun 08 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.5-1
- Package Spec generated