Skip to content

Commit 606774c

Browse files
committed
update doc
1 parent 83139ab commit 606774c

File tree

7 files changed

+72
-10
lines changed

7 files changed

+72
-10
lines changed

README.rst

+46-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ wfdb-python
33

44
|Build Status|
55

6-
.. figure:: https://raw.githubusercontent.com/MIT-LCP/wfdb-python/master/demoimg.png
6+
.. figure:: https://raw.githubusercontent.com/MIT-LCP/wfdb-python/master/demo-img.png
77
:alt: wfdb signals
88

9+
910
Introduction
1011
------------
1112

12-
The native Python waveform-database (WFDB) package. A library of tools for reading and writing WFDB signals and annotations, and general physiological signal processing.
13+
The native Python waveform-database (WFDB) package. A library of tools for reading, writing, and processing WFDB signals and annotations.
1314

1415
Core components of this package are based on the original WFDB specifications:
1516

@@ -19,33 +20,68 @@ Core components of this package are based on the original WFDB specifications:
1920
| `WFDB Signal Specifications`_
2021
| `WFDB Annotation Specifications`_
2122
23+
This package does not contain the exact same functionality as the original WFDB package. It aims to implement as many of its core features as possible, with user-friendly APIs. Additional useful physiological signal-processing tools are added over time.
24+
25+
26+
Development
27+
-----------
28+
29+
The development repository is hosted at: https://github.com/MIT-LCP/wfdb-python
30+
31+
The package is to be expanded with physiological signal-processing tools, and general improvements. Support is provided for Python 2.7 and 3.5+ only.
32+
33+
34+
Contributing
35+
------------
36+
37+
We welcome community contributions in the form of pull requests. When contributing code, please ensure:
38+
39+
* PEP8_ style guidelines are followed.
40+
* Documentation is provided. New functions and classes should have numpy/scipy style docstrings_.
41+
* Unit tests are written for new features that are not covered by `existing tests`_.
42+
43+
2244
Installation
2345
------------
2446

25-
The distribution is hosted on pypi at: https://pypi.python.org/pypi/wfdb/ and directly installable via pip without needing clone or download this repository. Note that the pypi package does not contain the demo scripts or the example data. To install the package from pypi, run from your terminal:
26-
``pip install wfdb``
47+
The distribution is hosted on pypi at: https://pypi.python.org/pypi/wfdb/. To directly install the package from pypi without needing to explicitly download content, run from your terminal::
48+
49+
$ pip install wfdb
2750

28-
Download or clone this repository: https://github.com/MIT-LCP/wfdb-python for the latest development version, the demo scripts, and the example data. To install the downloaded package, navigate to the base directory of the repository and run:
29-
``pip install .``
51+
The development version is hosted at: https://github.com/MIT-LCP/wfdb-python. This repository also contains demo scripts and example data. To install the development version, clone or download the repository, navigate to the base directory, and run::
52+
53+
$ pip install .
3054

3155

3256
Documentation and Usage
3357
-----------------------
3458

35-
See the documentation site for public classes and functions.
59+
See the documentation site for public classes and functions.
3660

37-
See the **demo.ipynb** file for example use cases.
61+
See the `demo.ipynb`_ notebook file for more example use cases.
3862

3963

64+
Authors
65+
-------
4066

67+
- `Chen Xie`_
68+
- `Julien Dubiel`_
4169

4270

71+
.. |Build Status| image:: https://travis-ci.org/MIT-LCP/wfdb-python.svg?branch=master
72+
:target: https://travis-ci.org/MIT-LCP/wfdb-python
4373

4474
.. _WFDB Software Package: http://physionet.org/physiotools/wfdb.shtml
4575
.. _WFDB Applications Guide: http://physionet.org/physiotools/wag/
4676
.. _WFDB Header Specifications: https://physionet.org/physiotools/wag/header-5.htm
4777
.. _WFDB Signal Specifications: https://physionet.org/physiotools/wag/signal-5.htm
4878
.. _WFDB Annotation Specifications: https://physionet.org/physiotools/wag/annot-5.htm
4979

50-
.. |Build Status| image:: https://travis-ci.org/MIT-LCP/wfdb-python.svg?branch=master
51-
:target: https://travis-ci.org/MIT-LCP/wfdb-python
80+
.. _PEP8: https://www.python.org/dev/peps/pep-0008/
81+
.. _docstrings: https://github.com/numpy/numpy/blob/master/doc/HOWTO_DOCUMENT.rst.txt
82+
.. _existing tests: https://github.com/MIT-LCP/wfdb-python/tree/master/tests
83+
84+
.. _demo.ipynb: https://github.com/MIT-LCP/wfdb-python/blob/master/demo.ipynb
85+
86+
.. _Chen Xie: https://github.com/cx1111/
87+
.. _Julien Dubiel: https://github.com/Dubrzr/

demoimg.png demo-img.png

File renamed without changes.

docs/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Welcome to wfdb's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13+
installation
1314
io
1415
plot
1516
processing

docs/installation.rst

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Installation
2+
------------
3+
4+
The distribution is hosted on pypi at: https://pypi.python.org/pypi/wfdb/. To directly install the package from pypi without needing to explicitly download content, run from your terminal::
5+
6+
$ pip install wfdb
7+
8+
The development version is hosted at: https://github.com/MIT-LCP/wfdb-python. This repository also contains demo scripts and example data. To install the development version, clone or download the repository, navigate to the base directory, and run::
9+
10+
$ pip install .

docs/io.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
io
22
---
33

4+
.. autoclass:: wfdb.io.record.Record
5+
:members: adc, dac
6+
47
.. automodule:: wfdb.io.record
58
:members: rdrecord, rdsamp, wrsamp, dl_database

docs/plot.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plot
2+
----
3+
4+
.. automodule:: wfdb.plot.plot
5+
:members: plot_record, plot_annotation, plot_all_records
6+

wfdb/plot/plot.py

+6
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@ def plot_all_records(directory=os.getcwd()):
425425
"""
426426
Plot all wfdb records in a directory (by finding header files), one at
427427
a time, until the 'enter' key is pressed.
428+
429+
Parameters
430+
----------
431+
directory : str, optional
432+
The directory in which to search for WFDB records.
433+
428434
"""
429435
filelist = [f for f in os.listdir(directory) if os.path.isfile(os.path.join(directory, f))]
430436
filelist = [f for f in filelist if f.endswith('.hea')]

0 commit comments

Comments
 (0)