Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3933f43
nonlinear_domain:
LegrandNico Dec 2, 2021
68bc6ad
time_domain: add SDSD.
LegrandNico Dec 2, 2021
531da1a
Fix changelogs (v0.2.1)
LegrandNico Dec 2, 2021
8ad10c1
Add more test for hrv modules and document Kubios 2.2 expected results
LegrandNico Dec 3, 2021
83dbf30
hrv: improve recurrence plot implementation (results still differt fr…
LegrandNico Dec 3, 2021
5ce0ebe
- frequency_domain: Add the total power and the LF/HF ratio in the de…
LegrandNico Dec 4, 2021
4fa3361
- Add res_peaks function of peaks detection in respiratory signal (ve…
LegrandNico Dec 4, 2021
d31e587
Fix error in pan-tompkins (after Mypy fix)
LegrandNico Dec 4, 2021
a2476bf
hrv: faster implementation for recurrence matrix (#33)
LegrandNico Dec 4, 2021
ea69afd
Remove Travis testing from workflow
LegrandNico Dec 4, 2021
6dc012a
plots: Add nicer rendering for table output for time_domain, frequenc…
LegrandNico Dec 4, 2021
b030299
Add tutorial on heart rate variability analysis
LegrandNico Dec 16, 2021
ca9af23
[HRV] : - Add `all_domain` function to extract all possible indices i…
LegrandNico Dec 16, 2021
c40c3d0
Documentation: Add missing function to API references
LegrandNico Dec 16, 2021
6de5fac
Add disable parameter when downloading dataset to hide tqdm and avoid…
LegrandNico Dec 16, 2021
9bc6bda
Polish documentation and prepare for v0.2.2
LegrandNico Dec 17, 2021
455a1bb
Changelogs
LegrandNico Dec 17, 2021
f5aebe9
Fix version management
LegrandNico Dec 17, 2021
0de52b5
v0.2.2
LegrandNico Dec 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: isort
files: ^systole/
- repo: https://github.com/ambv/black
rev: 21.9b0
rev: 21.12b0
hooks:
- id: black
language_version: python3
Expand All @@ -16,7 +16,7 @@ repos:
- id: flake8
files: ^systole/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.910' # Use the sha / tag you want to point at
rev: 'v0.920' # Use the sha / tag you want to point at
hooks:
- id: mypy
files: ^systole/
Expand Down
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

9 changes: 4 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
.. image:: https://zenodo.org/badge/219720901.svg
:target: https://zenodo.org/badge/latestdoi/219720901

.. image:: https://travis-ci.org/embodied-computation-group/systole.svg?branch=master
:target: https://travis-ci.org/embodied-computation-group/systole

.. image:: https://codecov.io/gh/embodied-computation-group/systole/branch/master/graph/badge.svg
:target: https://codecov.io/gh/embodied-computation-group/systole

Expand Down Expand Up @@ -66,6 +63,7 @@ The following packages are required to use Systole:
* `pyserial <https://pyserial.readthedocs.io/en/latest/pyserial.html>`_ (>=3.4)
* `setuptools <https://setuptools.pypa.io/en/latest/>`_ (>=38.4)
* `requests <https://docs.python-requests.org/en/latest/>`_ (>=2.26.0)
* `tabulate <https://github.com/astanin/python-tabulate/>`_ (>=0.8.9)


The Python version should be 3.7 or higher.
Expand All @@ -78,6 +76,7 @@ For an introduction to Systole and cardiac signal analysis, you can refer to the
.. list-table::
:widths: 60 40
:header-rows: 0
:align: center

* - Cardiac signal analysis
- |Colab badge 1|
Expand Down Expand Up @@ -157,11 +156,11 @@ Systole implements time-domain, frequency-domain and non-linear HRV indices, as
.. code-block:: python

from bokeh.layouts import row
from systole.plots import plot_frequency, plot_pointcare
from systole.plots import plot_frequency, plot_poincare

row(
plot_frequency(peaks, input_type="peaks", backend="bokeh", figsize=(300, 200)),
plot_pointcare(peaks, input_type="peaks", backend="bokeh", figsize=(200, 200)),
plot_poincare(peaks, input_type="peaks", backend="bokeh", figsize=(200, 200)),
)

.. image:: https://github.com/embodied-computation-group/systole/blob/dev/source/images/hrv.png
Expand Down
3 changes: 2 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ numba>=0.51.2
tqdm
requests>=2.24.0
papermill>=2.2.2
pytest
pytest
tabulate>=0.8.9
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ setuptools>=38.4
packaging
numba>=0.51.2
tqdm
requests>=2.26.0
requests>=2.26.0
tabulate>=0.8.9
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_requirements():
DISTNAME = "systole"
MAINTAINER = "Nicolas Legrand"
MAINTAINER_EMAIL = "nicolas.legrand@cfin.au.dk"
VERSION = "0.2.1"
VERSION = "0.2.2"


if __name__ == "__main__":
Expand Down
12 changes: 9 additions & 3 deletions source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Functions
=========

.. contents:: Table of Contents
:depth: 3
:depth: 2

Correction
----------
Expand Down Expand Up @@ -37,6 +37,7 @@ Detection

ppg_peaks
ecg_peaks
res_peaks
rr_artefacts
interpolate_clipping

Expand All @@ -54,8 +55,13 @@ Heart Rate Variability
pnnX
rmssd
time_domain
psd
frequency_domain
nonlinear
nonlinear_domain
poincare
recurrence
recurrence_matrix
all_domain

Plots
-----
Expand All @@ -72,7 +78,7 @@ Plots
plot_events
plot_evoked
plot_frequency
plot_pointcare
plot_poincare
plot_raw
plot_rr
plot_shortlong
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ This page contains information about what has changed in each new version of ``s

<div class="col-md-9">

.. include:: releases/v0.2.2.txt

.. include:: releases/v0.2.1.txt

.. include:: releases/v0.2.0.txt

.. include:: releases/v0.1.3.txt
Expand Down
8 changes: 8 additions & 0 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,24 @@
"logo_link": "https://systole-docs.github.io/",
}

html_sidebars = {
"api": [],
"changelog": [],
"notebooks/*": []
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = ["https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"]
html_logo = "images/logo.png"


def setup(app):
app.add_css_file('style.css')


# -- Intersphinx ------------------------------------------------

intersphinx_mapping = {
Expand Down
5 changes: 3 additions & 2 deletions source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The following packages are required to use Systole:
* `pyserial <https://pyserial.readthedocs.io/en/latest/pyserial.html>`_ (>=3.4)
* `setuptools <https://setuptools.pypa.io/en/latest/>`_ (>=38.4)
* `requests <https://docs.python-requests.org/en/latest/>`_ (>=2.26.0)
* `tabulate <https://github.com/astanin/python-tabulate/>`_ (>=0.8.9)


The Python version should be 3.7 or higher.
Expand Down Expand Up @@ -76,11 +77,11 @@ Systole implements time-domain, frequency-domain and non-linear HRV indices, as
.. code-block:: python

from bokeh.layouts import row
from systole.plots plot_frequency, plot_pointcare
from systole.plots plot_frequency, plot_poincare

row(
plot_frequency(peaks, input_type="peaks", backend="bokeh", figsize=(300, 200)),
plot_pointcare(peaks, input_type="peaks", backend="bokeh", figsize=(200, 200)),
plot_poincare(peaks, input_type="peaks", backend="bokeh", figsize=(200, 200)),
)

.. raw:: html
Expand Down
6 changes: 3 additions & 3 deletions source/images/create_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from systole import import_dataset1
from systole.detection import ecg_peaks
from systole.plots import plot_frequency, plot_pointcare, plot_raw, plot_subspaces
from systole.plots import plot_frequency, plot_poincare, plot_raw, plot_subspaces
from bokeh.io import export_png, save
from bokeh.layouts import row
# Import ECg recording
Expand Down Expand Up @@ -39,15 +39,15 @@
export_png(
row(
plot_frequency(peaks, input_type="peaks", backend="bokeh", figsize=(600, 400)),
plot_pointcare(peaks, input_type="peaks", backend="bokeh", figsize=(400, 400)),
plot_poincare(peaks, input_type="peaks", backend="bokeh", figsize=(400, 400)),
),filename="hrv.png"
)

#%% As HTML
save(
row(
plot_frequency(peaks, input_type="peaks", backend="bokeh", figsize=(300, 200)),
plot_pointcare(peaks, input_type="peaks", backend="bokeh", figsize=(200, 200)),
plot_poincare(peaks, input_type="peaks", backend="bokeh", figsize=(200, 200)),
),filename="hrv.html"
)

Expand Down
5 changes: 2 additions & 3 deletions source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
.. image:: https://zenodo.org/badge/219720901.svg
:target: https://zenodo.org/badge/latestdoi/219720901

.. image:: https://travis-ci.org/embodied-computation-group/systole.svg?branch=master
:target: https://travis-ci.org/embodied-computation-group/systole

.. image:: https://codecov.io/gh/embodied-computation-group/systole/branch/master/graph/badge.svg
:target: https://codecov.io/gh/embodied-computation-group/systole

Expand Down Expand Up @@ -149,6 +146,8 @@ Contributors
- Jan C. Brammer (jan.c.brammer@gmail.com)
- Gidon Levakov (gidonlevakov@gmail.com)
- Peter Doggart (peter.doggart@pulseai.io)
- Dominique Makowski (https://github.com/DominiqueMakowski)
- Bertrand Hermann (bertrand.hermann@ghu-paris.fr)

================

Expand Down
Loading