Skip to content

Commit a6d8e80

Browse files
author
Tomas Teijeiro
committed
Merge branch 'develop' into public
This commit fixes #7
2 parents 73daf4c + 0264679 commit a6d8e80

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ This project is implemented in pure python 3, so no installation is required. Ho
3131

3232
1. [sortedcontainers](https://pypi.python.org/pypi/sortedcontainers)
3333
2. [numpy](https://pypi.python.org/pypi/numpy)
34+
3. [python-dateutil](https://pypi.org/project/python-dateutil/)
3435

3536
In addition, the knowledge base for ECG interpretation depends on the following packages:
3637

37-
3. [scipy](https://pypi.python.org/pypi/scipy)
38-
4. [scikit-learn](https://pypi.python.org/pypi/scikit-learn)
39-
5. [PyWavelets](https://pypi.python.org/pypi/PyWavelets)
38+
4. [scipy](https://pypi.python.org/pypi/scipy)
39+
5. [scikit-learn](https://pypi.python.org/pypi/scikit-learn)
40+
6. [PyWavelets](https://pypi.python.org/pypi/PyWavelets)
4041

4142
As optional dependencies to support the interactive visualization of the interpretation results and the interpretations tree and to run the demo examples, the following packages are also needed:
4243

43-
6. [matplotlib](https://pypi.python.org/pypi/matplotlib)
44-
7. [networkx](https://pypi.python.org/pypi/networkx)
45-
8. [pygraphviz](https://pypi.python.org/pypi/pygraphviz) and [graphviz](https://www.graphviz.org/)
44+
7. [matplotlib](https://pypi.python.org/pypi/matplotlib)
45+
8. [networkx](https://pypi.python.org/pypi/networkx)
46+
9. [pygraphviz](https://pypi.python.org/pypi/pygraphviz) and [graphviz](https://www.graphviz.org/)
4647

4748
Finally, to read ECG signal records it is necessary to have access to a proper installation of the [WFDB software package](http://www.physionet.org/physiotools/wfdb.shtml).
4849

construe/inference/reasoning.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def multicall_succ(interpretation):
265265
yielded = weakref.WeakSet()
266266
while True:
267267
nxt = next((n for n in interpretation.child if n not in yielded), None)
268-
nxt = nxt or next(successors)
268+
nxt = nxt or next(successors, None)
269+
if nxt is None:
270+
return
269271
yielded.add(nxt)
270272
yield nxt
271273

Binary file not shown.
Binary file not shown.
Binary file not shown.

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ numpy
22
sortedcontainers
33
scipy
44
scikit-learn
5+
python-dateutil
56
PyWavelets
67
matplotlib
78
networkx

0 commit comments

Comments
 (0)