OrderedDict([('window_length', 5.0), ('overlap', 0.5), ('window', 'rectangular'), ('feature_labels', ['min', 'max', 'mean', 'log std', 'kurtosis', 'skewness', 'log coastline (log sum of abs diff)', 'log power in band (1, 4) Hz', 'log power in band (4, 8) Hz', 'log power in band (8, 12) Hz', 'log power in band (12, 30) Hz', 'log power in band (30, 50) Hz', 'log power in band (50, 70) Hz', 'log power in band (70, 120) Hz', 'Spectrum entropy']), ('feature_time_functions', ['np.min', 'np.max', 'np.mean', 'lambda x:np.log(np.std(x))', 'stats.kurtosis', 'stats.skew', 'lambda d:np.log(np.mean(np.abs(np.diff(d,axis=0))))']), ('feature_freq_functions', ['fe.powerf(1, 4)', 'fe.powerf(4, 8)', 'fe.powerf(8, 12)', 'fe.powerf(12, 30)', 'fe.powerf(30, 50)', 'fe.powerf(50, 70)', 'fe.powerf(70, 120)', 'fe.reg_entropy']), ('function_module_dependencies', [('numpy', 'np'), ('pyecog2.feature_extractor', 'fe'), ('scipy.stats', 'stats')])])
OrderedDict([('window_length', 5.0), ('overlap', 0.5), ('window', 'rectangular'), ('feature_labels', ['min', 'max', 'mean', 'log std', 'kurtosis', 'skewness', 'log coastline (log sum of abs diff)', 'log power in band (1, 4) Hz', 'log power in band (4, 8) Hz', 'log power in band (8, 12) Hz', 'log power in band (12, 30) Hz', 'log power in band (30, 50) Hz', 'log power in band (50, 70) Hz', 'log power in band (70, 120) Hz', 'Spectrum entropy']), ('feature_time_functions', ['np.min', 'np.max', 'np.mean', 'lambda x:np.log(np.std(x))', 'stats.kurtosis', 'stats.skew', 'lambda d:np.log(np.mean(np.abs(np.diff(d,axis=0))))']), ('feature_freq_functions', ['fe.powerf(1, 4)', 'fe.powerf(4, 8)', 'fe.powerf(8, 12)', 'fe.powerf(12, 30)', 'fe.powerf(30, 50)', 'fe.powerf(50, 70)', 'fe.powerf(70, 120)', 'fe.reg_entropy']), ('function_module_dependencies', [('numpy', 'np'), ('pyecog2.feature_extractor', 'fe'), ('scipy.stats', 'stats')])])
Starting feature extraction...
Starting FE worker
calling feature_extractor.extract_features_from_animal
Extracting features for animal 1163812_45_46
multiprocessing.pool.RemoteTraceback: : F:\NP_test\H5\1163812_45_46\M1615232310_2021-03-08-19-38-30_tids_[45, 46].metaa
"""
TypeError: only size-1 arrays can be converted to Python scalars
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\site-packages\pyecog2-0.0.1rc0-py3.8.egg\pyecog2\feature_extractor.py", line 154, in extract_features_from_file
self.extract_features_from_time_range(file_buffer, time_range, feature_fname, feature_metafname,animal_id)
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\site-packages\pyecog2-0.0.1rc0-py3.8.egg\pyecog2\feature_extractor.py", line 177, in extract_features_from_time_range
features[i,j] = func(data)
ValueError: setting an array element with a sequence.
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\site-packages\pyecog2-0.0.1rc0-py3.8.egg\pyecog2\coding_tests\WaveletWidget.py", line 147, in run
result = self.fn(*self.args, **self.kwargs)
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\site-packages\pyecog2-0.0.1rc0-py3.8.egg\pyecog2\coding_tests\FeatureExtractorGUI.py", line 241, in extractFeatures
self.feature_extractor.extract_features_from_animal(animal, re_write = self.re_write.isChecked(), n_cores = -1,
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\site-packages\pyecog2-0.0.1rc0-py3.8.egg\pyecog2\feature_extractor.py", line 134, in extract_features_from_animal
for i, _ in enumerate(pool.imap(self.extract_features_from_file, tuples)):
File "C:\Users\mweston\Anaconda3\envs\pyecog2\lib\multiprocessing\pool.py", line 868, in next
raise value
ValueError: setting an array element with a sequence.