Closed ashkanreisi closed 11 months ago
This fix will get it working, likely a refactoring error, or a missing test coverage:
file EEMD.py lines 183+
# For trial number of iterations perform EMD on a signal
# with added white noise
if self.parallel:
pool = Pool(processes=self.processes)
map_pool = pool.map
else:
map_pool = map
all_IMFs = map_pool(self._trial_update, range(self.trials))
if self.parallel:
pool.close()
Thanks @mskoenz for jumping in! Really appreciate it!
Let me fix this
happy to help, thx for the library :)
Thank you guys.
I have written the below code to perform parallel processing when computing IMFs through EEMD function in PyEMD library:
Running the above code, threw an error, as:
I am not sure what causes this problem. *A note that when I tried the same code without passing parallel and processes arguments, the code works perfectly fine.