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
Raw File
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)
Tip revision: dd63509
Directory is empty
back to top