https://github.com/laszukdawid/PyEMD
Revision dd635099f2af1f03e4fc5800fe4c7e67cc434f52 authored by Renato F. Miotto on 02 February 2020, 00:20:38 UTC, committed by GitHub on 02 February 2020, 00:20:38 UTC
The `_eemd` method was being applied to get the first IMF, and it was returning a null IMF. That is because the iterator `all_IMFs` was being used more than once, which would raise a StopIteration exception after its first use. Then, the code wasn't entering the loop to give values to E_IMF because all_IMFs was an empty list. There are 2 ways to fix this problem: (1) simply convert the iterator to a list before the next use, or (2) create two more iterators using itertools.tee. In this commit, option (2) is employed.
1 parent e8e50c1
Tip revision: dd635099f2af1f03e4fc5800fe4c7e67cc434f52 authored by Renato F. Miotto on 02 February 2020, 00:20:38 UTC
Bug fix - First IMF obtained from EEMD with zeros (#71)
Bug fix - First IMF obtained from EEMD with zeros (#71)
Tip revision: dd63509
File | Mode | Size |
---|---|---|
PyEMD | ||
doc | ||
example | ||
.codecov.yml | -rw-r--r-- | 377 bytes |
.coveragerc | -rw-r--r-- | 567 bytes |
.gitignore | -rw-r--r-- | 52 bytes |
.travis.yml | -rw-r--r-- | 424 bytes |
LICENSE.txt | -rw-r--r-- | 553 bytes |
MANIFEST.in | -rw-r--r-- | 187 bytes |
README.md | -rw-r--r-- | 5.0 KB |
__init__.py | -rw-r--r-- | 0 bytes |
codecov.yml | -rw-r--r-- | 389 bytes |
requirements-extra.txt | -rw-r--r-- | 77 bytes |
requirements.txt | -rw-r--r-- | 47 bytes |
setup.cfg | -rw-r--r-- | 26 bytes |
setup.py | -rw-r--r-- | 1.3 KB |
Computing file changes ...