Skip to content

Commit f80ca5d

Browse files
authored
small fixes and version update (#10)
1 parent 3c4b7f1 commit f80ca5d

30 files changed

+60
-65
lines changed

README.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ Systole can be installed using pip:
5858
5959
The following packages are required to use Systole:
6060

61-
* `Numpy <https://numpy.org/>`_ (>=1.15)
61+
* `Numpy <https://numpy.org/>`_ (>=1.21,<=1.26)
6262
* `SciPy <https://www.scipy.org/>`_ (>=1.3.0)
6363
* `Pandas <https://pandas.pydata.org/>`_ (>=0.24)
64-
* `Numba <http://numba.pydata.org/>`_ (>=0.51.2)
64+
* `Numba <http://numba.pydata.org/>`_ (>=0.58.0)
6565
* `Seaborn <https://seaborn.pydata.org/>`_ (>=0.9.0)
6666
* `Matplotlib <https://matplotlib.org/>`_ (>=3.0.2)
67-
* `Bokeh <https://docs.bokeh.org/en/latest/index.html#>`_ (>=2.3.3)
67+
* `Bokeh <https://docs.bokeh.org/en/latest/index.html#>`_ (>=3.0.0)
6868
* `pyserial <https://pyserial.readthedocs.io/en/latest/pyserial.html>`_ (>=3.4)
6969
* `setuptools <https://setuptools.pypa.io/en/latest/>`_ (>=38.4)
7070
* `requests <https://docs.python-requests.org/en/latest/>`_ (>=2.26.0)

docs/source/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Interactive data labelling and peaks correction
117117

118118
.. currentmodule:: systole.interact
119119

120-
.. _reports:
120+
.. _interact:
121121

122122
.. autosummary::
123123
:toctree: generated/interact

docs/source/conf.py

+12-10
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,19 @@
2626
image_scrapers = ("matplotlib",)
2727

2828
sphinx_gallery_conf = {
29-
"examples_dirs": "./examples/",
29+
"examples_dirs": "examples",
3030
"backreferences_dir": "api",
31+
'gallery_dirs': 'auto_examples',
3132
"image_scrapers": image_scrapers,
3233
}
3334

35+
exclude_patterns = [
36+
# exclude .py and .ipynb files in auto_examples generated by sphinx-gallery
37+
# this is to prevent sphinx from complaining about duplicate source files
38+
"auto_examples/**/*.ipynb",
39+
"auto_examples/**/*.py",
40+
]
41+
3442
bibtex_bibfiles = ['refs.bib']
3543
bibtex_reference_style = "author_year"
3644
bibtex_default_style = "unsrt"
@@ -54,7 +62,6 @@
5462
"jupyter_sphinx",
5563
"sphinx_design",
5664
"myst_nb",
57-
"sphinx_gallery.load_style",
5865
"sphinxcontrib.bibtex"
5966
]
6067

@@ -79,11 +86,6 @@
7986
# The master toctree document.
8087
master_doc = "index"
8188

82-
# List of patterns, relative to source directory, that match files and
83-
# directories to ignore when looking for source files.
84-
# This pattern also affects html_static_path and html_extra_path.
85-
exclude_patterns = []
86-
8789
# -- Options for HTML output -------------------------------------------------
8890

8991
# The theme to use for HTML and HTML Help pages. See the documentation for
@@ -99,9 +101,9 @@
99101
icon="fa-brands fa-square-github",
100102
),
101103
dict(
102-
name="Twitter",
103-
url="https://twitter.com/visceral_mind",
104-
icon="fa-brands fa-square-twitter",
104+
name="Mastodon",
105+
url="https://mastodon.social/@nicolegrand",
106+
icon="fa-brands fa-mastodon",
105107
),
106108
dict(
107109
name="Pypi",

docs/source/examples/Plots/plot_circular.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot circular
43
=============
54
The density function can be represented using the area of the bars, the height or

docs/source/examples/Plots/plot_ectopic.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot ectopic beats
43
==================
54

docs/source/examples/Plots/plot_events.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot events
43
===========
54

docs/source/examples/Plots/plot_evoked.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot evoked
43
===========
54

docs/source/examples/Plots/plot_frequency.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot frequency
43
==============
54

docs/source/examples/Plots/plot_pointcare.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot pointcare
43
==============
54

docs/source/examples/Plots/plot_raw.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot raw physiological signal
43
=============================
54

docs/source/examples/Plots/plot_rr.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot instantaneous heart rate
43
=============================
54
@@ -27,8 +26,8 @@
2726
# -----------------------------------------------------------------------------------------------------------------------------
2827
plot_rr(rr=rr, input_type="rr_ms", unit="bpm", points=False);
2928
#%%
30-
# Use Bokeh as a plotting backend, only show the scatterplt and highlight artefacts in the RR intervals
31-
# -----------------------------------------------------------------------------------------------------
29+
# Use Bokeh as a plotting backend, only show the scatterplot and highlight artefacts in the RR intervals
30+
# ------------------------------------------------------------------------------------------------------
3231
output_notebook()
3332

3433
show(

docs/source/examples/Plots/plot_shortlong.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot short and long invertvals
43
==============================
54

docs/source/examples/Plots/plot_subspace.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""
2-
32
Plot subspaces to vivualize short/long and ectopic beats
43
========================================================
54
File renamed without changes.

docs/source/getting_started.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ If you want to download the `dev` branch instead and try the last features that
1616
1717
The following packages are required to use Systole:
1818

19-
* `Numpy <https://numpy.org/>`_ (>=1.15)
19+
* `Numpy <https://numpy.org/>`_ (>=1.21,<=1.26)
2020
* `SciPy <https://www.scipy.org/>`_ (>=1.3.0)
2121
* `Pandas <https://pandas.pydata.org/>`_ (>=0.24)
22-
* `Numba <http://numba.pydata.org/>`_ (>=0.51.2)
22+
* `Numba <http://numba.pydata.org/>`_ (>=0.58.0)
2323
* `Seaborn <https://seaborn.pydata.org/>`_ (>=0.9.0)
2424
* `Matplotlib <https://matplotlib.org/>`_ (>=3.0.2)
25-
* `Bokeh <https://docs.bokeh.org/en/latest/index.html#>`_ (>=2.3.3)
25+
* `Bokeh <https://docs.bokeh.org/en/latest/index.html#>`_ (>=3.0.0)
2626
* `pyserial <https://pyserial.readthedocs.io/en/latest/pyserial.html>`_ (>=3.4)
2727
* `setuptools <https://setuptools.pypa.io/en/latest/>`_ (>=38.4)
2828
* `requests <https://docs.python-requests.org/en/latest/>`_ (>=2.26.0)

docs/source/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Contributors
167167

168168
================
169169

170-
|AU| |lundbeck| |lab|
170+
|AU|
171171

172172
.. |AU| image:: https://github.com/LegrandNico/systole/raw/master/docs/source/images/au_clinisk_logo.png
173173
:width: 100%

docs/source/notebooks/1-PhysiologicalSignals.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"%%capture\n",
2323
"import sys\n",
2424
"if 'google.colab' in sys.modules:\n",
25-
" ! pip install systole"
25+
" !pip install systole"
2626
]
2727
},
2828
{

docs/source/notebooks/1-PhysiologicalSignals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Author: Nicolas Legrand <[email protected]>
2222
%%capture
2323
import sys
2424
if 'google.colab' in sys.modules:
25-
! pip install systole
25+
!pip install systole
2626
```
2727

2828
```{code-cell} ipython3

docs/source/notebooks/2-DetectingCycles.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"%%capture\n",
2525
"import sys\n",
2626
"if 'google.colab' in sys.modules:\n",
27-
" ! pip install systole"
27+
" !pip install systole"
2828
]
2929
},
3030
{

docs/source/notebooks/2-DetectingCycles.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Author: Nicolas Legrand <[email protected]>
2222
%%capture
2323
import sys
2424
if 'google.colab' in sys.modules:
25-
! pip install systole
25+
!pip install systole
2626
```
2727

2828
```{code-cell} ipython3

docs/source/notebooks/3-DetectingAndCorrectingArtefacts.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"%%capture\n",
2525
"import sys\n",
2626
"if 'google.colab' in sys.modules:\n",
27-
" ! pip install systole"
27+
" !pip install systole"
2828
]
2929
},
3030
{
@@ -1117,7 +1117,7 @@
11171117
"id": "8a67ca80",
11181118
"metadata": {},
11191119
"source": [
1120-
"This concludes the tutorial on using Systole to detect and correct more complex artefacts. In the next tutorial we will introduce more advanced signal processing techniques for estimating low and high-frequency heart-rate variability. "
1120+
"This concludes the tutorial on using Systole to detect and correct more complex artefacts. In the next tutorial we will introduce more advanced signal processing techniques for estimating low and high-frequency heart-rate variability."
11211121
]
11221122
},
11231123
{
@@ -1297,7 +1297,7 @@
12971297
"name": "python",
12981298
"nbconvert_exporter": "python",
12991299
"pygments_lexer": "ipython3",
1300-
"version": "3.8.8"
1300+
"version": "3.9.16"
13011301
},
13021302
"vscode": {
13031303
"interpreter": {

docs/source/notebooks/3-DetectingAndCorrectingArtefacts.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupytext:
55
extension: .md
66
format_name: myst
77
format_version: 0.13
8-
jupytext_version: 1.14.1
8+
jupytext_version: 1.15.1
99
kernelspec:
1010
display_name: Python 3 (ipykernel)
1111
language: python
@@ -22,7 +22,7 @@ Author: Nicolas Legrand <[email protected]>
2222
%%capture
2323
import sys
2424
if 'google.colab' in sys.modules:
25-
! pip install systole
25+
!pip install systole
2626
```
2727

2828
```{code-cell} ipython3
@@ -257,7 +257,7 @@ plot_evoked(rr=peaks, triggers_idx=triggers_idx, ci=68, palette=["#55a868"],
257257
plt.ylim(-20, 20);
258258
```
259259

260-
This concludes the tutorial on using Systole to detect and correct more complex artefacts. In the next tutorial we will introduce more advanced signal processing techniques for estimating low and high-frequency heart-rate variability.
260+
This concludes the tutorial on using Systole to detect and correct more complex artefacts. In the next tutorial we will introduce more advanced signal processing techniques for estimating low and high-frequency heart-rate variability.
261261

262262
+++
263263

docs/source/notebooks/4-HeartRateVariability.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"%%capture\n",
2525
"import sys\n",
2626
"if 'google.colab' in sys.modules:\n",
27-
" ! pip install systole"
27+
" !pip install systole"
2828
]
2929
},
3030
{
@@ -806,7 +806,7 @@
806806
"name": "python",
807807
"nbconvert_exporter": "python",
808808
"pygments_lexer": "ipython3",
809-
"version": "3.8.8"
809+
"version": "3.9.16"
810810
}
811811
},
812812
"nbformat": 4,

docs/source/notebooks/4-HeartRateVariability.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupytext:
55
extension: .md
66
format_name: myst
77
format_version: 0.13
8-
jupytext_version: 1.14.1
8+
jupytext_version: 1.15.1
99
kernelspec:
1010
display_name: Python 3 (ipykernel)
1111
language: python
@@ -22,7 +22,7 @@ Author: Nicolas Legrand <[email protected]>
2222
%%capture
2323
import sys
2424
if 'google.colab' in sys.modules:
25-
! pip install systole
25+
!pip install systole
2626
```
2727

2828
```{code-cell} ipython3

docs/source/notebooks/5-InstantaneousHeartRate.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"%%capture\n",
2525
"import sys\n",
2626
"if 'google.colab' in sys.modules:\n",
27-
" ! pip install systole"
27+
" !pip install systole"
2828
]
2929
},
3030
{
@@ -889,7 +889,7 @@
889889
"name": "python",
890890
"nbconvert_exporter": "python",
891891
"pygments_lexer": "ipython3",
892-
"version": "3.8.8"
892+
"version": "3.9.16"
893893
}
894894
},
895895
"nbformat": 4,

docs/source/notebooks/5-InstantaneousHeartRate.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupytext:
55
extension: .md
66
format_name: myst
77
format_version: 0.13
8-
jupytext_version: 1.14.1
8+
jupytext_version: 1.15.1
99
kernelspec:
1010
display_name: Python 3 (ipykernel)
1111
language: python
@@ -22,7 +22,7 @@ Author: Nicolas Legrand <[email protected]>
2222
%%capture
2323
import sys
2424
if 'google.colab' in sys.modules:
25-
! pip install systole
25+
!pip install systole
2626
```
2727

2828
```{code-cell} ipython3

docs/source/notebooks/6-WorkingWithBIDSFolders.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"%%capture\n",
2525
"import sys\n",
2626
"if 'google.colab' in sys.modules:\n",
27-
" ! pip install systole"
27+
" !pip install systole"
2828
]
2929
},
3030
{
@@ -395,7 +395,7 @@
395395
"name": "python",
396396
"nbconvert_exporter": "python",
397397
"pygments_lexer": "ipython3",
398-
"version": "3.8.8"
398+
"version": "3.9.16"
399399
},
400400
"vscode": {
401401
"interpreter": {

docs/source/notebooks/6-WorkingWithBIDSFolders.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jupytext:
55
extension: .md
66
format_name: myst
77
format_version: 0.13
8-
jupytext_version: 1.14.1
8+
jupytext_version: 1.15.1
99
kernelspec:
1010
display_name: Python 3 (ipykernel)
1111
language: python
@@ -22,7 +22,7 @@ Author: Nicolas Legrand <[email protected]>
2222
%%capture
2323
import sys
2424
if 'google.colab' in sys.modules:
25-
! pip install systole
25+
!pip install systole
2626
```
2727

2828
Starting in version `0.2.3`, Systole provides tools to interact with large datasets of physiological recordings. The functionalities interface with folders that are structured following the [BIDS standards](https://bids-specification.readthedocs.io/en/stable/) and this is the format we recommend using if you are following this tutorial.
@@ -232,7 +232,7 @@ This function will create a JSON file (using the path specified in the `correcte
232232
* `corrected_peaks` : the peaks indexes after correction.
233233
* `bad_segments` : a list of `start` and `end` indexed of bad segments.
234234

235-
+++ {"tags": []}
235+
+++
236236

237237
### Using the Viewer to navigate preprocessed folder
238238

0 commit comments

Comments
 (0)