Traceback (most recent call last): File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/ParallelTraceback.py", line 32, in wrapper return func(*args, **kwargs) File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/BlockProcessing.py", line 338, in process_block_block result = function(*sources_and_sinks, **kwargs); File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ImageProcessing/Experts/Cells.py", line 501, in detect_cells_block centers = md.find_center_of_maxima(source, maxima=maxima, verbose=verbose); File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/Analysis/Measurements/MaximaDetection.py", line 201, in find_center_of_maxima centers = np.array(ndm.center_of_mass(source, label, index=np.arange(1, n_label))); File "/home/jfadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/scipy/ndimage/measurements.py", line 1382, in center_of_mass normalizer = sum(input, labels, index) File "/home/jfadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/scipy/ndimage/measurements.py", line 615, in sum count, sum = _stats(input, labels, index) File "/home/jfadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/scipy/ndimage/measurements.py", line 553, in _stats sums = numpy.bincount(labels.ravel(), weights=input.ravel()) File "<__array_function__ internals>", line 6, in bincount TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/jfadmin/ClearMap2/ClearMap2/Documentation/Test.py", line 101, in processing_parameter=processing_parameter) File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ImageProcessing/Experts/Cells.py", line 317, in detect_cells results, blocks = bp.process(detect_cells_block, source, sink=None, function_type='block', return_result=True, return_blocks=True, parameter=cell_detection_parameter, **processing_parameter) File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/BlockProcessing.py", line 252, in process result = [func(*args) for args in zip(source_blocks, sink_blocks)]; #analysis:ignore File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/BlockProcessing.py", line 252, in result = [func(*args) for args in zip(source_blocks, sink_blocks)]; #analysis:ignore File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/ParallelTraceback.py", line 35, in wrapper raise type(e)(msg) TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe' Original Traceback (most recent call last): File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/ParallelTraceback.py", line 32, in wrapper return func(*args, **kwargs) File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ParallelProcessing/BlockProcessing.py", line 338, in process_block_block result = function(*sources_and_sinks, **kwargs); File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/ImageProcessing/Experts/Cells.py", line 501, in detect_cells_block centers = md.find_center_of_maxima(source, maxima=maxima, verbose=verbose); File "/home/jfadmin/ClearMap2/ClearMap2/ClearMap/Analysis/Measurements/MaximaDetection.py", line 201, in find_center_of_maxima centers = np.array(ndm.center_of_mass(source, label, index=np.arange(1, n_label))); File "/home/jfadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/scipy/ndimage/measurements.py", line 1382, in center_of_mass normalizer = sum(input, labels, index) File "/home/jfadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/scipy/ndimage/measurements.py", line 615, in sum count, sum = _stats(input, labels, index) File "/home/jfadmin/anaconda3/envs/ClearMap/lib/python3.7/site-packages/scipy/ndimage/measurements.py", line 553, in _stats sums = numpy.bincount(labels.ravel(), weights=input.ravel()) File "<__array_function__ internals>", line 6, in bincount TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe'